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

java command doesn't use inheritence for main method

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

      If class Foo provides a main method, and class Bar extends Foo but does
      not provide a main method, Bar inherits Foo's main.

      This is not recognized by the java command. If one invokes "java Bar"
      it will complain that it cannot find a main method. It should just
      invoke Foo.main.

      This allows people to write a general class that drives subclasses and
      then let the subclass override certain methods. A very nice capability

        Attachments

          Activity

            People

            Assignee:
            fyellinsunw Frank Yellin (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: