JDK-8248348 : Regression caused by the update to BCEL 6.0
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 11,12,13,14,15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-06-25
  • Updated: 2022-06-27
  • Resolved: 2020-07-03
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 11 JDK 13 JDK 15 JDK 16 JDK 7 JDK 8
11.0.9-oracleFixed 13.0.5Fixed 15Fixed 16 b05Fixed 7u311Fixed 8u271Fixed
Related Reports
Relates :  
Description
The update to BCEL 6.0 (JDK-8163121) appears to have caused a regression. The following stacktrace demonstrated what it looked like when it failed in compiling a large stylesheet:

com.sun.org.apache.bcel.internal.generic.ClassGenException: Not targeting 10980: nop[0](1), but null
	at com.sun.org.apache.bcel.internal.generic.BranchInstruction.updateTarget(BranchInstruction.java:220)
	at com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator.outline(MethodGenerator.java:1748)
	at com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator.outlineChunks(MethodGenerator.java:1145)
	at com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator.getGeneratedMethods(MethodGenerator.java:1909)

Note there was a BCEL bug report related to the introduction of the hashCode() method:
https://issues.apache.org/jira/browse/BCEL-195
The bug fix however did not resolve the above issue.

Comments
Fix request (13u): I'd like to downport it, too. Changes to resolve were in javadoc date labels only: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-July/003530.html
20-07-2020

Fix request (11u) -- will label after testing completed. I would like to downport this for parity with 11.0.9-oracle. I had to do Copyright-like trivial resolves: http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-July/003523.html
19-07-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/458fa7cc82b3 User: joehw Date: 2020-07-03 00:11:07 +0000
03-07-2020