-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 21
-
Component/s: tools
-
b14
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8315746 | 21.0.2 | Jan Lahoda | P3 | Resolved | Fixed | b02 |
Consider code like:
---
package test;
public
---
The CompilationUnitTree for this (obviously erroneous) code used to contain an ErroneousTree, holding the modifiers contains "public".
AfterJDK-8305671, the modifiers are simply thrown away, and are lost, which is causing issues to some Trees API clients.
---
package test;
public
---
The CompilationUnitTree for this (obviously erroneous) code used to contain an ErroneousTree, holding the modifiers contains "public".
After
- backported by
-
JDK-8315746 Erroneous AST missing modifiers for partial input
-
- Resolved
-
- relates to
-
JDK-8305671 javac rejects semicolons in compilation units with no imports
-
- Resolved
-
- links to
-
Commit
openjdk/jdk21u/aef25fca
-
Commit
openjdk/jdk/84425a62
-
Review
openjdk/jdk21u/131
-
Review
openjdk/jdk/15517
(1 links to)