harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2810) [classlib][awt] JUnit AWT-based TestRunner can't be started
Date Mon, 15 Jan 2007 11:41:27 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464751
] 

Alexey Varlamov commented on HARMONY-2810:
------------------------------------------

Indeed the patch enables JUnit awtui, but one more NPE is thrown:
java.lang.NullPointerException
        at org.apache.harmony.awt.gl.font.FontMetricsImpl.getFontPeer(FontMetricsImpl.java:241)
        at org.apache.harmony.awt.gl.font.FontMetricsImpl.<init>(FontMetricsImpl.java:72)
        at org.apache.harmony.awt.gl.CommonGraphics2DFactory.getFontMetrics(CommonGraphics2DFactory.java:57)
        at java.awt.ToolkitImpl.getFontMetrics(ToolkitImpl.java:136)
        at java.awt.Component$ComponentState.getFontMetrics(Component.java:773)
        at org.apache.harmony.awt.theme.DefaultStyle.getTextSize(DefaultStyle.java:89)
        at org.apache.harmony.awt.theme.DefaultCheckbox.getTextRect(DefaultCheckbox.java:73)
        at org.apache.harmony.awt.Theme.drawCheckbox(Theme.java:76)
        at java.awt.Checkbox.prepaint(Checkbox.java:435)
        at java.awt.Component.initGraphics(Component.java:3714)
        at java.awt.Component.processPaintEvent(Component.java:3695)
        at java.awt.Component.dispatchEvent(Component.java:3525)
        at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:149)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
        at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)


> [classlib][awt] JUnit AWT-based TestRunner can't be started
> -----------------------------------------------------------
>
>                 Key: HARMONY-2810
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2810
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Alexey A. Ivanov
>         Assigned To: Alexey Varlamov
>         Attachments: List.patch
>
>
> Trying to launch AWT-based TestRunner of JUnit throws NPE:
> java.exe -cp junit.jar junit.awtui.TestRunner
> Exception in thread "main" java.lang.NullPointerException
>         at java.awt.List.getMaxCharSize(List.java:1413)
>         at java.awt.List.getMinimumSize(List.java:875)
>         at java.awt.List.getPreferredSize(List.java:890)
>         at java.awt.List.updatePrefWidth(List.java:1486)
>         at java.awt.List.addNotify(List.java:842)
>         at java.awt.Container.addNotify(Container.java:443)
>         at java.awt.Panel.addNotify(Panel.java:69)
>         at java.awt.Container.addNotify(Container.java:443)
>         at java.awt.Window.addNotify(Window.java:29)
>         at java.awt.Frame.addNotify(Frame.java:187)
>         at java.awt.Component.mapToDisplay(Component.java:1413)
>         at java.awt.Container.mapToDisplay(Container.java:1189)
>         at java.awt.Window.pack(Window.java:693)
>         at junit.awtui.TestRunner.createUI(TestRunner.java:287)
>         at junit.awtui.TestRunner.start(TestRunner.java:530)
>         at junit.awtui.TestRunner.main(TestRunner.java:382)
> Swing-based TestRunner works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message