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-2019) [classlib][awt] Container.remove(null) expected NPE
Date Tue, 31 Oct 2006 14:40:16 GMT
[classlib][awt] Container.remove(null) expected NPE

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

Harmony implementation of Container.remove(Component ) doesn't throw NPE while RI does. Spec
silent about any exceptions.

========== Test ============
import java.awt.*;

public class Test {	
    static public void main(String[] args) {
    	Container cmp = new Container();
    	cmp.remove((Button )null);

======== RI ===========
	at java.awt.Container.remove(Container.java:1165)
	at Test.main(Test.java:9)

===== Harmony ========

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


View raw message