mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
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:
parent
83abeb739b
commit
6cac1178ba
3 changed files with 68 additions and 14 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue