Giter Site home page Giter Site logo

Comments (4)

lukehutch avatar lukehutch commented on September 17, 2024

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.

// This target_type is not supposed to be added to methods, but it seems

I'll have to do the same with this one...

from classgraph.

lukehutch avatar lukehutch commented on September 17, 2024

Should be fixed in 4.8.173 (unless the buggy compiler also output something else inappropriate in this case!). Thank you!

from classgraph.

sebthom avatar sebthom commented on September 17, 2024

Thanks for the quick fix!

from classgraph.

lukehutch avatar lukehutch commented on September 17, 2024

@sebthom You're welcome!

from classgraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.