Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.5.0-incubating
-
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.