classgraph: classfileResource not set for superclasses
i use Classgraph for JDK classes.
i have the following problem
if a subclass is scanned first and the parent class after
the superclass entry will have classfileResource == null
as of io.github.classgraph.ClassInfo.getOrCreateClassInfo(String, int, Map<String, ClassInfo>)
my expectation would be that
io.github.classgraph.ClassInfo.addScannedClass(String, int, boolean, Map<String, ClassInfo>, ClasspathElement, Resource)
corrects this in the else branch, (classInfo.classfileResource = classfileResource;
)
but it does not
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 27 (27 by maintainers)
Commits related to this issue
- Fixed classfileresource of classes that were created as superclass before they where scanned. Fixes https://github.com/classgraph/classgraph/issues/345 — committed to cdietrich/classgraph by cdietrich 5 years ago
- Handle modifier bits for interface/annotation more uniformly (#345) — committed to classgraph/classgraph by lukehutch 5 years ago
- Improve unit tests (#345) — committed to classgraph/classgraph by lukehutch 5 years ago
- Get modifiers for inner classes (#345). — committed to classgraph/classgraph by lukehutch 5 years ago
nice. many thanks
Yes