Giter Site home page Giter Site logo

Comments (11)

mkouba avatar mkouba commented on August 27, 2024

CC @Sanne @n1hility

from jandex.

mkouba avatar mkouba commented on August 27, 2024

A test case is available in my branch: https://github.com/mkouba/jandex/tree/issue-97

from jandex.

n1hility avatar n1hility commented on August 27, 2024

thanks will check it out

from jandex.

ungerts avatar ungerts commented on August 27, 2024

At least the test execution is now successful.

from jandex.

ungerts avatar ungerts commented on August 27, 2024

I think a general solution should take into account the InnerClasses Attribute of the class file and iterate through the outer classes which are already parsed.

from jandex.

msogrin avatar msogrin commented on August 27, 2024

Any chance of a fix?
This bug breaks Quarkus compatibility with Scala (at least with Scala 2.13) which has several classes ending with $ in its standard library.

from jandex.

Ladicek avatar Ladicek commented on August 27, 2024

I'm looking at the idea of using the InnerClasses attribute and while I agree it would be the best way to do it, I also believe doing that would require a major overhaul of the indexing algorithm. The ClassFile attributes are stored at the very end of the class file, and we [currently] [have to] parse names way before reaching that point. So it's currently not practical, unfortunately.

from jandex.

mkouba avatar mkouba commented on August 27, 2024

Do we really want to close this issue? IIUIC that PR does not solve the problem, or?

from jandex.

Ladicek avatar Ladicek commented on August 27, 2024

It does solve the problem -- for a class name that ends with a single $ :-)

from jandex.

mkouba avatar mkouba commented on August 27, 2024

It does solve the problem -- for a class name that ends with a single $ :-)

Ok, how about multiple $? :D

No, I'm fine if you say it does solve the problem. Let's keep the issue closed.

from jandex.

Ladicek avatar Ladicek commented on August 27, 2024

It's been a few days, so I don't have it fresh in memory, but if I recall correctly, I couldn't find a proper solution that wouldn't use the InnerClasses attribute, and that would require a huge refactoring (or parsing the class file twice).

from jandex.

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.