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

jdb error: InvalidTypeException: Can't assign double[][][] to double[][][]

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b23

      Backports

        Description

        Watch can't assign multi-dimensional array. Watch fails when trying to
        evaluate a method taking a multi-dimensional array (more than 2 dimensions)
        as parameter.

        Code
        public class Test {
            private static double foo(double[][][] d) {
                return 0.0;
            }

            public static void main(String[] args) {
                double[][][] test = new double[2][2][2];
                double x = foo(test);
                System.out.println(x);
            }
        }
        Place a breakpoint at line 8 (double x = foo(test);) and Debug. Add a Watch
        for foo(test). Expression fails to evaluate with message "Type mismatch Can't assign

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dtitov Daniil Titov (Inactive)
                Reporter:
                shadowbug Shadow Bug
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: