6961502: TEST_BUG: test/java/lang/ClassLoader/defineClass/DefineClassByteBuffer.java fails

Webrev at:
  http://cr.openjdk.java.net/~mchung/6961502/webrev.00/

This test intends to test various cases of passing java.nio.ByteBuffers to defineClass(). However, it never tests what it is intended for. In othervm mode, the system class loader, the parent of DummyClassLoader, successfully finds TestClass and defines it before it gets to the DummyClassLoader to do the job.

This test fails in samevm mode since jtreg URLClassLoader to load classes for the test.classes directory is not in the DummyClassLoader's delegation hierarchy.

Thanks
Mandy

Reply via email to