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

javac hangs when annotation is declared with sealed public modifier

    XMLWordPrintable

Details

    • b19
    • Verified

    Description

      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

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: