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

[TEST_BUG] javax/management/mxbean/LeakTest.java misses MerlinMXBean & TigerMXBean in @run build tag

XMLWordPrintable

        This is an intermittent failure that occurred on my machine while running 'make jdk_jmx':

        ----------System.err:(30/1614)----------
        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:484)
        at LeakTest.testShadow(LeakTest.java:111)
        at LeakTest.test(LeakTest.java:84)
        at LeakTest.main(LeakTest.java:71)
        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:484)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)
        Caused by: java.lang.NoClassDefFoundError: MerlinMXBean
        at RandomMXBeanTest.main(RandomMXBeanTest.java:136)
        ... 13 more
        Caused by: java.lang.ClassNotFoundException: MerlinMXBean
        at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:426)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:359)
        ... 14 more

        It appears that javax/management/mxbean/LeakTest.java has an @build tag that says:

         * @run build LeakTest RandomMXBeanTest

        However RandomMXBeanTest depends on two other classes: MerlinMXBean and TigerMXBean.
        These two classes should probably be added to the @run build line:

         * @run build LeakTest RandomMXBeanTest MerlinMXBean TigerMXBean


              ykantser Yekaterina Kantserova (Inactive)
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: