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

TTY: .length field for arrays in print statements in jdb not recognized

XMLWordPrintable

    • mantis
    • generic
    • generic



      Name: tb29552 Date: 03/06/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)

      for the code like:

      public class Hello{
          public static void main(String[] args){
              int[] x=new int[3];
               x[2]=4;
          }
      } // Hello

      attempt to do
      print x.length
      in debugger produces

      No instance field or method with the name length in int[]
      (Review ID: 118076)
      ======================================================================

            tbell Tim Bell
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: