[9] RFR 8072369: [TESTBUG] Remove potentially insecure class cast in some hotspot tests

Christian Thalinger christian.thalinger at oracle.com
Tue Oct 6 19:35:12 UTC 2015


> On Sep 9, 2015, at 3:16 AM, Konstantin Shefov <konstantin.shefov at oracle.com> wrote:
> 
> Description of the fix.
> Some tests in hotspot repo use class cast from Application class loader to URLClassLoader, but Application class loader is not guaranteed to be always an instance of a URLClassLoader.

Please excuse my lack of knowledge here but in what configuration does this happen?

> The tests should be changed so that they do not cast appclassloader to URLClassLoader.
> 
> -Konstantin
> 
> On 09/08/2015 07:01 PM, Konstantin Shefov wrote:
>> Hello 
>> 
>> Please review a test bug fix. 
>> 
>> JBS entry: https://bugs.openjdk.java.net/browse/JDK-8072369 <https://bugs.openjdk.java.net/browse/JDK-8072369> 
>> Webrev: http://cr.openjdk.java.net/~kshefov/8072369/webrev.00 <http://cr.openjdk.java.net/~kshefov/8072369/webrev.00> 
>> 
>> Thanks 
>> -Konstantin 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20151006/82171f23/attachment.html>


More information about the hotspot-compiler-dev mailing list