Skip to content

getClassInfo() cannot be called here #375

@johndevs

Description

@johndevs

When updating to latest version (4.8.48) I started to get the following error:

Caused by: java.lang.IllegalArgumentException: getClassInfo() cannot be called here

    	at io.github.classgraph.BaseTypeSignature.getClassInfo(BaseTypeSignature.java:248)

    	at io.github.classgraph.AnnotationClassRef.getClassInfo(AnnotationClassRef.java:165)

    	at io.github.classgraph.ObjectTypedValueWrapper.findReferencedClassInfo(ObjectTypedValueWrapper.java:563)

    	at io.github.classgraph.AnnotationParameterValue.findReferencedClassInfo(AnnotationParameterValue.java:150)

    	at io.github.classgraph.AnnotationParameterValueList.findReferencedClassInfo(AnnotationParameterValueList.java:95)

    	at io.github.classgraph.ClassInfo.findReferencedClassInfo(ClassInfo.java:2758)

    	at io.github.classgraph.ScanResultObject.findReferencedClassInfo(ScanResultObject.java:67)

    	at io.github.classgraph.ScanResult.indexResourcesAndClassInfo(ScanResult.java:320)

    	at io.github.classgraph.ScanResult.<init>(ScanResult.java:267)

    	at io.github.classgraph.Scanner.performScan(Scanner.java:877)

    	at io.github.classgraph.Scanner.openClasspathElementsThenScan(Scanner.java:972)

    	at io.github.classgraph.Scanner.call(Scanner.java:1007)

    	at io.github.classgraph.Scanner.call(Scanner.java:74)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions