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

Annotation method syntax

XMLWordPrintable

    • generic
    • generic

      The support for that syntax was intentionally omitted, the reasoning being that this syntax is deprecated and there were no annotations interfaces in existence yet so we could disallow it. So, I'd call it a bug in javac. But given that javac now accepts it, it might have to be blessed just in case someone does it. No, let's just call it a bug in javac.

      -Neal

      On 12/12/06, ... wrote:
      The syntax in JLS3 9.6 seems to disallow
              
              @interface A {
                 int f()[];
              }
              
              but javac 1.5 accepts it. Bug in javac or in standard?

            jjg Jonathan Gibbons
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: