harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5138) [classlib][print] HashAttributeTest fails if no default printer defined
Date Fri, 16 Nov 2007 18:09:43 GMT
[classlib][print] HashAttributeTest fails if no default printer defined

                 Key: HARMONY-5138
                 URL: https://issues.apache.org/jira/browse/HARMONY-5138
             Project: Harmony
          Issue Type: Bug
         Environment: Wind32
            Reporter: Alexei Zakharov
            Priority: Critical

The following two tests from javax.print.attribute.HashAttributeTest class fail if no default
printer was defined in Windows system:


java.lang.NullPointerException: Text is null at javax.print.attribute.TextSyntax.<init>(TextSyntax.java:32)
at javax.print.attribute.standard.PrinterName.<init>(PrinterName.java:29) at org.apache.harmony.x.print.WinPrintService.getAttributes(WinPrintService.java:143)
at javax.print.attribute.HashAttributeTest.testAdd2(HashAttributeTest.java:126) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

This issue was caused by this two commits: 
593524 (Print service implementation (HARMONY-5083)) <- VM crash after this commit
594925 (Reimplemented getDefaultPrinterName() because the current implementation uses GetDefaultPrinterW
which causes an error on some systems) <- Vm crash disappeared. However, now we have some
issues with initialization of PrintService's since it calls PrinterName with null name.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message