Commit ae2d13a
committed
Fix #4357: Avoid cyclic reference when parsing Java classfile
We force all types appearing in the extends clause using `cook` before
completing the current class, in B_1.java this means we force `C` before
`B_1` is completed, ClassfileLoader#load ends up calling
`scalacLinkedClass` which before this commit forced the owner of `C`,
causing a cycle.1 parent 9c83d27 commit ae2d13a
File tree
3 files changed
+8
-1
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos-java-interop/i4357
3 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
| 993 | + | |
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments