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

JDWP: Evaluating method call with primitive array parameter gives Unexpected Sig

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0, 1.4.0
    • core-svc
    • beta3
    • generic, x86
    • generic, windows_nt
    • Verified



      Name: tb29552 Date: 04/27/2001


      /*

      sample program:

      */
      public class Untitled20 {

          public String xyz(char[] param) {
              return "abc";
          }

          public static void main(String[] args) {
              char[] x = new char[20];

              Untitled20 xx = new Untitled20 ();
              String bb = xx.xyz(x);
              // add a line breakpoint on the next line:
              System.out.println(bb); /* stop at Untitled20:18
                                       * run
                                       * print xx.xyz(x)
                                       */
          }
      }

      ======================================================================
      tim.bell@Eng 2001-04-30

      This seems to affect only arrays of primitive type.
      I modified Untitled20.java as follows:


      /*

      sample program:

      */
      public class Untitled20 {

          public String xyz(char[] param) {
              return "abc";
          }

          public String xyz2(Object[] param) {
              return "def";
          }

          public static void main(String[] args) {
              char[] x = new char[20];
              Object[] y = new Object[20];
              Untitled20 xx = new Untitled20 ();

              String bb = xx.xyz(x);
              String cc = xx.xyz2(y);
              // add a line breakpoint on the next line:
              System.out.println(bb); /* stop at Untitled20:24
                                       * run
                                       * print xx.xyz2(y)
                                       * print xx.xyz(x)
                                       */
              System.out.println(cc);
          }
      }


      Once inside jdb and at a breakpoint on line 24, I evaluated
      "print xx.xyz2(y)" 20 times with no error. Next I did a
      "print xx.xyz(x)" and got the Signal 11 first time.

            rfield Robert Field (Inactive)
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: