Skip to content

[MCOMPILER-402] Add implicitOption to CompilerConfiguration #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2022
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