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

[local-methods] Javac silently tolerates bogus @Override annotations on local methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-amber
    • repo-amber
    • tools
    • generic
    • generic

      The following program compiles fine while it should not:

      public class X {
      public static void main(String [] args) {
              @Override
              void xxx (int y) {
              }
              @Override
              int X(int y) {
                  return y;
              }
      }
      }

            vromero Vicente Arturo Romero Zaldivar
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: