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

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

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: repo-amber
    • Fix Version/s: repo-amber
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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;
              }
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: