-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 17
-
Component/s: tools
-
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