File tree 2 files changed +1
-2
lines changed
src/java.base/share/classes/java/lang/reflect/code
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ public static TypeDefinition parseTypeDefinition(Lexer l) {
91
91
StringBuilder identifier = new StringBuilder ();
92
92
if (l .token ().kind == TokenKind .HASH ) {
93
93
// Quoted identifier
94
- l .accept (TokenKind .HASH );
95
94
Token t = l .token ();
96
95
while (t .kind != TokenKind .LT ) {
97
96
identifier .append (t .kind == TokenKind .IDENTIFIER ? t .name () : t .kind .name );
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public TypeElement constructType(TypeDefinition tree) {
125
125
if (typeArguments .size () != 1 ) {
126
126
throw new IllegalArgumentException ("Bad type-variable bounds: " + tree );
127
127
}
128
- String [] parts = identifier .split ("::" );
128
+ String [] parts = identifier .substring ( 1 ). split ("::" );
129
129
if (parts .length == 2 ) {
130
130
// class type-var
131
131
return JavaType .typeVarRef (parts [1 ],
You can’t perform that action at this time.
0 commit comments