JDK-8163798 : Create a JarFile versionedStream method
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-08-10
  • Updated: 2017-10-18
  • Resolved: 2016-09-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b137Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The API Note for JarFile::stream claims to demonstrate how to create a versioned stream, but it only finds versioned classes that have equivalent base classes.  It misses versioned classes that are not public and it misses versioned resources.  This API note needs to be removed and a versionedStream method needs to be added to JarFile because both jlink and jdeps use a versionedStream, and we'd need to duplicate the code in both tools.
Comments
Put versionedStream method in jdk.internal for use by jlink and jdeps. Consider making it a public method in JarFile in the future.
07-09-2016