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

Missing class file sun/management/ExtendedPlatformComponent from rt.jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 8u40
    • core-svc

      FULL PRODUCT VERSION :
      java version "1.8.0_40-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b20, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      Referencing java.lang.management.ManagementFactory causes a ClassDefNotFoundError since build 15 of 1.8.0_40

      REGRESSION. Last worked in version 8u25

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_40-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b20, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the attached code

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The program should execute without error
      ACTUAL -
      The program crashes

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Exception in thread "main" java.lang.NoClassDefFoundError: sun/management/ExtendedPlatformComponent
              at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:494)
              at NCDFE.main(NCDFE.java:5)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.lang.management.ManagementFactory;

      public class NCDFE {
        public static void main(String... argv) throws Exception {
          ManagementFactory.getPlatformMBeanServer();
        }
      }

      ---------- END SOURCE ----------

      SUPPORT :
      YES

            aroy Abhijit Roy (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: