Skip to content

Commit 799abb7

Browse files
committedApr 26, 2024
Fix test failure after PR/51
Reviewed-by: psandoz
1 parent 6713aca commit 799abb7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎src/java.base/share/classes/java/lang/reflect/code/parser/impl/DescParser.java

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public static TypeDefinition parseTypeDefinition(Lexer l) {
9191
StringBuilder identifier = new StringBuilder();
9292
if (l.token().kind == TokenKind.HASH) {
9393
// Quoted identifier
94-
l.accept(TokenKind.HASH);
9594
Token t = l.token();
9695
while (t.kind != TokenKind.LT) {
9796
identifier.append(t.kind == TokenKind.IDENTIFIER ? t.name() : t.kind.name);

‎src/java.base/share/classes/java/lang/reflect/code/type/CoreTypeFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public TypeElement constructType(TypeDefinition tree) {
125125
if (typeArguments.size() != 1) {
126126
throw new IllegalArgumentException("Bad type-variable bounds: " + tree);
127127
}
128-
String[] parts = identifier.split("::");
128+
String[] parts = identifier.substring(1).split("::");
129129
if (parts.length == 2) {
130130
// class type-var
131131
return JavaType.typeVarRef(parts[1],

0 commit comments

Comments
 (0)