]> source.dussan.org Git - aspectj.git/commit
UnresolvedType: fix JVM signature conversion
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Tue, 17 Jan 2023 13:49:54 +0000 (14:49 +0100)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 12 Apr 2024 12:19:06 +0000 (14:19 +0200)
commit59fef88ca15bf9b90758067dee2e3b1e321645f2
tree9d825e751127ad5a996a7c771d02b6c5f7779b40
parent97d8f7339e18af21927065509e549cb2e3cad393
UnresolvedType: fix JVM signature conversion

Fixes #211. Previously, '?' was not converted to '*' in
UnresolvedType.nameToSignature, but kept as-is. That is why - falsely -
it was necessary to handle the '?' case in UnresolvedType.forSignature
at all, reading this kind of bogus signature and creating a type for it
in TypeFactory.createTypeFromSignature. This, ironically, led to correct
JVM generic type signatures containing '*' not being handled at all.

The conversion should now work correctly both ways.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
org.aspectj.matcher/src/main/java/org/aspectj/weaver/TypeFactory.java
org.aspectj.matcher/src/main/java/org/aspectj/weaver/UnresolvedType.java