Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ public class CompilerConfiguration
*/
private boolean enablePreview;

/** value of <code>-implicit:</code> of java compiler */
private String implicitOption;

// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
Expand Down Expand Up @@ -799,4 +802,14 @@ public void setForceJavacCompilerUse( boolean forceJavacCompilerUse )
{
this.forceJavacCompilerUse = forceJavacCompilerUse;
}

public String getImplicitOption()
{
return implicitOption;
}

public void setImplicitOption( String implicitOption )
{
this.implicitOption = implicitOption;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ public static String[] buildCompilerArguments( CompilerConfiguration config, Str
args.add( "--enable-preview" );
}

if ( config.getImplicitOption() != null )
{
args.add( "-implicit:" + config.getImplicitOption() );
}

if ( config.isShowDeprecation() )
{
args.add( "-deprecation" );
Expand Down