Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264373

javac hangs when annotation is declared with sealed public modifier

XMLWordPrintable

    • 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

        1. Annot.java
          0.0 kB
        2. AnnotTest.java
          0.1 kB

            vromero Vicente Arturo Romero Zaldivar
            vkhatri Vinod Khatri
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: