Commit 9396ad8
committed
Avoid cycle between Java static class and outer class
Real world usecase is
https://www.javadoc.io/doc/software.amazon.awssdk/cloudwatchlogs/2.13.28/software/amazon/awssdk/services/cloudwatchlogs/model/GetLogEventsRequest.html
- When parsing a Java classfile, set the info of the companion (where
inner static classes will be looked up) before reading the generic
signature of the class.
- When looking for a companion, do not unnecessarily force denotations1 parent 31879e5 commit 9396ad8
File tree
4 files changed
+19
-6
lines changed- compiler/src/dotty/tools/dotc/core
- classfile
- tests/pos-java-interop-separate/static-cycle
4 files changed
+19
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2199 | 2199 | | |
2200 | 2200 | | |
2201 | 2201 | | |
2202 | | - | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
2203 | 2206 | | |
2204 | 2207 | | |
2205 | 2208 | | |
| |||
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 195 | | |
193 | | - | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
916 | 918 | | |
917 | 919 | | |
918 | 920 | | |
919 | | - | |
| 921 | + | |
920 | 922 | | |
921 | 923 | | |
922 | 924 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments