]> source.dussan.org Git - aspectj.git/commit
UnresolvedType.signatureToName: fix '*' case for generic type '?'
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Tue, 17 Jan 2023 15:02:03 +0000 (16:02 +0100)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 12 Apr 2024 13:32:39 +0000 (15:32 +0200)
commitcad9346701b4ef3884283886948b0c2504e00e17
tree9f60a07e173f48d83e8ccbb7c918f6d80720a59c
parent2a1ec081e1958afa47a884cad4766e6ca88571aa
UnresolvedType.signatureToName: fix '*' case for generic type '?'

In generic type lists, after a '*' in any type parameter list, sometimes
the '*' (which should be converted to '?') itself and always the
subsequent parameters would be missing from the signature:

  - '[Pjava/util/Collection<*>;' yielded
    'java.util.Collection<>[]', but should be
    'java.util.Collection<?>[]'

  - '[Pjava/util/Map<*Pjava/util/List<[Ljava/lang/Integer;>;>;' yielded
    'java.util.Map<?>[]', but should be
    'java.util.Map<?,java.util.List<java.lang.Integer[]>>[]'

This is now fixed.

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