Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 33723 invoked from network); 20 Sep 2006 11:57:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 11:57:00 -0000 Received: (qmail 72533 invoked by uid 500); 20 Sep 2006 11:57:00 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 72438 invoked by uid 500); 20 Sep 2006 11:57:00 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 72427 invoked by uid 99); 20 Sep 2006 11:57:00 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 04:56:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:46651] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 75/26-00532-B8C21154 for ; Wed, 20 Sep 2006 04:56:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 817DA4190C8 for ; Wed, 20 Sep 2006 11:53:22 +0000 (GMT) Message-ID: <12041632.1158753202527.JavaMail.jira@brutus> Date: Wed, 20 Sep 2006 04:53:22 -0700 (PDT) From: "Vladimir Ivanov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Created: (HARMONY-1504) [classlib][beans] RI throws NPE for public EventSetDescriptor(...) while Harmony does not MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [classlib][beans] RI throws NPE for public EventSetDescriptor(...) while Harmony does not ----------------------------------------------------------------------------------------- Key: HARMONY-1504 URL: http://issues.apache.org/jira/browse/HARMONY-1504 Project: Harmony Issue Type: Bug Components: Classlib Reporter: Vladimir Ivanov The constructorsc EventSetDescriptor(Class sourceClass, String eventSetName, Class listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName)EventSetDescriptor(Class sourceClass, String eventSetName, Class listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName) throws NPE on RI for 'null' listenerMethodNames and works silently on Harmony. ==================== test.java ======================== import java.beans.*; public class test { public static void main (String[] args) { try { new EventSetDescriptor(Class.class, "get", Class.class, null, "get", "get", "get"); System.out.println("no exceptions!"); } catch (Exception e) { System.out.println("exception: " + e); } try { new EventSetDescriptor(Class.class, "get", Class.class, null, "get", "get"); System.out.println("no exceptions!"); } catch (Exception e) { System.out.println("exception: " + e); } } } =================================================== Output: C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar)) exception: java.lang.NullPointerException exception: java.lang.NullPointerException C:\tmp\tmp17>C:\harmony\classlib1.5\deploy\jdk\jre\bin\java.exe -cp . test exception: java.beans.IntrospectionException: No method "get" for java.lang.Class found. exception: java.beans.IntrospectionException: No method "get" for java.lang.Class found. -- 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