[8u] RFR 8216401: Allow "file:" URLs in Class-Path of local JARs

Hohensee, Paul hohensee at amazon.com
Tue Aug 13 20:02:16 UTC 2019


In this case, we'd be updating ClassFileInstaller.java to match the one in jdk/test/lib/testlibrary. In 11, these are merged into a single version in test/lib/ClassFileInstaller.java, but we can't do that in 8u because there are two different test directories. I expect there may be more instances of the two 8u versions not matching causing problems, so imo the right thing to do is file a bug against 8u to update Hotspot's ClassFileInstaller.java to match the jdk's, and then do this backport. I'd be happy to file the bug and sponsor Clive's fix.

Thanks,

Paul

On 8/13/19, 12:36 PM, "jdk8u-dev on behalf of Zhengyu Gu" <jdk8u-dev-bounces at openjdk.java.net on behalf of zgu at redhat.com> wrote:

    Hi Clive,
    
    On 8/13/19 2:59 PM, Verghese, Clive wrote:
    > Hi Zhengyu,
    > 
    > Instead of importing the writeToDisk function to the test, We could update the ClassFileInstaller to be similar to the one in tip. [1]
    > 
    > http://cr.openjdk.java.net/~phh/8216401/webrev.8u0.00/
    
    I think the principal of 8u backport, is to minimize the scope to 
    absolutely needed. I imported some of ClassFileInstaller code to the 
    test, because I have not seen they are used by others. If that's the 
    case, I think we should arrange partial backport for test library 
    changes. I don't like the idea to sneak in test infrastructure changes 
    via unrelated backports.
    
    Thanks,
    
    -Zhengyu
    
    > 
    > Regards,
    > Clive Verghese
    > 
    > [1] : https://hg.openjdk.java.net/jdk/jdk/file/be8c11fc16bb/test/lib/ClassFileInstaller.java
    > 
    > 
    > 
    > On 8/12/19, 11:38 AM, "jdk8u-dev on behalf of Zhengyu Gu" <jdk8u-dev-bounces at openjdk.java.net on behalf of zgu at redhat.com> wrote:
    > 
    >      Please review 8u backport of above CR.
    >      JDK13 patch does not apply cleanly. However, the fix itself applies
    >      cleanly, just not the test.
    >      
    >      8u ClassFileInstaller does not have some APIs that exist in JDK13.
    >      Therefore, I copied/pasted corresponding code from JDK13's
    >      ClassFileInstaller into the test (writeClassToDisk and writeToDisk).
    >      
    >      Original bug: https://bugs.openjdk.java.net/browse/JDK-8216401
    >      Original Webrev:
    >      https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-January/057868.html
    >      Original review thread:
    >      https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-January/057868.html
    >      
    >      8u webrev: http://cr.openjdk.java.net/~zgu/JDK-8216401-8u/webrev.00/
    >      
    >      Test:
    >         Run attached test case (before and after fix) on Linux 86_64.
    >      
    >      Thanks,
    >      
    >      -Zhengyu
    >      
    > 
    



More information about the jdk8u-dev mailing list