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

term override in compiler error message may be implement

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      interface IFoo{
        void bar();
      }
      class Foo implements IFoo {
      }

      # javac Foo.java
      Foo.java:1: Foo is not abstract and does not override abstract method bar() in IFoo
      class Foo implements IFoo{
      ^
      1 error

      Can above message use "implement" instead of "override"? like,
      {0} is not abstract and does not implement abstract method {1} in {2}

      To me, it looks more appropriate to use the word implement when abstract method in abstract class was not implemented or when interface method was not implemented in it's implementing class.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ogino Shinya Ogino (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: