-
Notifications
You must be signed in to change notification settings - Fork 277
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
extra javac opts should override default ones #1613
extra javac opts should override default ones #1613
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
514ab02
to
02d001c
Compare
@thomasbao12 could you add a test to prevent regressions? |
b09a48b
to
0fc657a
Compare
0fc657a
to
15f7570
Compare
@liucijus I added a test and verified it fails on master #1615. I tried to follow the pattern established in other javac flag tests. One issue though is I assume the default java toolchain sets a -target flag. 3 potential options:
I'm okay with 0 & 1. I worry 2 is not worth doing and overly specific. |
@thomasbao12 if I haven't missed anything, option 0 seems the best to me - it communicates your need plus the name implies generic expectation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @thomasbao12!
@liucijus Can you merge? |
Description
Fixes #1550
Currently the default javac flags will be appended last, overriding the manual ones.
Motivation