Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8326525

com/sun/tools/attach/BasicTests.java does not verify AgentLoadException case

XMLWordPrintable

    • svc
    • b13

        from BasicTests.java:
                    // Test 2 - attempt to load an agent that does not exist
                    System.out.println(" - Test: Load an agent that does not exist");
                    try {
                        vm.loadAgent("SilverBullet.jar");
                    } catch (AgentLoadException x) {
                        System.out.println(" - AgentLoadException thrown as expected!");
                    }
        The test does not verify that AgentLoadException is thrown

              amenkov Alex Menkov
              amenkov Alex Menkov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: