new restrictions on annotations of record components

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Not an Issue
    • Priority: P3
    • 16
    • Affects Version/s: None
    • Component/s: tools

      @Target(ElementType.PARAMETER)
      @interface DevAnnotation{ String value(); } record

      R(@DevAnnotation(“devA”) String s) { // Error!
            R(@DevAnnotation(“devB”) String s) {
                // Explicitly declared canonical constructor
                ...
            }
        }

      or

      R(@DevAnnotation(“devA”) String s) { // Error!
            R(String s) {
                // Explicitly declared canonical constructor
                ...
            }
        }

      this one should be erroneous too:
      R(@DevAnnotation(“devA”) String s) { // Error!
            R(@DevAnnotation(“devA”) String s) {
                // Explicitly declared canonical constructor
                ...
            }
        }

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: