Skip to content
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

Allow developer to specify ECJ compiler options #1353

Closed
IceCream-QAQ opened this issue Jul 31, 2020 · 1 comment
Closed

Allow developer to specify ECJ compiler options #1353

IceCream-QAQ opened this issue Jul 31, 2020 · 1 comment
Assignees
Milestone

Comments

@IceCream-QAQ
Copy link

IceCream-QAQ commented Jul 31, 2020

Java 14 supports Record class. However this is a preview feature. We want to turn on --enable-preview ECJ option to allow us use Record class in Act application.

@greenlaw110 greenlaw110 changed the title 希望可以提供自定义 Ecj 参数。 Allow developer to specify ECJ compiler options Aug 1, 2020
@greenlaw110
Copy link
Contributor

Now it can use System properties to pass in ECJ compiler options. E.g. to turn on --enable-preview, use

-Dorg.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled

Here is the full list of ECJ compiler options:

http://www.howsoftworks.net/ecj-CompilerOptions

@greenlaw110 greenlaw110 added this to the 1.9.1 milestone Aug 1, 2020
@greenlaw110 greenlaw110 self-assigned this Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants