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

compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java fails in -agentvm mode of jtreg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • None
    • None
    • hotspot
    • generic
    • generic

    Description

      compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java fails in -agentvm mode of jtreg
      ==
      STDERR:
      java.lang.NoClassDefFoundError: RedefineMethodUsedByMultipleMethodHandles
              at RedefineMethodUsedByMultipleMethodHandles$FooAgent.<clinit>(RedefineMethodUsedByMultipleMethodHandles.java:126)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
              at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:411)
      Caused by: java.lang.ClassNotFoundException: RedefineMethodUsedByMultipleMethodHandles
              at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 7 more
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at RedefineMethodUsedByMultipleMethodHandles.runAgent(RedefineMethodUsedByMultipleMethodHandles.java:122)
              at RedefineMethodUsedByMultipleMethodHandles.redefineFoo(RedefineMethodUsedByMultipleMethodHandles.java:105)
              at RedefineMethodUsedByMultipleMethodHandles.main(RedefineMethodUsedByMultipleMethodHandles.java:68)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
              at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:121)
              at com.sun.tools.attach.VirtualMachine.loadAgent(VirtualMachine.java:540)
              ... 13 more

      JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException

      Attachments

        Activity

          People

            Unassigned Unassigned
            fmatte Fairoz Matte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: