JDK-8155657 : Consider a public method on JarFile to return the real name of a versioned entry
  • Type: Bug
  • Component: core-libs
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2016-04-28
  • Updated: 2016-07-26
  • Resolved: 2016-07-26
Related Reports
Blocks :  
Description
Currently JarFile.getJarEntry().getName() returns  the base entry name for a versioned entry.  This is essentially a logical name that, for a multi-release jar, maps to the true name of the entry.

This issue is to consider creating a public method (e.g. getRealName() or getTrueName()) that allows a JarFile client to obtain the real name of a JarEntry.
Comments
We considered it and decided the method is not needed.
26-07-2016