RFR: 8344925: translet-name ignored, when package-name is also set via TransformerFactory.setAttribute

Zheng Feng duke at openjdk.org
Thu Jan 23 21:55:18 UTC 2025


…String)

This bug seems from the improper handling of package and class name initialization in `XSLTC` since there is a default value of  `_packageName` with `die.verwandlung`. This fix is just adjusting to call `setPackageName` before `setClassName`.

I've done the tire1 and tire2 tests. The tire1 tests passed and tire2 reports


==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR  
>> jtreg:test/hotspot/jtreg:tier2                      745   744     1     0 <<
>> jtreg:test/jdk:tier2                               4142  4137     2     3 <<
   jtreg:test/langtools:tier2                           12    12     0     0  
   jtreg:test/jaxp:tier2                               514   514     0     0  
   jtreg:test/docs:tier2                                 1     1     0     0  
==============================
TEST FAILURE


The failed tests are

JT Harness : Tests that failed
runtime/Thread/ThreadCountLimit.java#id0: Stress test that reaches the process limit for thread count, or time limit.

JT Harness : Tests that failed
java/net/InetAddress/CheckJNI.java: java -Xcheck:jni failing in net code on Solaris / [Datagram]Socket.getLocalAddress() failure
java/net/Socket/LinkLocal.java: Connecting to a link-local IPv6 address should not causes a SocketException to be thrown.

JT Harness : Tests that had errors
java/net/URL/EarlyOrDelayedParsing.java: URL built-in protocol handlers should parse the URL early to avoid constructing URLs for which openConnection would later throw an exception, when possible.
java/net/ipv6tests/UdpTest.java: IPv6 support for Windows XP and 2003 server.
java/nio/channels/DatagramChannel/SendReceiveMaxSize.java: Check that it is possible to send and receive datagrams of maximum size on macOS.

-------------

Commit messages:
 - 8344925: Call XSLTC.setPackageName(String) before XSLTC.setClassName(String)

Changes: https://git.openjdk.org/jdk/pull/22425/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22425&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8344925
  Stats: 6 lines in 1 file changed: 3 ins; 3 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22425.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22425/head:pull/22425

PR: https://git.openjdk.org/jdk/pull/22425


More information about the core-libs-dev mailing list