Replies: 4 comments 7 replies
-
Correct, depending on internals is a losing strategy. The correct thing to do would be to use supported APIs. In order to provide such an API we would need information about what is needed and why. |
Beta Was this translation helpful? Give feedback.
-
\CC @dmlloyd I think |
Beta Was this translation helpful? Give feedback.
-
By the way, there is a previous discussion about the same underlying issue: #23312. I need to get a list of all classes with a particular annotation within my project (i.e. not in its dependencies) and then initialize a library with it. What would be the best approach in Quarkus, ideally during build time? |
Beta Was this translation helpful? Give feedback.
-
@triceo I see your use case is related to webjar-locator. In Quarkus, we have https://quarkus.io/guides/web-dependency-locator that is a bit more tied to how Quarkus works. Is there something you are missing in this Quarkus extension and a reason why you are using webjar-locator? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone,
I recently filed this ClassGraph issue. (Not filing a Quarkus issue, because this is a downstream problem.)
The problem is that ClassGraph is accessing the
elements
field of the Quarkus classloader, which no longer seems available.However, I would like to understand what changed, and what would be the preferred approach for ClassGraph to take to address this. I'm assuming that depending on the internals of Quarkus classloader is a bad thing.
Perhaps the classloader working group may be able to give some context?
Beta Was this translation helpful? Give feedback.
All reactions