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

8259039: Passing different version to --release flag than javac version output warning #5053

wants to merge 2 commits into from


Copy link

@lahodaj lahodaj commented Aug 9, 2021

For code like:

com.sun.nio.file.ExtendedOpenOption o;

certain combination of command line options produce a proprietary warnings:

$ javac --release 11 warning: ExtendedOpenOption is internal proprietary API and may be removed in a future release
    com.sun.nio.file.ExtendedOpenOption o;
1 warning

But some do not:

$ javac -source 8 
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning

The reason is that the files does not mark com.sun.nio.file as proprietary. The proposed fix has two parts:
-adds proprietary to the com.sun.nio.file package in
-limits the so that it is only used for -source 8. The contains 3 types of information: it hides some packages, it marks some packages as "proprietary" (so that they produce the warning), and assigns packages to compact profiles. For -source 9+, most of these is not needed - packages are hidden using the module system, the only packages that need a warning are from the jdk.unsupported module, and there are no compact profiles. So for -source 9+, we don't need to use the (Note none of this applies to --release - it uses a different database.)


  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed


  • JDK-8259039: Passing different version to --release flag than javac version output warning



Using git

Checkout this PR locally:
$ git fetch pull/5053/head:pull/5053
$ git checkout pull/5053

Update a local copy of the PR:
$ git checkout pull/5053
$ git pull pull/5053/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 5053

View PR using the GUI difftool:
$ git pr show -t 5053

Using diff file

Download this PR as a diff file:

Copy link

bridgekeeper bot commented Aug 9, 2021

👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

Copy link

openjdk bot commented Aug 9, 2021

@lahodaj The following label will be automatically applied to this pull request:

  • compiler

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the compiler label Aug 9, 2021
@openjdk openjdk bot added the rfr Pull request is ready for review label Aug 12, 2021
Copy link

mlbridge bot commented Aug 12, 2021


Copy link

bridgekeeper bot commented Sep 9, 2021

@lahodaj This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

Copy link

@jonathan-gibbons jonathan-gibbons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work

Copy link

openjdk bot commented Sep 13, 2021

@lahodaj This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file for details.

After integration, the commit message for the final commit will be:

8259039: Passing different version to --release flag than javac version output warning

Reviewed-by: jjg

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 466 new commits pushed to the master branch:

  • f9b2507: 8271834: TestStringDeduplicationAgeThreshold intermittent failures on Shenandoah
  • 261cb44: 8273629: compiler/uncommontrap/ fails with release VMs
  • b0d0497: 8273584: TypeElement.getSuperclass crashes for a record TypeElement when j.l.Record is not available
  • 4efcd20: 8273478: [macos11] JTabbedPane selected and pressed tab is not legible
  • a73c06d: 8273021: C2: Improve Add and Xor ideal optimizations
  • 9f86082: 8273610: LogTestFixture::restore_config() should not restore options
  • 2ee1f96: 8273484: Cleanup unnecessary null comparison before instanceof check in java.naming
  • f189dff: 8273595: tools/jpackage tests do not work on apt-based Linux distros like Debian
  • 922e86f: 8273522: Rename test property to
  • f42b927: 8273609: Fix trivial doc typos in the compiler area
  • ... and 456 more:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 13, 2021
Copy link
Contributor Author

lahodaj commented Sep 20, 2021


Copy link

openjdk bot commented Sep 20, 2021

Going to push as commit 699865f.
Since your change was applied there have been 540 commits pushed to the master branch:

  • f71df14: 8273187: jtools tests fail with missing markerName check
  • 6f3e40c: 8273825: fails after JDK-8266550
  • a561eac: 8273895: compiler/ciReplay/ fails due to wrong data size with TieredStopAtLevel=2,3
  • d2388b7: 8273959: Some metaspace diagnostic switches should be develop
  • dc7f452: 8273815: move have_special_privileges to os_posix for POSIX platforms
  • 7c9868c: 8273454: C2: Transform (-a)(-b) into ab
  • bb9d142: 8273958: gtest/MetaspaceGtests executes unnecessary tests in debug builds
  • 2a2e919: 8273685: Remove jtreg tag manual=yesno for java/awt/Graphics/ & show test instruction
  • 8302061: 8273774: CDSPluginTest should only expect classes_nocoops.jsa exists on supported 64-bit platforms
  • 2f8c221: 8273681: Add Vector API vs Arrays.mismatch intrinsic benchmark
  • ... and 530 more:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Sep 20, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 20, 2021
Copy link

openjdk bot commented Sep 20, 2021

@lahodaj Pushed as commit 699865f.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
compiler integrated Pull request has been integrated
2 participants