RFR: 8343427: Class file load hook crashes on archived classes from multi-release JARs [v2]
    Calvin Cheung 
    ccheung at openjdk.org
       
    Wed Nov 20 22:02:34 UTC 2024
    
    
  
> Currently, when retrieving a ClassFileStream during runtime, we call into the zip library to retrieve the stream based only on a class name. This doesn't work well if the class is in a multi-release jar under a versioned directory such as `META-INF/versions/9/Foo.class`. To address this issue, this change calls the java api `ClassLoader.getResourceAsStream()` to retrieve the stream.
> 
> Passed tiers 1 - 4 testing.
Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
  updated testcase
-------------
Changes:
  - all: https://git.openjdk.org/jdk/pull/22262/files
  - new: https://git.openjdk.org/jdk/pull/22262/files/d9d70379..96b7945f
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22262&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22262&range=00-01
  Stats: 37 lines in 1 file changed: 21 ins; 11 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/22262.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22262/head:pull/22262
PR: https://git.openjdk.org/jdk/pull/22262
    
    
More information about the hotspot-dev
mailing list