harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2625) [classlib][swing] JTable.addNotify() throws NPE
Date Tue, 12 Dec 2006 10:52:21 GMT
[classlib][swing] JTable.addNotify() throws NPE
-----------------------------------------------

                 Key: HARMONY-2625
                 URL: http://issues.apache.org/jira/browse/HARMONY-2625
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko


Invocation of javax.swing.JTable.addNotify()  lead to  NPE on win32

Code for reproducing:

import javax.swing.*;

public class Test extends junit.framework.TestCase {

    public void testTest() {
        JTable  table = new JTable();
        table.addNotify();
    }
}       


Steps to Reproduce:
compile and run this test

Output:

On RI

.
Time: 1.047

OK (1 test)

On Harmony

.E
Time: 1.704
There was 1 error:
1) testTest(Test)java.lang.NullPointerException
        at java.awt.LWBehavior.getNativeWindow(LWBehavior.java:144)
        at java.awt.Component.getNativeWindow(Component.java:3349)
        at
java.awt.Toolkit$ComponentInternalsImpl.getNativeWindow(Toolkit.java:165)
        at
org.apache.harmony.awt.datatransfer.windows.WinDropTarget.<init>(WinDropTarget.java:77)
        at
org.apache.harmony.awt.datatransfer.windows.WinDTK.createDropTargetContextPeer(WinDTK.java:81)
        at java.awt.dnd.DropTarget.addNotify(DropTarget.java:120)
        at java.awt.Component.addNotify(Component.java:1384)
        at java.awt.Container.addNotify(Container.java:430)
        at javax.swing.JComponent.addNotify(JComponent.java:811)
        at javax.swing.JTable.addNotify(JTable.java:730)
        at Test.testTest(Test.java:22)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

FAILURES!!!


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

        

Mime
View raw message