-
Notifications
You must be signed in to change notification settings - Fork 94
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
Indexer vs DotName.equals() for a nested class with simple name that ends with $ #97
Comments
A test case is available in my branch: https://github.com/mkouba/jandex/tree/issue-97 |
thanks will check it out |
At least the test execution is now successful. |
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. |
Any chance of a fix? |
I'm looking at the idea of using the |
Do we really want to close this issue? IIUIC that PR does not solve the problem, or? |
It does solve the problem -- for a class name that ends with a single |
Ok, how about multiple No, I'm fine if you say it does solve the problem. Let's keep the issue closed. |
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 |
If there is a nested class with simple name
Test$
, e.g.org.jboss.jandex.test.IndexerTestCase$Test$
(note that although it's not recommended it's legal to use$
in a class name) thenIndexer
decodes theDotName
as:The
toString()
of theDotName
isorg.jboss.jandex.test.IndexerTestCase$Test$
however theequals()
method does not match the following:whose
toString()
is alsoorg.jboss.jandex.test.IndexerTestCase$Test$
.Maybe I'm missing something obvious.
The text was updated successfully, but these errors were encountered: