8047675: tools/javac/defaultMethods/Assertions.java fails if run with -enableassertions (-ea)

Using ToolBox to start new Java processes, to avoid passing default VM options to the newly started process.

Reviewed-by: jjg
This commit is contained in:
Jan Lahoda 2014-09-04 08:49:20 +02:00
parent 83abeb739b
commit 6cac1178ba
3 changed files with 68 additions and 14 deletions

View file

@ -1567,6 +1567,20 @@ public class ToolBox {
return this;
}
/**
* Sets whether or not the standard VM and java options for the test should be passed
* to the new VM instance. If this method is not called, the default behavior is that
* the options will be passed to the new VM instance.
*
* @param includeStandardOptions whether or not the standard VM and java options for
* the test should be passed to the new VM instance.
* @return this task object
*/
public JavaTask includeStandardOptions(boolean includeStandardOptions) {
this.includeStandardOptions = includeStandardOptions;
return this;
}
/**
* {@inheritDoc}
* @return the name "java"