Uploaded image for project: 'Apache Twill (Retired)'
  1. Apache Twill (Retired)
  2. TWILL-125

BundledJarRunner doesn't work for classes with no zero-args constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.0-incubating
    • 0.6.0-incubating
    • ext
    • None

    Description

      BundledJarRunner attempts to load the main class using Class#newInstance. The call to newInstance will then attempt to find and invoke the class's zero-args constructor. This will throw an InstantiationException if there is no zero-args constructor to be found.

      Loading the main class is unnecessary. Since main is always static it can be invoked with a null target object.

      Attachments

        Activity

          People

            robmorgan Rob Morgan
            robmorgan Rob Morgan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: