Repository navigation
Commit b06ccee
committed
Expect what the command line prints for a comment in a module name
ModuleImportTest held formatSourceAndFixImports to what it wrote when
it fixed the imports before formatting: the formatter broke
"import module java./* comment */ base;" after the dot, and the line
stayed broken. The command line fixes the imports after formatting,
where ImportOrderer joins the line again, and formatSourceAndFixImports
now does the same (#219).
The test runs on JDK 25 and later only, where import module parses,
so the JDK 21 build passed without this and the JDK 25 to 28 builds
failed.1 parent b445927 commit b06ccee
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
128 | 122 | | |
129 | 123 | | |
130 | 124 | | |
| |||
0 commit comments