JDK-2221690 : AIOB exception in the RemoveCommentReader
  • Type: Backport
  • Backport of: JDK-7063183
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-02-28
  • Updated: 2012-03-14
  • Resolved: 2012-03-14
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 6 JDK 7
6u31-rev b23Fixed 7u2Fixed
Description
Backporting the fix from JDK7. The testcase has been converted to standalone and attached to this CR. Here is the test output with and without the changes:

D:\Sunita\Escalations\UI\7063183>"C:\Program Files (x86)\Java\jdk1.6.0_31\bin\ja
va.exe" -cp .;"C:\Program Files (x86)\Java\jdk1.6.0_31\jre\lib\deploy.jar" Remov
eCommentReaderTest

D:\Sunita\Escalations\UI\7063183>"C:\Program Files (x86)\Java\jdk1.6.0_31\bin\ja
va.exe" -cp .;"C:\Program Files (x86)\Java\jdk1.6.0_29\jre\lib\deploy.jar" Remov
eCommentReaderTest
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 20
        at com.sun.deploy.net.proxy.RemoveCommentReader.read(RemoveCommentReader
.java:90)
        at RemoveCommentReaderTest.doTest(RemoveCommentReaderTest.java:22)
        at RemoveCommentReaderTest.testRead(RemoveCommentReaderTest.java:36)
        at RemoveCommentReaderTest.main(RemoveCommentReaderTest.java:69)

Comments
EVALUATION Backporting the fix from JDK7. The testcase has been converted to standalone and attached to this CR. Here is the test output with and without the changes: D:\Sunita\Escalations\UI\7063183>"C:\Program Files (x86)\Java\jdk1.6.0_31\bin\ja va.exe" -cp .;"C:\Program Files (x86)\Java\jdk1.6.0_31\jre\lib\deploy.jar" Remov eCommentReaderTest D:\Sunita\Escalations\UI\7063183>"C:\Program Files (x86)\Java\jdk1.6.0_31\bin\ja va.exe" -cp .;"C:\Program Files (x86)\Java\jdk1.6.0_29\jre\lib\deploy.jar" Remov eCommentReaderTest Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 20 at com.sun.deploy.net.proxy.RemoveCommentReader.read(RemoveCommentReader .java:90) at RemoveCommentReaderTest.doTest(RemoveCommentReaderTest.java:22) at RemoveCommentReaderTest.testRead(RemoveCommentReaderTest.java:36) at RemoveCommentReaderTest.main(RemoveCommentReaderTest.java:69)
28-02-2012