<AWT Dev> question regarding test java/awt/PrinterJob/SameService.java (tests that print services are not re-created)
Baesken, Matthias
matthias.baesken at sap.com
Fri Jul 26 09:02:51 UTC 2019
Hello, I have a question regarding the test java/awt/PrinterJob/SameService.java ; the test deals with @bug 6446094 .
It checks that print services are not re-created , which was addressed (or at least discussed ) in 6446094 ,
See
https://bugs.openjdk.java.net/browse/JDK-6446094
Win32PrintServiceLookup.getPrintServiceByName() should not recreate duplicate instances.
However 6446094 just talks about Windows , and I see sporadic failures on some Linux test machine in java/awt/PrinterJob/SameService.java
because the print service is (seldom) 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 ) .
Can we make the test Windows-only ( I think the API does not guarantee that print services are not re-created , although it is desired ) ?
Best regards, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/awt-dev/attachments/20190726/a6b8d4e4/attachment.html>
More information about the awt-dev
mailing list