Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getClassInfo() cannot be called here #375

Closed
johndevs opened this issue Oct 17, 2019 · 1 comment
Closed

getClassInfo() cannot be called here #375

johndevs opened this issue Oct 17, 2019 · 1 comment

Comments

@johndevs
Copy link

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)
@lukehutch
Copy link
Member

Fixed and released as 4.8.49. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants