You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/12/12 11:52:21 UTC

[jira] Created: (HARMONY-2625) [classlib][swing] JTable.addNotify() throws NPE

[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