You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@twill.apache.org by "Terence Yim (JIRA)" <ji...@apache.org> on 2015/03/25 18:15:53 UTC
[jira] [Resolved] (TWILL-125) BundledJarRunner doesn't work for
classes with no zero-args constructor
[ https://issues.apache.org/jira/browse/TWILL-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Terence Yim resolved TWILL-125.
-------------------------------
Resolution: Fixed
> BundledJarRunner doesn't work for classes with no zero-args constructor
> -----------------------------------------------------------------------
>
> Key: TWILL-125
> URL: https://issues.apache.org/jira/browse/TWILL-125
> Project: Apache Twill
> Issue Type: Bug
> Components: ext
> Affects Versions: 0.5.0-incubating
> Reporter: Rob Morgan
> Assignee: Rob Morgan
> Fix For: 0.6.0-incubating
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)