Skip to content

Commit b4bfd23

Browse files
committed
Fix isConstructor to avoid exception
1 parent 6ce73bd commit b4bfd23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class ClassfileParser(
245245
val sym = denot.symbol
246246
val jflags = in.nextChar
247247
val isEnum = (jflags & JAVA_ACC_ENUM) != 0
248-
val name = pool.getName(in.nextChar)
248+
val name = pool.getName(in.nextChar).name
249249
val isConstructor = name eq nme.CONSTRUCTOR
250250

251251
/** Strip leading outer param from constructor and trailing access tag for

0 commit comments

Comments
 (0)