-XshowSettings would probably be a good place to include the VM arguments.
$ java -XshowSettings:vm -—dry-run

I file a JBS issue:
  https://bugs.openjdk.java.net/browse/JDK-8160389

Mandy


> On Jun 27, 2016, at 9:20 AM, Paul Benedict <pbened...@apache.org> wrote:
> 
> Mandy, if I may recommend another suggestion, another "sanity" check could be 
> dumping the command line arguments. I know quite a few bash programmers who 
> would really love to see they passed their arguments correctly without 
> executing their program. :-)
> 
> Cheers,
> Paul
> 
> On Mon, Jun 27, 2016 at 10:48 AM, Raymond Gallardo 
> <raymond.galla...@oracle.com> wrote:
> Hi Mandy,
> 
> Does this enhancement need to be doc'd? If so, could you add a subtask 
> (component = docs)?
> 
> Thanks,
> --Raymond
> 
> On 24/06/2016 9:49 AM, Mandy Chung wrote:
> Webrev:
>    http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8159596/webrev.00/
> 
> `java --dry-run` will create the VM, load the main, locate the static void 
> main method, and exit (with 0) instead of executing the method.  As all 
> module options are processed and the boot layer is created, this would be 
> useful to sanity check the options and detect possible issues.
> 
> Mandy
> 
> 
> 

Reply via email to