JDK-8055059 : JDK9b22 public API exposes package private classes
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-08-13
  • Updated: 2017-05-17
  • Resolved: 2015-01-12
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 b52Fixed
Related Reports
CSR :  
Duplicate :  
Relates :  
Description
JDK9b22 public API exposes package private classes:

Package private class javax.swing.text.GapContent$UndoPosRef gets visible through public API:
http://jre.us.oracle.com/java/re/jdk/9/promoted/all/b22/doc/api/javax/swing/text/GapContent.html#updateUndoPositions-java.util.Vector-int-int-
http://jre.us.oracle.com/java/re/jdk/9/promoted/all/b22/doc/api/javax/swing/text/GapContent.html#getPositionsInRange-java.util.Vector-int-int-

Package private class javax.swing.text.StringContent$UndoPosRef gets visible through public API:
http://jre.us.oracle.com/java/re/jdk/9/promoted/all/b22/doc/api/javax/swing/text/StringContent.html#updateUndoPositions-java.util.Vector-
http://jre.us.oracle.com/java/re/jdk/9/promoted/all/b22/doc/api/javax/swing/text/StringContent.html#getPositionsInRange-java.util.Vector-int-int-
Comments
New review thread: http://mail.openjdk.java.net/pipermail/swing-dev/2015-January/004105.html
10-01-2015

Joe: any progress to get it fixed?
13-11-2014

This issue is a stopper for signature test to properly generate signature files.
13-11-2014

Review thread: http://mail.openjdk.java.net/pipermail/swing-dev/2014-August/003823.html
19-08-2014

The StringContent class is final. It may have sense to change the updateUndoPositions() method visibility from protected to package.
14-08-2014

- protected void updateUndoPositions(Vector positions) { + protected void updateUndoPositions(Vector<UndoPosRef> positions) { UndoPosRef with package access is exposed in protected method.
14-08-2014

This is a regression from the fix JDK-8043549 Fix raw and unchecked lint warnings in javax.swing.text.*
14-08-2014