elharo opened a new pull request, #289:
URL: https://github.com/apache/maven-dependency-analyzer/pull/289

   When a non-static inner class has a parameterized outer type, javac uses '.' 
in the class Signature attribute (e.g. `Ltest/Outer\<\...\>.Inner;`). ASM's 
`SignatureReader` fires `visitClassType("test/Outer")` then 
`visitInnerClassType("Inner")`.
   
   The old `DefaultSignatureVisitor.visitInnerClassType` recorded just the bare 
name `"Inner"` as a dependency, which is nonsensical.
   
   **Fix:** Track the current class hierarchy with a `Deque` and emit the 
fully-qualified name (`outer$inner`). `ResultCollector.add` filters 
`$`-suffixed names (inner classes are handled via their outer class), so this 
correctly resolves the dependency to the outer class.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to