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] Assigned: (HARMONY-5138) [classlib][print] HashAttributeTest fails if no default printer defined
Date Fri, 16 Nov 2007 18:11:43 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov reassigned HARMONY-5138:
----------------------------------------

    Assignee: Andrey Pavlenko

> [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
>            Assignee: Andrey Pavlenko
>            Priority: Critical
>
> The following two tests from javax.print.attribute.HashAttributeTest class fail if no
default printer was defined in Windows system:
> testAdd2
> testEquals 
> Stacktrace:
> 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.


Mime
View raw message