-
Bug
-
Resolution: Fixed
-
P2
-
17
-
b19
-
Verified
javac hangs when annotation is declared with sealed public modifier
Please refer the below code:
================================
// AnnotTest .java
public class AnnotTest {
@Annot
public static void main(String argv[]) {
System.out.println("Test");
}
}
================================
// Annot.java
sealed public @interface Annot { }
================================
The below command hangs:
javac --enable-preview -source 17 AnnotTest.java Annot.java
Please refer the below code:
================================
// AnnotTest .java
public class AnnotTest {
@Annot
public static void main(String argv[]) {
System.out.println("Test");
}
}
================================
// Annot.java
sealed public @interface Annot { }
================================
The below command hangs:
javac --enable-preview -source 17 AnnotTest.java Annot.java