Commit ade6dbb
committed
Fix BaseImportTestCase on JDK 21+ by ignoring internal modules not on classpath
JDK 21+ exposes internal modules (e.g., jdk.management.agent) that appear as package fragment roots but throw JavaModelException when accessed because they are not on the project's build path. This change explicitly ignores these exceptions to prevent test failures.1 parent c3bf5cc commit ade6dbb
1 file changed
Lines changed: 10 additions & 1 deletion
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
202 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
203 | 212 | | |
204 | 213 | | |
205 | 214 | | |
| |||
0 commit comments