Comments (4)
Oh boy... this is due to a compiler bug in whatever compiler Google used to compile guava (which is probably some fork of Java that Google has been maintaining a massive patch set against for many years...).
The target type of 0x10
(which means "type in extends
clause of class or interface declaration, or in implements
clause of interface declaration") is only ever supposed to be added to ClassFile
targets (i.e. this should only be used in class annotations), but the exception that you ran into shows that Google's compiler added an annotation tagged with this type to a method_info
target too.
https://docs.oracle.com/javase/specs/jvms/se17/html/jvms-4.html#jvms-4.7.20-420
I saw one of these issues before, with the Oracle compiler adding field annotations to methods, for the new record types. I fixed that by just ignoring these wrong annotations.
I'll have to do the same with this one...
from classgraph.
Should be fixed in 4.8.173 (unless the buggy compiler also output something else inappropriate in this case!). Thank you!
from classgraph.
Thanks for the quick fix!
from classgraph.
@sebthom You're welcome!
from classgraph.
Related Issues (20)
- Issue 673 test sometimes fails
- ClassGraph can't scan the jce.jar in jdk on the linux system, why? HOT 1
- ClassGraph thinks the application jars are JRE_LIB_OR_EXT_JARS HOT 5
- Get the Class and method comments HOT 2
- How to expose the full classpath from classloader? HOT 1
- Feature request:Add getClassesWithAllAnnotations HOT 8
- Expose a way to get the jar version that a Resource belongs to HOT 2
- zip64 bug in LogicalZipFile HOT 3
- JBoss EAP 7.4.15 class loading issue on EJB Modules HOT 17
- ClassRefTypeSignature.getFullyQualifiedClassName() can return incorrect classnames in some circumstances, using "." instead of "$" HOT 4
- Trouble with GraalVM native-image post compile HOT 3
- GraalVM static initializer -- unsure if actually working? HOT 1
- Consider bridge to nio Path HOT 7
- acceptPackages with glob wildcard not working properly HOT 1
- #rejectPaths usage with relative paths HOT 3
- #rejectClasses usage for module-info.class HOT 2
- Cannot find private methods in Kotlin files HOT 2
- Different behaviors on JDK 21 and JDK 8 HOT 10
- java.lang.NullPointerException: Cannot invoke "io.github.classgraph.MethodParameterInfo.setScanResult(io.github.classgraph.ScanResult)" because "this.parameterInfo[i]" is null HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classgraph.