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
8235876: Misleading warning message in java source-file mode #6537
Conversation
|
Webrevs
|
@asotona This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 4 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
/integrate |
Going to push as commit 951247c.
Your commit was automatically rebased without conflicts. |
Execution of
java --source 7 Test.java
displays following warning:warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
However use of
-Xlint:-options
is not allowed and so it proposes an invalid suggestion.This is yet another case of "too much information" provided to user in source-file mode.
Target audience of source-file mode are Java beginners with very simple cases.
Many options are not available in source-file mode and so this patch disables also related options warnings.
The case is similar to JDK-8268869
Patch adds
-Xlint:-options
into the list of default javac options in source-file mode.Relevant test is also provided.
Thanks,
Adam
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6537/head:pull/6537
$ git checkout pull/6537
Update a local copy of the PR:
$ git checkout pull/6537
$ git pull https://git.openjdk.java.net/jdk pull/6537/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6537
View PR using the GUI difftool:
$ git pr show -t 6537
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6537.diff