test/java/lang/instrument/PremainClass/NoPremainAgentTest.java
Print this page
rev 9907 : 8034960: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
Reviewed-by: sla, alanb
*** 28,38 ****
/*
* @test
* @bug 6289149
* @summary test when the agent's class is missing the premain() function.
* @library /lib/testlibrary
! * @run build DummyMain
* @run shell ../MakeJAR3.sh NoPremainAgent
* @run main NoPremainAgentTest
*/
public class NoPremainAgentTest {
// Use a javaagent without the premain() function.
--- 28,38 ----
/*
* @test
* @bug 6289149
* @summary test when the agent's class is missing the premain() function.
* @library /lib/testlibrary
! * @run build jdk.testlibrary.* DummyMain
* @run shell ../MakeJAR3.sh NoPremainAgent
* @run main NoPremainAgentTest
*/
public class NoPremainAgentTest {
// Use a javaagent without the premain() function.