File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/compiler/scala/tools/nsc/backend/jvm Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,8 @@ abstract class BCodeHelpers extends BCodeIdiomatic with BytecodeWriters {
329
329
// If the `sym` is a java module class, we use the java class instead. This ensures that we
330
330
// register the class (instead of the module class) in innerClassBufferASM.
331
331
// The two symbols have the same name, so the resulting internalName is the same.
332
- val classSym = if (sym.isJavaDefined && sym.isModuleClass) sym.linkedClassOfClass else sym
332
+ // Phase travel (exitingPickler) required for SI-6613 - linkedCoC is only reliable in early phases (nesting)
333
+ val classSym = if (sym.isJavaDefined && sym.isModuleClass) exitingPickler(sym.linkedClassOfClass) else sym
333
334
getClassBTypeAndRegisterInnerClass(classSym).internalName
334
335
}
335
336
You can’t perform that action at this time.
0 commit comments