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

JShell: forward references do not work with cross referenced annotation types.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • tbd
    • 9
    • tools
    • None

      JShell API: forward references do not work for annotation types.

      To reproduce:
      @Repeatable(TAValues.class)
      @interface TA { int value(); }
      | Modified annotation interface TA, however, it cannot be referenced until class TAValues is declared

      @interface TAValues { TA[] value(); }
      | Modified annotation interface TAValues, however, it cannot be referenced until class TA is declared

            rfield Robert Field (Inactive)
            aeremeev Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: