equal
deleted
inserted
replaced
126 // This is the test, to verify that the module being compiled will not be able to read |
126 // This is the test, to verify that the module being compiled will not be able to read |
127 // modules on the module path when a --limit-modules is used |
127 // modules on the module path when a --limit-modules is used |
128 new TestCase(base) |
128 new TestCase(base) |
129 .testOpts("--module-path", modules.toString(), "--limit-modules", "jdk.compiler") |
129 .testOpts("--module-path", modules.toString(), "--limit-modules", "jdk.compiler") |
130 .otherOpts("-XDrawDiagnostics", |
130 .otherOpts("-XDrawDiagnostics", |
131 "--module-source-path", src.toString()) |
131 "--module-source-path", src.toString(), |
|
132 "-classpath", "") |
132 .files(findJavaFiles(src)) |
133 .files(findJavaFiles(src)) |
133 .expect(Task.Expect.FAIL, "compiler.err.module.not.found") |
134 .expect(Task.Expect.FAIL, "compiler.err.module.not.found") |
134 .run(); |
135 .run(); |
135 } |
136 } |
136 |
137 |