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

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

XMLWordPrintable

    • b23

        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

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

                Created:
                Updated:
                Resolved: