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

Rename UnixPrintServiceLookup and Win32PrintServiceLookup as a platform neutral class name

XMLWordPrintable

    • b38

        java.desktop provides a service implementation of javax.print.PrintServiceLookup. Windows version has a different class name as the unix version that requires to generate a platform-dependent META-INF service configuration file.

        $ cat java.desktop/unix/classes/META-INF/services/javax.print.PrintServiceLookup
        # Provider for Java Print Service
        sun.print.UnixPrintServiceLookup

        $ cat java.desktop/windows/classes/META-INF/services/javax.print.PrintServiceLookup
        # Provider for Java Print Service
        sun.print.Win32PrintServiceLookup

        The service provider implementation class will be part of the module definition. Renaming the implementation classname to the same for all platforms will allow the module definition for java.desktop module to be platform-independent

              prr Philip Race
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: