mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8157519: Error messages when compiling a malformed module-info.java confusing
Reviewed-by: jjg
This commit is contained in:
parent
9208c82732
commit
8513d8d26f
5 changed files with 51 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8157519
|
||||
* @summary Error messages when compiling a malformed module-info.java confusing
|
||||
* @compile/fail/ref=moduleinfo.out -XDrawDiagnostics module-info.java
|
||||
*/
|
||||
|
||||
module java.transaction {
|
||||
requires java.base;
|
||||
resuires javax.interceptor.javax.interceptor.api;
|
||||
requires public javax.enterprise.cdi.api;
|
||||
requires public java.sql;
|
||||
requires public java.rmi;
|
||||
export javax.transaction;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue