author | dtitov |
Thu, 12 Jul 2018 22:53:35 -0700 | |
changeset 51053 | 02a46b740866 |
parent 50220 | 31361382634b |
permissions | -rw-r--r-- |
50220 | 1 |
/* |
2 |
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
*/ |
|
23 |
||
24 |
package nsk.jdb.eval.eval001; |
|
25 |
||
26 |
import nsk.share.*; |
|
27 |
import nsk.share.jpda.*; |
|
28 |
import nsk.share.jdb.*; |
|
29 |
||
30 |
import java.io.*; |
|
31 |
||
32 |
/* This is debuggee aplication */ |
|
33 |
public class eval001a { |
|
34 |
||
35 |
static eval001a _eval001a = new eval001a(); |
|
36 |
||
37 |
public static void main(String args[]) { |
|
38 |
System.exit(eval001.JCK_STATUS_BASE + _eval001a.runIt(args, System.out)); |
|
39 |
} |
|
40 |
||
41 |
static void lastBreak () {} |
|
42 |
||
43 |
public int runIt(String args[], PrintStream out) { |
|
44 |
JdbArgumentHandler argumentHandler = new JdbArgumentHandler(args); |
|
45 |
Log log = new Log(out, argumentHandler); |
|
46 |
||
47 |
MyClass myClass = new MyClass("abcde"); |
|
48 |
int i = 111; |
|
49 |
int j = 222; |
|
50 |
int k = 444; |
|
51053
02a46b740866
8191948: db error: InvalidTypeException: Can't assign double[][][] to double[][][]
dtitov
parents:
50220
diff
changeset
|
51 |
double[][][] test = new double[2][2][2]; |
50220 | 52 |
|
53 |
synchronized (this) { |
|
54 |
lastBreak(); |
|
55 |
} |
|
56 |
||
57 |
log.display("Debuggee PASSED"); |
|
58 |
return eval001.PASSED; |
|
59 |
} |
|
60 |
||
61 |
static private int myStaticField = Integer.MIN_VALUE; |
|
62 |
protected long myInstanceField; |
|
63 |
public MyClass[][] myArrayField; |
|
64 |
||
65 |
private eval001a () { |
|
66 |
myArrayField = new MyClass[][] {new MyClass[] {new MyClass("ABCDE")}}; |
|
67 |
myInstanceField = Long.MAX_VALUE; |
|
68 |
} |
|
69 |
||
70 |
synchronized private int myMethod() { |
|
71 |
return Integer.MAX_VALUE; |
|
72 |
} |
|
73 |
||
74 |
static class MyClass { |
|
75 |
String line; |
|
76 |
||
77 |
public MyClass (String s) { |
|
78 |
line = s; |
|
79 |
} |
|
80 |
||
81 |
public String toString() { |
|
82 |
return line; |
|
83 |
} |
|
84 |
} |
|
51053
02a46b740866
8191948: db error: InvalidTypeException: Can't assign double[][][] to double[][][]
dtitov
parents:
50220
diff
changeset
|
85 |
|
02a46b740866
8191948: db error: InvalidTypeException: Can't assign double[][][] to double[][][]
dtitov
parents:
50220
diff
changeset
|
86 |
public double testPrimitiveArray(double[][][] d){ |
02a46b740866
8191948: db error: InvalidTypeException: Can't assign double[][][] to double[][][]
dtitov
parents:
50220
diff
changeset
|
87 |
return 1.0; |
02a46b740866
8191948: db error: InvalidTypeException: Can't assign double[][][] to double[][][]
dtitov
parents:
50220
diff
changeset
|
88 |
} |
50220 | 89 |
} |