smallrye / jandex

Java Annotation Indexer
Apache License 2.0
394 stars 94 forks source link

classloader.getResource(entryName) return null #314

Closed wangshihui closed 1 year ago

wangshihui commented 1 year ago

In the jar-index feature classloader method:classloader.getResource(entryName) when the entryName is a drectory ,this method would return null. In some opensource tools use this feature to load the resouces in the same folder would fail.

Ladicek commented 1 year ago

I'm sorry, the issue description is not really actionable. Please provide some details, ideally a reproducer.

Specifically, note that Jandex does not implement any class loader, so any ClassLoader.getResource(String) calls you might be doing don't end up in Jandex.