File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core/classfile Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class ClassfileParser(
94
94
}
95
95
catch {
96
96
case e : RuntimeException =>
97
- e.printStackTrace()
97
+ if (ctx.debug) e.printStackTrace()
98
98
throw new IOException (
99
99
i """ class file ${classfile.canonicalPath} is broken, reading aborted with ${e.getClass}
100
100
| ${Option (e.getMessage).getOrElse(" " )}""" )
@@ -1155,7 +1155,7 @@ class ClassfileParser(
1155
1155
val start = starts(index)
1156
1156
value = (in.getByte(start).toInt: @ switch) match {
1157
1157
case CONSTANT_STRING =>
1158
- Constant (getName(in.getChar(start + 1 ).toInt).toString )
1158
+ Constant (getName(in.getChar(start + 1 ).toInt).value )
1159
1159
case CONSTANT_INTEGER =>
1160
1160
Constant (in.getInt(start + 1 ))
1161
1161
case CONSTANT_FLOAT =>
You can’t perform that action at this time.
0 commit comments