Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4915038

REGRESSION:NullPointerException occurs during Introspection

XMLWordPrintable

    • x86
    • windows_xp


      ###@###.### 2003-08-29



      J2SE Version (please include all output from java -version flag):
          java version "1.5.0-beta"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b16)
          Java HotSpot(TM) Client VM (build 1.5.0-beta-b16, mixed mode)

      Does this problem occur on J2SE 1.3 or 1.4.x? Yes / No (pick one)
          No, works fine up to 1.5.0 build 14.

      Operating System Configuration Information (be specific):
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

      Hardware Configuration Information (be specific):

          Platform configuration:

          CPU: Intel 32bit Single Processor
          Processor Speed: 1893 MHz

          Operating System:
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

          DirectX version: DirectX 8.1 or greater

          DirectX display devices:
          Device 0:
            Resolution (width x height x depth): 1024 x 768 x 32
            Device driver nv4_disp.dll version 6.13.10.3638

          GDI display devices:
          Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 460 Go (Toshiba)

      Bug Description:
          NullPointerException occurs during Introspection

      Steps to Reproduce (be specific):
          - Execute C:\j2sdk1.5.0\bin\javac -classpath ./;./test.jar Introspection150.java
          - Execute C:\j2sdk1.5.0\bin\java -cp ./;./test.jar Introspection150
          
           Attached test.jar
           'test.jar' and 'sunw.demo.test.BridgeTester' source code from Sun may be obtained at :
           http://java.sun.com/products/javabeans/software/examples.html

      Best regards,
      Jean-Bernard Clerin

      ==========================================================

      import java.beans.*;

      public class Introspection150
         {
          static public void main(java.lang.String[] args)
             {
              try
                 {
                  Class beanClass = sunw.demo.test.BridgeTester.class;
                  BeanInfo beanInfo = Introspector.getBeanInfo(beanClass);
                  EventSetDescriptor[] evtDescs = beanInfo.getEventSetDescriptors();
                  for (int i = 0; i < evtDescs.length; i++)
                     {
                      System.out.println(evtDescs[i].getAddListenerMethod().getName());
                      System.out.println(evtDescs[i].getRemoveListenerMethod().getName());
                     }
                 }
              catch (java.lang.Throwable exc)
                 {
                  exc.printStackTrace();
                 }
             }
         }

            mdavidsosunw Mark Davidson (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: