RFR (XS): 8066497: Update c.o.j.t.ByteCodeLoader to be able really reload given class
Pavel Chistyakov
pavel.chistyakov at oracle.com
Tue Dec 9 16:50:28 UTC 2014
Hi all,
please review changes for: https://bugs.openjdk.java.net/browse/JDK-8066497
webrev:
http://cr.openjdk.java.net/~iignatyev/pchistyakov/8066497/webrev.00/
<http://cr.openjdk.java.net/%7Eiignatyev/pchistyakov/8066497/webrev.00/>
Problem:
ByteCodeLoader allows one to load class with given name from existing
bytecode. But if this class is already loaded by e.g. system classloader
it cannot be redefined using another bytecode array because of
delegation of loadClass call to parent classloader.
Solution:
override loadClass to break delegation for given className.
Testing: manual
-------------------
Thanks,
Pavel
More information about the hotspot-compiler-dev
mailing list