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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      10
    • Resolved In Build:
      b23
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: