JDK-7039809 : Eliminate java.io.File dependency on java.beans.ConstructorProperties
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-04-26
  • Updated: 2017-05-16
  • Resolved: 2011-06-08
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 7
7 b142Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
java.io.File is annotated with java.beans.ConstructorProperties in JDK 7
(6708550).  From modularity's perspective, this is a undesirable dependency.
The base module (where java.io.File class is) cannot depend on any other module.
Unless java.beans.ConstructorProperties is included in the base module and
splitting java.beans package across the base module and the client module,
such dependency has to be eliminated.

It is still an open requirement whether a module system supports multi-module packages
(aka split packages).  In order to leave the options open (no multi-module package
support), we should back out the fix for 6708550 in JDK 7.  We can reimplement 
the fix in JDK 8 once it is determined that multi-module package will be supported.

Comments
EVALUATION Back out the fix for 6708550. Revisit that in JDK 8.
26-04-2011