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

make java/awt/print/PrinterJob/SameService.java Windows-only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      linux

      Description

      The test java/awt/PrinterJob/SameService.java deals with bug 6446094 .

      It checks that print services are not re-created, that was addressed (or at least discussed) some time ago in 6446094 ,
      See
      https://bugs.openjdk.java.net/browse/JDK-6446094

      Win32PrintServiceLookup.getPrintServiceByName() should not recreate duplicate instances.


      However 6446094 just talks about Windows.
      I see sporadic failures on some Linux test machine in the test java/awt/PrinterJob/SameService.java
      because the print service is (sometimes) recreated on Linux (it is even non-deterministic, on the same machine the test fails
      in ~ 30 % of runs and succeeds in the other cases ) .

      I suggest to make the test Windows-only at least for now (I think the API does not guarantee that
      print services are not re-created on all platforms, although it is desired) .

        Attachments

          Activity

            People

            Assignee:
            mbaesken Matthias Baesken
            Reporter:
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: