-
Bug
-
Resolution: Fixed
-
P4
-
8, 9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8326645 | openjdk8u422 | Sergey Bylokhov | P4 | Resolved | Fixed | b01 |
JDK-8295611 | 8u361 | Anto J | P4 | Resolved | Fixed | b04 |
regression test javax/print/PrintServiceLookup/GetPrintServices.java failed against jdk8 b102-b104 with NPE for any printer and it failed since jdk8b105 with NPE if there is a printer with a space in the name; test works fine on windows with jdk8b108 and on macos with jdk7u40b43
according mentioned builds it may be caused by fixes forJDK-8016343 (fixed in b102) and JDK-8022241 (fixed in b105)
some debug info about returned printer name:
b105 (test failed, first printer is ok, second printer with a space in the name is not found)
DEBUG service.getName() is spb04p07
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is IPP Printer : spb04p07
DEBUG service.getName() is XEROX WorkCentre 4250 (Spb04p12)
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is null
b102 (failed on any printer name):
DEBUG service.getName() is spb04p07
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is null
b101 (last passed):
DEBUG service.getName() is spb04p07__8c_c9_db_
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is IPP Printer : spb04p07__8c_c9_db_
DEBUG service.getName() is XEROX_WorkCentre_4250__Spb04p12_
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is IPP Printer : XEROX_WorkCentre_4250__Spb04p12_
according mentioned builds it may be caused by fixes for
some debug info about returned printer name:
b105 (test failed, first printer is ok, second printer with a space in the name is not found)
DEBUG service.getName() is spb04p07
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is IPP Printer : spb04p07
DEBUG service.getName() is XEROX WorkCentre 4250 (Spb04p12)
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is null
b102 (failed on any printer name):
DEBUG service.getName() is spb04p07
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is null
b101 (last passed):
DEBUG service.getName() is spb04p07__8c_c9_db_
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is IPP Printer : spb04p07__8c_c9_db_
DEBUG service.getName() is XEROX_WorkCentre_4250__Spb04p12_
DEBUG serviceByName (PrintServiceLookup.lookupPrintServices) is IPP Printer : XEROX_WorkCentre_4250__Spb04p12_
- backported by
-
JDK-8295611 [TEST BUG] [macosx] PrintServiceLookup.lookupPrintServices doesn't work properly since jdk8b105
- Resolved
-
JDK-8326645 [TEST BUG] [macosx] PrintServiceLookup.lookupPrintServices doesn't work properly since jdk8b105
- Resolved
- relates to
-
JDK-8016343 [macosx] Print job goes to default printer regardless of chosen printer
- Resolved
-
JDK-8022241 [macosx] [PIT] lookupPrintServices() returns one too long array
- Closed
(1 links to)