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

Class javax/swing/plaf/metal/MetalFontDesktopProperty is broken in JDK10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 10
    • 10
    • client-libs
    • 10
    • b23
    • generic

      The change for https://bugs.openjdk.java.net/browse/JDK-6461834
      eliminated copying classes in the hierarchy under
      com/sun/java/swing/plaf/windows except for on Windows.
      However this approach is dangerous since it is does not account for
      the fact the classes may have been compiled as a dependent class.
      Sure enough for better or for worse the SHARED class
      javax/swing/plaf/metal/MetalFontDesktopProperty extends
      com/sun/java/swing/plaf/windows/DesktopProperty

      Either back out the fix or find and fix all such dependencies.
      I have not looked into what other classes have this issue.
      That is up to the fixer to find them all.

      This is causing two regression tests to fail :
      java/beans/Performance/Test4058433.java Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/DesktopProperty
      java/beans/XMLDecoder/8028054/TestConstructorFinder.java

      These are beans tests, but the issue is nothing to do with beans.
      There may actually be more failing tests. These are just the two I found
      in running just the beans tests.
      So any updated fix needs to run all regression tests .. on all non-windows
      platforms to be as sure as we can be that all dependencies have been found.
      I also suggest a good "grep" around for uses via core reflection.

      We will need this fixed ASAP before we can do a JDK 10 integration.

            psadhukhan Prasanta Sadhukhan
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: