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

thread death and core dump when calling Class.getMethod(null, Class[])

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • hotspot
    • sparc
    • solaris_7



      Name: yyT116575 Date: 01/23/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


      Calling Class.getMethod() with a null as first argument (name of the method)
      causes thread death.

      eg code:

      import java.lang.reflect.Method;

      public class tdt {
          public static void main (String[] argv) {
              Class c = "".getClass();
              Method m;
              try {
                  m = c.getMethod(null, new Class[] { new Object().getClass() });
              } catch (NoSuchMethodException nsme) {
                  System.out.println("never gets here");
              }
          }
      }

      error report:

      #
      # HotSpot Virtual Machine Error, Unexpected Signal 11
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4F533F534F4C415249530E435050079A 01
      #
      # Problematic Thread: prio=5 tid=0x28378 nid=0x1 runnable
      #
      Abort (core dumped)
      (Review ID: 115655)
      ======================================================================

            Unassigned Unassigned
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: