1 /*******************************************************************************
2  * Copyright (c) 2002, 2005 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.jdt.debug.tests.eval;
15 
16 import org.eclipse.debug.core.model.IValue;
17 import org.eclipse.jdt.debug.core.IJavaPrimitiveValue;
18 import org.eclipse.jdt.internal.debug.core.model.JDIObjectValue;
19 
20 public class NestedTypeFieldValue_120 extends Tests {
21 	/**
22 	 * Constructor for NestedTypeFieldValue.
23 	 * @param name
24 	 */
NestedTypeFieldValue_120(String name)25 	public NestedTypeFieldValue_120(String name) {
26 		super(name);
27 	}
28 
init()29 	public void init() throws Exception {
30 		initializeFrame("EvalNestedTypeTests", 123, 4);
31 	}
32 
end()33 	protected void end() throws Exception {
34 		destroyFrame();
35 	}
36 
testEvalNestedTypeTest_b()37 	public void testEvalNestedTypeTest_b() throws Throwable {
38 		try {
39 		init();
40 		IValue value = eval(bInt);
41 		String typeName = value.getReferenceTypeName();
42 		assertEquals("b : wrong type : ", "int", typeName);
43 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
44 		assertEquals("b : wrong result : ", bIntValue_2, intValue);
45 
46 		value = eval(bString);
47 		typeName = value.getReferenceTypeName();
48 		assertEquals("b : wrong type : ", "java.lang.String", typeName);
49 		String stringValue = ((JDIObjectValue)value).getValueString();
50 		assertEquals("b : wrong result : ", bStringValue_2, stringValue);
51 		} finally {
52 		end();
53 		}
54 	}
55 
testEvalNestedTypeTest_g()56 	public void testEvalNestedTypeTest_g() throws Throwable {
57 		try {
58 		init();
59 		IValue value = eval(gInt);
60 		String typeName = value.getReferenceTypeName();
61 		assertEquals("g : wrong type : ", "int", typeName);
62 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
63 		assertEquals("g : wrong result : ", gIntValue_2, intValue);
64 
65 		value = eval(gString);
66 		typeName = value.getReferenceTypeName();
67 		assertEquals("g : wrong type : ", "java.lang.String", typeName);
68 		String stringValue = ((JDIObjectValue)value).getValueString();
69 		assertEquals("g : wrong result : ", gStringValue_2, stringValue);
70 		} finally {
71 		end();
72 		}
73 	}
74 
testEvalNestedTypeTest_h()75 	public void testEvalNestedTypeTest_h() throws Throwable {
76 		try {
77 		init();
78 		IValue value = eval(hInt);
79 		String typeName = value.getReferenceTypeName();
80 		assertEquals("h : wrong type : ", "int", typeName);
81 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
82 		assertEquals("h : wrong result : ", hIntValue_2, intValue);
83 
84 		value = eval(hString);
85 		typeName = value.getReferenceTypeName();
86 		assertEquals("h : wrong type : ", "java.lang.String", typeName);
87 		String stringValue = ((JDIObjectValue)value).getValueString();
88 		assertEquals("h : wrong result : ", hStringValue_2, stringValue);
89 		} finally {
90 		end();
91 		}
92 	}
93 
testEvalNestedTypeTest_T_T_b()94 	public void testEvalNestedTypeTest_T_T_b() throws Throwable {
95 		try {
96 		init();
97 		IValue value = eval(T_T + bInt);
98 		String typeName = value.getReferenceTypeName();
99 		assertEquals("T_T_b : wrong type : ", "int", typeName);
100 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
101 		assertEquals("T_T_b : wrong result : ", bIntValue_0, intValue);
102 
103 		value = eval(T_T + bString);
104 		typeName = value.getReferenceTypeName();
105 		assertEquals("T_T_b : wrong type : ", "java.lang.String", typeName);
106 		String stringValue = ((JDIObjectValue)value).getValueString();
107 		assertEquals("T_T_b : wrong result : ", bStringValue_0, stringValue);
108 		} finally {
109 		end();
110 		}
111 	}
112 
testEvalNestedTypeTest_T_T_d()113 	public void testEvalNestedTypeTest_T_T_d() throws Throwable {
114 		try {
115 		init();
116 		IValue value = eval(T_T + dInt);
117 		String typeName = value.getReferenceTypeName();
118 		assertEquals("T_T_d : wrong type : ", "int", typeName);
119 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
120 		assertEquals("T_T_d : wrong result : ", dIntValue_0, intValue);
121 
122 		value = eval(T_T + dString);
123 		typeName = value.getReferenceTypeName();
124 		assertEquals("T_T_d : wrong type : ", "java.lang.String", typeName);
125 		String stringValue = ((JDIObjectValue)value).getValueString();
126 		assertEquals("T_T_d : wrong result : ", dStringValue_0, stringValue);
127 		} finally {
128 		end();
129 		}
130 	}
131 
testEvalNestedTypeTest_T_T_f()132 	public void testEvalNestedTypeTest_T_T_f() throws Throwable {
133 		try {
134 		init();
135 		IValue value = eval(T_T + fInt);
136 		String typeName = value.getReferenceTypeName();
137 		assertEquals("T_T_f : wrong type : ", "int", typeName);
138 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
139 		assertEquals("T_T_f : wrong result : ", fIntValue_0, intValue);
140 
141 		value = eval(T_T + fString);
142 		typeName = value.getReferenceTypeName();
143 		assertEquals("T_T_f : wrong type : ", "java.lang.String", typeName);
144 		String stringValue = ((JDIObjectValue)value).getValueString();
145 		assertEquals("T_T_f : wrong result : ", fStringValue_0, stringValue);
146 		} finally {
147 		end();
148 		}
149 	}
150 
testEvalNestedTypeTest_T_T_A_d()151 	public void testEvalNestedTypeTest_T_T_A_d() throws Throwable {
152 		try {
153 		init();
154 		IValue value = eval(T_T_A + dInt);
155 		String typeName = value.getReferenceTypeName();
156 		assertEquals("T_T_A_d : wrong type : ", "int", typeName);
157 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
158 		assertEquals("T_T_A_d : wrong result : ", dIntValue_1, intValue);
159 
160 		value = eval(T_T_A + dString);
161 		typeName = value.getReferenceTypeName();
162 		assertEquals("T_T_A_d : wrong type : ", "java.lang.String", typeName);
163 		String stringValue = ((JDIObjectValue)value).getValueString();
164 		assertEquals("T_T_A_d : wrong result : ", dStringValue_1, stringValue);
165 		} finally {
166 		end();
167 		}
168 	}
169 
testEvalNestedTypeTest_T_T_A_h()170 	public void testEvalNestedTypeTest_T_T_A_h() throws Throwable {
171 		try {
172 		init();
173 		IValue value = eval(T_T_A + hInt);
174 		String typeName = value.getReferenceTypeName();
175 		assertEquals("T_T_A_h : wrong type : ", "int", typeName);
176 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
177 		assertEquals("T_T_A_h : wrong result : ", hIntValue_1, intValue);
178 
179 		value = eval(T_T_A + hString);
180 		typeName = value.getReferenceTypeName();
181 		assertEquals("T_T_A_h : wrong type : ", "java.lang.String", typeName);
182 		String stringValue = ((JDIObjectValue)value).getValueString();
183 		assertEquals("T_T_A_h : wrong result : ", hStringValue_1, stringValue);
184 		} finally {
185 		end();
186 		}
187 	}
188 
testEvalNestedTypeTest_T_A_d()189 	public void testEvalNestedTypeTest_T_A_d() throws Throwable {
190 		try {
191 		init();
192 		IValue value = eval(T_A + dInt);
193 		String typeName = value.getReferenceTypeName();
194 		assertEquals("T_A_d : wrong type : ", "int", typeName);
195 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
196 		assertEquals("T_A_d : wrong result : ", dIntValue_1, intValue);
197 
198 		value = eval(T_A + dString);
199 		typeName = value.getReferenceTypeName();
200 		assertEquals("T_A_d : wrong type : ", "java.lang.String", typeName);
201 		String stringValue = ((JDIObjectValue)value).getValueString();
202 		assertEquals("T_A_d : wrong result : ", dStringValue_1, stringValue);
203 		} finally {
204 		end();
205 		}
206 	}
207 
testEvalNestedTypeTest_T_A_h()208 	public void testEvalNestedTypeTest_T_A_h() throws Throwable {
209 		try {
210 		init();
211 		IValue value = eval(T_A + hInt);
212 		String typeName = value.getReferenceTypeName();
213 		assertEquals("T_A_h : wrong type : ", "int", typeName);
214 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
215 		assertEquals("T_A_h : wrong result : ", hIntValue_1, intValue);
216 
217 		value = eval(T_A + hString);
218 		typeName = value.getReferenceTypeName();
219 		assertEquals("T_A_h : wrong type : ", "java.lang.String", typeName);
220 		String stringValue = ((JDIObjectValue)value).getValueString();
221 		assertEquals("T_A_h : wrong result : ", hStringValue_1, stringValue);
222 		} finally {
223 		end();
224 		}
225 	}
226 
testEvalNestedTypeTest_T_T_A_AA_d()227 	public void testEvalNestedTypeTest_T_T_A_AA_d() throws Throwable {
228 		try {
229 		init();
230 		IValue value = eval(T_T_A_AA + dInt);
231 		String typeName = value.getReferenceTypeName();
232 		assertEquals("T_T_A_AA_d : wrong type : ", "int", typeName);
233 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
234 		assertEquals("T_T_A_AA_d : wrong result : ", dIntValue_2, intValue);
235 
236 		value = eval(T_T_A_AA + dString);
237 		typeName = value.getReferenceTypeName();
238 		assertEquals("T_T_A_AA_d : wrong type : ", "java.lang.String", typeName);
239 		String stringValue = ((JDIObjectValue)value).getValueString();
240 		assertEquals("T_T_A_AA_d : wrong result : ", dStringValue_2, stringValue);
241 		} finally {
242 		end();
243 		}
244 	}
245 
testEvalNestedTypeTest_T_T_A_AA_f()246 	public void testEvalNestedTypeTest_T_T_A_AA_f() throws Throwable {
247 		try {
248 		init();
249 		IValue value = eval(T_T_A_AA + fInt);
250 		String typeName = value.getReferenceTypeName();
251 		assertEquals("T_T_A_AA_f : wrong type : ", "int", typeName);
252 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
253 		assertEquals("T_T_A_AA_f : wrong result : ", fIntValue_2, intValue);
254 
255 		value = eval(T_T_A_AA + fString);
256 		typeName = value.getReferenceTypeName();
257 		assertEquals("T_T_A_AA_f : wrong type : ", "java.lang.String", typeName);
258 		String stringValue = ((JDIObjectValue)value).getValueString();
259 		assertEquals("T_T_A_AA_f : wrong result : ", fStringValue_2, stringValue);
260 		} finally {
261 		end();
262 		}
263 	}
264 
testEvalNestedTypeTest_T_T_A_AA_j()265 	public void testEvalNestedTypeTest_T_T_A_AA_j() throws Throwable {
266 		try {
267 		init();
268 		IValue value = eval(T_T_A_AA + jInt);
269 		String typeName = value.getReferenceTypeName();
270 		assertEquals("T_T_A_AA_j : wrong type : ", "int", typeName);
271 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
272 		assertEquals("T_T_A_AA_j : wrong result : ", jIntValue_2, intValue);
273 
274 		value = eval(T_T_A_AA + jString);
275 		typeName = value.getReferenceTypeName();
276 		assertEquals("T_T_A_AA_j : wrong type : ", "java.lang.String", typeName);
277 		String stringValue = ((JDIObjectValue)value).getValueString();
278 		assertEquals("T_T_A_AA_j : wrong result : ", jStringValue_2, stringValue);
279 		} finally {
280 		end();
281 		}
282 	}
283 
testEvalNestedTypeTest_T_T_A_AB_d()284 	public void testEvalNestedTypeTest_T_T_A_AB_d() throws Throwable {
285 		try {
286 		init();
287 		IValue value = eval(T_T_A_AB + dInt);
288 		String typeName = value.getReferenceTypeName();
289 		assertEquals("T_T_A_AB_d : wrong type : ", "int", typeName);
290 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
291 		assertEquals("T_T_A_AB_d : wrong result : ", dIntValue_2, intValue);
292 
293 		value = eval(T_T_A_AB + dString);
294 		typeName = value.getReferenceTypeName();
295 		assertEquals("T_T_A_AB_d : wrong type : ", "java.lang.String", typeName);
296 		String stringValue = ((JDIObjectValue)value).getValueString();
297 		assertEquals("T_T_A_AB_d : wrong result : ", dStringValue_2, stringValue);
298 		} finally {
299 		end();
300 		}
301 	}
302 
testEvalNestedTypeTest_T_T_A_AB_f()303 	public void testEvalNestedTypeTest_T_T_A_AB_f() throws Throwable {
304 		try {
305 		init();
306 		IValue value = eval(T_T_A_AB + fInt);
307 		String typeName = value.getReferenceTypeName();
308 		assertEquals("T_T_A_AB_f : wrong type : ", "int", typeName);
309 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
310 		assertEquals("T_T_A_AB_f : wrong result : ", fIntValue_2, intValue);
311 
312 		value = eval(T_T_A_AB + fString);
313 		typeName = value.getReferenceTypeName();
314 		assertEquals("T_T_A_AB_f : wrong type : ", "java.lang.String", typeName);
315 		String stringValue = ((JDIObjectValue)value).getValueString();
316 		assertEquals("T_T_A_AB_f : wrong result : ", fStringValue_2, stringValue);
317 		} finally {
318 		end();
319 		}
320 	}
321 
testEvalNestedTypeTest_T_T_A_AB_j()322 	public void testEvalNestedTypeTest_T_T_A_AB_j() throws Throwable {
323 		try {
324 		init();
325 		IValue value = eval(T_T_A_AB + jInt);
326 		String typeName = value.getReferenceTypeName();
327 		assertEquals("T_T_A_AB_j : wrong type : ", "int", typeName);
328 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
329 		assertEquals("T_T_A_AB_j : wrong result : ", jIntValue_2, intValue);
330 
331 		value = eval(T_T_A_AB + jString);
332 		typeName = value.getReferenceTypeName();
333 		assertEquals("T_T_A_AB_j : wrong type : ", "java.lang.String", typeName);
334 		String stringValue = ((JDIObjectValue)value).getValueString();
335 		assertEquals("T_T_A_AB_j : wrong result : ", jStringValue_2, stringValue);
336 		} finally {
337 		end();
338 		}
339 	}
340 
testEvalNestedTypeTest_T_A_AA_d()341 	public void testEvalNestedTypeTest_T_A_AA_d() throws Throwable {
342 		try {
343 		init();
344 		IValue value = eval(T_A_AA + dInt);
345 		String typeName = value.getReferenceTypeName();
346 		assertEquals("T_A_AA_d : wrong type : ", "int", typeName);
347 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
348 		assertEquals("T_A_AA_d : wrong result : ", dIntValue_2, intValue);
349 
350 		value = eval(T_A_AA + dString);
351 		typeName = value.getReferenceTypeName();
352 		assertEquals("T_A_AA_d : wrong type : ", "java.lang.String", typeName);
353 		String stringValue = ((JDIObjectValue)value).getValueString();
354 		assertEquals("T_A_AA_d : wrong result : ", dStringValue_2, stringValue);
355 		} finally {
356 		end();
357 		}
358 	}
359 
testEvalNestedTypeTest_T_A_AA_f()360 	public void testEvalNestedTypeTest_T_A_AA_f() throws Throwable {
361 		try {
362 		init();
363 		IValue value = eval(T_A_AA + fInt);
364 		String typeName = value.getReferenceTypeName();
365 		assertEquals("T_A_AA_f : wrong type : ", "int", typeName);
366 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
367 		assertEquals("T_A_AA_f : wrong result : ", fIntValue_2, intValue);
368 
369 		value = eval(T_A_AA + fString);
370 		typeName = value.getReferenceTypeName();
371 		assertEquals("T_A_AA_f : wrong type : ", "java.lang.String", typeName);
372 		String stringValue = ((JDIObjectValue)value).getValueString();
373 		assertEquals("T_A_AA_f : wrong result : ", fStringValue_2, stringValue);
374 		} finally {
375 		end();
376 		}
377 	}
378 
testEvalNestedTypeTest_T_A_AA_j()379 	public void testEvalNestedTypeTest_T_A_AA_j() throws Throwable {
380 		try {
381 		init();
382 		IValue value = eval(T_A_AA + jInt);
383 		String typeName = value.getReferenceTypeName();
384 		assertEquals("T_A_AA_j : wrong type : ", "int", typeName);
385 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
386 		assertEquals("T_A_AA_j : wrong result : ", jIntValue_2, intValue);
387 
388 		value = eval(T_A_AA + jString);
389 		typeName = value.getReferenceTypeName();
390 		assertEquals("T_A_AA_j : wrong type : ", "java.lang.String", typeName);
391 		String stringValue = ((JDIObjectValue)value).getValueString();
392 		assertEquals("T_A_AA_j : wrong result : ", jStringValue_2, stringValue);
393 		} finally {
394 		end();
395 		}
396 	}
397 
testEvalNestedTypeTest_T_A_AB_d()398 	public void testEvalNestedTypeTest_T_A_AB_d() throws Throwable {
399 		try {
400 		init();
401 		IValue value = eval(T_A_AB + dInt);
402 		String typeName = value.getReferenceTypeName();
403 		assertEquals("T_A_AB_d : wrong type : ", "int", typeName);
404 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
405 		assertEquals("T_A_AB_d : wrong result : ", dIntValue_2, intValue);
406 
407 		value = eval(T_A_AB + dString);
408 		typeName = value.getReferenceTypeName();
409 		assertEquals("T_A_AB_d : wrong type : ", "java.lang.String", typeName);
410 		String stringValue = ((JDIObjectValue)value).getValueString();
411 		assertEquals("T_A_AB_d : wrong result : ", dStringValue_2, stringValue);
412 		} finally {
413 		end();
414 		}
415 	}
416 
testEvalNestedTypeTest_T_A_AB_f()417 	public void testEvalNestedTypeTest_T_A_AB_f() throws Throwable {
418 		try {
419 		init();
420 		IValue value = eval(T_A_AB + fInt);
421 		String typeName = value.getReferenceTypeName();
422 		assertEquals("T_A_AB_f : wrong type : ", "int", typeName);
423 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
424 		assertEquals("T_A_AB_f : wrong result : ", fIntValue_2, intValue);
425 
426 		value = eval(T_A_AB + fString);
427 		typeName = value.getReferenceTypeName();
428 		assertEquals("T_A_AB_f : wrong type : ", "java.lang.String", typeName);
429 		String stringValue = ((JDIObjectValue)value).getValueString();
430 		assertEquals("T_A_AB_f : wrong result : ", fStringValue_2, stringValue);
431 		} finally {
432 		end();
433 		}
434 	}
435 
testEvalNestedTypeTest_T_A_AB_j()436 	public void testEvalNestedTypeTest_T_A_AB_j() throws Throwable {
437 		try {
438 		init();
439 		IValue value = eval(T_A_AB + jInt);
440 		String typeName = value.getReferenceTypeName();
441 		assertEquals("T_A_AB_j : wrong type : ", "int", typeName);
442 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
443 		assertEquals("T_A_AB_j : wrong result : ", jIntValue_2, intValue);
444 
445 		value = eval(T_A_AB + jString);
446 		typeName = value.getReferenceTypeName();
447 		assertEquals("T_A_AB_j : wrong type : ", "java.lang.String", typeName);
448 		String stringValue = ((JDIObjectValue)value).getValueString();
449 		assertEquals("T_A_AB_j : wrong result : ", jStringValue_2, stringValue);
450 		} finally {
451 		end();
452 		}
453 	}
454 
testEvalNestedTypeTest_T_T_B_d()455 	public void testEvalNestedTypeTest_T_T_B_d() throws Throwable {
456 		try {
457 		init();
458 		IValue value = eval(T_T_B + dInt);
459 		String typeName = value.getReferenceTypeName();
460 		assertEquals("T_T_B_d : wrong type : ", "int", typeName);
461 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
462 		assertEquals("T_T_B_d : wrong result : ", dIntValue_1, intValue);
463 
464 		value = eval(T_T_B + dString);
465 		typeName = value.getReferenceTypeName();
466 		assertEquals("T_T_B_d : wrong type : ", "java.lang.String", typeName);
467 		String stringValue = ((JDIObjectValue)value).getValueString();
468 		assertEquals("T_T_B_d : wrong result : ", dStringValue_1, stringValue);
469 		} finally {
470 		end();
471 		}
472 	}
473 
testEvalNestedTypeTest_T_T_B_h()474 	public void testEvalNestedTypeTest_T_T_B_h() throws Throwable {
475 		try {
476 		init();
477 		IValue value = eval(T_T_B + hInt);
478 		String typeName = value.getReferenceTypeName();
479 		assertEquals("T_T_B_h : wrong type : ", "int", typeName);
480 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
481 		assertEquals("T_T_B_h : wrong result : ", hIntValue_1, intValue);
482 
483 		value = eval(T_T_B + hString);
484 		typeName = value.getReferenceTypeName();
485 		assertEquals("T_T_B_h : wrong type : ", "java.lang.String", typeName);
486 		String stringValue = ((JDIObjectValue)value).getValueString();
487 		assertEquals("T_T_B_h : wrong result : ", hStringValue_1, stringValue);
488 		} finally {
489 		end();
490 		}
491 	}
492 
testEvalNestedTypeTest_T_B_d()493 	public void testEvalNestedTypeTest_T_B_d() throws Throwable {
494 		try {
495 		init();
496 		IValue value = eval(T_B + dInt);
497 		String typeName = value.getReferenceTypeName();
498 		assertEquals("T_B_d : wrong type : ", "int", typeName);
499 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
500 		assertEquals("T_B_d : wrong result : ", dIntValue_1, intValue);
501 
502 		value = eval(T_B + dString);
503 		typeName = value.getReferenceTypeName();
504 		assertEquals("T_B_d : wrong type : ", "java.lang.String", typeName);
505 		String stringValue = ((JDIObjectValue)value).getValueString();
506 		assertEquals("T_B_d : wrong result : ", dStringValue_1, stringValue);
507 		} finally {
508 		end();
509 		}
510 	}
511 
testEvalNestedTypeTest_T_B_h()512 	public void testEvalNestedTypeTest_T_B_h() throws Throwable {
513 		try {
514 		init();
515 		IValue value = eval(T_B + hInt);
516 		String typeName = value.getReferenceTypeName();
517 		assertEquals("T_B_h : wrong type : ", "int", typeName);
518 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
519 		assertEquals("T_B_h : wrong result : ", hIntValue_1, intValue);
520 
521 		value = eval(T_B + hString);
522 		typeName = value.getReferenceTypeName();
523 		assertEquals("T_B_h : wrong type : ", "java.lang.String", typeName);
524 		String stringValue = ((JDIObjectValue)value).getValueString();
525 		assertEquals("T_B_h : wrong result : ", hStringValue_1, stringValue);
526 		} finally {
527 		end();
528 		}
529 	}
530 
testEvalNestedTypeTest_T_T_B_BB_d()531 	public void testEvalNestedTypeTest_T_T_B_BB_d() throws Throwable {
532 		try {
533 		init();
534 		IValue value = eval(T_T_B_BB + dInt);
535 		String typeName = value.getReferenceTypeName();
536 		assertEquals("T_T_B_BB_d : wrong type : ", "int", typeName);
537 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
538 		assertEquals("T_T_B_BB_d : wrong result : ", dIntValue_2, intValue);
539 
540 		value = eval(T_T_B_BB + dString);
541 		typeName = value.getReferenceTypeName();
542 		assertEquals("T_T_B_BB_d : wrong type : ", "java.lang.String", typeName);
543 		String stringValue = ((JDIObjectValue)value).getValueString();
544 		assertEquals("T_T_B_BB_d : wrong result : ", dStringValue_2, stringValue);
545 		} finally {
546 		end();
547 		}
548 	}
549 
testEvalNestedTypeTest_T_T_B_BB_f()550 	public void testEvalNestedTypeTest_T_T_B_BB_f() throws Throwable {
551 		try {
552 		init();
553 		IValue value = eval(T_T_B_BB + fInt);
554 		String typeName = value.getReferenceTypeName();
555 		assertEquals("T_T_B_BB_f : wrong type : ", "int", typeName);
556 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
557 		assertEquals("T_T_B_BB_f : wrong result : ", fIntValue_2, intValue);
558 
559 		value = eval(T_T_B_BB + fString);
560 		typeName = value.getReferenceTypeName();
561 		assertEquals("T_T_B_BB_f : wrong type : ", "java.lang.String", typeName);
562 		String stringValue = ((JDIObjectValue)value).getValueString();
563 		assertEquals("T_T_B_BB_f : wrong result : ", fStringValue_2, stringValue);
564 		} finally {
565 		end();
566 		}
567 	}
568 
testEvalNestedTypeTest_T_T_B_BB_j()569 	public void testEvalNestedTypeTest_T_T_B_BB_j() throws Throwable {
570 		try {
571 		init();
572 		IValue value = eval(T_T_B_BB + jInt);
573 		String typeName = value.getReferenceTypeName();
574 		assertEquals("T_T_B_BB_j : wrong type : ", "int", typeName);
575 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
576 		assertEquals("T_T_B_BB_j : wrong result : ", jIntValue_2, intValue);
577 
578 		value = eval(T_T_B_BB + jString);
579 		typeName = value.getReferenceTypeName();
580 		assertEquals("T_T_B_BB_j : wrong type : ", "java.lang.String", typeName);
581 		String stringValue = ((JDIObjectValue)value).getValueString();
582 		assertEquals("T_T_B_BB_j : wrong result : ", jStringValue_2, stringValue);
583 		} finally {
584 		end();
585 		}
586 	}
587 
testEvalNestedTypeTest_T_B_BB_d()588 	public void testEvalNestedTypeTest_T_B_BB_d() throws Throwable {
589 		try {
590 		init();
591 		IValue value = eval(T_B_BB + dInt);
592 		String typeName = value.getReferenceTypeName();
593 		assertEquals("T_B_BB_d : wrong type : ", "int", typeName);
594 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
595 		assertEquals("T_B_BB_d : wrong result : ", dIntValue_2, intValue);
596 
597 		value = eval(T_B_BB + dString);
598 		typeName = value.getReferenceTypeName();
599 		assertEquals("T_B_BB_d : wrong type : ", "java.lang.String", typeName);
600 		String stringValue = ((JDIObjectValue)value).getValueString();
601 		assertEquals("T_B_BB_d : wrong result : ", dStringValue_2, stringValue);
602 		} finally {
603 		end();
604 		}
605 	}
606 
testEvalNestedTypeTest_T_B_BB_f()607 	public void testEvalNestedTypeTest_T_B_BB_f() throws Throwable {
608 		try {
609 		init();
610 		IValue value = eval(T_B_BB + fInt);
611 		String typeName = value.getReferenceTypeName();
612 		assertEquals("T_B_BB_f : wrong type : ", "int", typeName);
613 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
614 		assertEquals("T_B_BB_f : wrong result : ", fIntValue_2, intValue);
615 
616 		value = eval(T_B_BB + fString);
617 		typeName = value.getReferenceTypeName();
618 		assertEquals("T_B_BB_f : wrong type : ", "java.lang.String", typeName);
619 		String stringValue = ((JDIObjectValue)value).getValueString();
620 		assertEquals("T_B_BB_f : wrong result : ", fStringValue_2, stringValue);
621 		} finally {
622 		end();
623 		}
624 	}
625 
testEvalNestedTypeTest_T_B_BB_j()626 	public void testEvalNestedTypeTest_T_B_BB_j() throws Throwable {
627 		try {
628 		init();
629 		IValue value = eval(T_B_BB + jInt);
630 		String typeName = value.getReferenceTypeName();
631 		assertEquals("T_B_BB_j : wrong type : ", "int", typeName);
632 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
633 		assertEquals("T_B_BB_j : wrong result : ", jIntValue_2, intValue);
634 
635 		value = eval(T_B_BB + jString);
636 		typeName = value.getReferenceTypeName();
637 		assertEquals("T_B_BB_j : wrong type : ", "java.lang.String", typeName);
638 		String stringValue = ((JDIObjectValue)value).getValueString();
639 		assertEquals("T_B_BB_j : wrong result : ", jStringValue_2, stringValue);
640 		} finally {
641 		end();
642 		}
643 	}
644 
testEvalNestedTypeTest_T_AA_d()645 	public void testEvalNestedTypeTest_T_AA_d() throws Throwable {
646 		try {
647 		init();
648 		IValue value = eval(T_AA + dInt);
649 		String typeName = value.getReferenceTypeName();
650 		assertEquals("T_AA_d : wrong type : ", "int", typeName);
651 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
652 		assertEquals("T_AA_d : wrong result : ", dIntValue_2, intValue);
653 
654 		value = eval(T_AA + dString);
655 		typeName = value.getReferenceTypeName();
656 		assertEquals("T_AA_d : wrong type : ", "java.lang.String", typeName);
657 		String stringValue = ((JDIObjectValue)value).getValueString();
658 		assertEquals("T_AA_d : wrong result : ", dStringValue_2, stringValue);
659 		} finally {
660 		end();
661 		}
662 	}
663 
testEvalNestedTypeTest_T_AA_f()664 	public void testEvalNestedTypeTest_T_AA_f() throws Throwable {
665 		try {
666 		init();
667 		IValue value = eval(T_AA + fInt);
668 		String typeName = value.getReferenceTypeName();
669 		assertEquals("T_AA_f : wrong type : ", "int", typeName);
670 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
671 		assertEquals("T_AA_f : wrong result : ", fIntValue_2, intValue);
672 
673 		value = eval(T_AA + fString);
674 		typeName = value.getReferenceTypeName();
675 		assertEquals("T_AA_f : wrong type : ", "java.lang.String", typeName);
676 		String stringValue = ((JDIObjectValue)value).getValueString();
677 		assertEquals("T_AA_f : wrong result : ", fStringValue_2, stringValue);
678 		} finally {
679 		end();
680 		}
681 	}
682 
testEvalNestedTypeTest_T_AA_j()683 	public void testEvalNestedTypeTest_T_AA_j() throws Throwable {
684 		try {
685 		init();
686 		IValue value = eval(T_AA + jInt);
687 		String typeName = value.getReferenceTypeName();
688 		assertEquals("T_AA_j : wrong type : ", "int", typeName);
689 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
690 		assertEquals("T_AA_j : wrong result : ", jIntValue_2, intValue);
691 
692 		value = eval(T_AA + jString);
693 		typeName = value.getReferenceTypeName();
694 		assertEquals("T_AA_j : wrong type : ", "java.lang.String", typeName);
695 		String stringValue = ((JDIObjectValue)value).getValueString();
696 		assertEquals("T_AA_j : wrong result : ", jStringValue_2, stringValue);
697 		} finally {
698 		end();
699 		}
700 	}
701 
testEvalNestedTypeTest_T_AB_d()702 	public void testEvalNestedTypeTest_T_AB_d() throws Throwable {
703 		try {
704 		init();
705 		IValue value = eval(T_AB + dInt);
706 		String typeName = value.getReferenceTypeName();
707 		assertEquals("T_AB_d : wrong type : ", "int", typeName);
708 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
709 		assertEquals("T_AB_d : wrong result : ", dIntValue_2, intValue);
710 
711 		value = eval(T_AB + dString);
712 		typeName = value.getReferenceTypeName();
713 		assertEquals("T_AB_d : wrong type : ", "java.lang.String", typeName);
714 		String stringValue = ((JDIObjectValue)value).getValueString();
715 		assertEquals("T_AB_d : wrong result : ", dStringValue_2, stringValue);
716 		} finally {
717 		end();
718 		}
719 	}
720 
testEvalNestedTypeTest_T_AB_f()721 	public void testEvalNestedTypeTest_T_AB_f() throws Throwable {
722 		try {
723 		init();
724 		IValue value = eval(T_AB + fInt);
725 		String typeName = value.getReferenceTypeName();
726 		assertEquals("T_AB_f : wrong type : ", "int", typeName);
727 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
728 		assertEquals("T_AB_f : wrong result : ", fIntValue_2, intValue);
729 
730 		value = eval(T_AB + fString);
731 		typeName = value.getReferenceTypeName();
732 		assertEquals("T_AB_f : wrong type : ", "java.lang.String", typeName);
733 		String stringValue = ((JDIObjectValue)value).getValueString();
734 		assertEquals("T_AB_f : wrong result : ", fStringValue_2, stringValue);
735 		} finally {
736 		end();
737 		}
738 	}
739 
testEvalNestedTypeTest_T_AB_j()740 	public void testEvalNestedTypeTest_T_AB_j() throws Throwable {
741 		try {
742 		init();
743 		IValue value = eval(T_AB + jInt);
744 		String typeName = value.getReferenceTypeName();
745 		assertEquals("T_AB_j : wrong type : ", "int", typeName);
746 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
747 		assertEquals("T_AB_j : wrong result : ", jIntValue_2, intValue);
748 
749 		value = eval(T_AB + jString);
750 		typeName = value.getReferenceTypeName();
751 		assertEquals("T_AB_j : wrong type : ", "java.lang.String", typeName);
752 		String stringValue = ((JDIObjectValue)value).getValueString();
753 		assertEquals("T_AB_j : wrong result : ", jStringValue_2, stringValue);
754 		} finally {
755 		end();
756 		}
757 	}
758 
testEvalNestedTypeTest_T_A_this_c()759 	public void testEvalNestedTypeTest_T_A_this_c() throws Throwable {
760 		try {
761 		init();
762 		IValue value = eval(T_A_this + cInt);
763 		String typeName = value.getReferenceTypeName();
764 		assertEquals("T_A_this_c : wrong type : ", "int", typeName);
765 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
766 		assertEquals("T_A_this_c : wrong result : ", cIntValue_1, intValue);
767 
768 		value = eval(T_A_this + cString);
769 		typeName = value.getReferenceTypeName();
770 		assertEquals("T_A_this_c : wrong type : ", "java.lang.String", typeName);
771 		String stringValue = ((JDIObjectValue)value).getValueString();
772 		assertEquals("T_A_this_c : wrong result : ", cStringValue_1, stringValue);
773 		} finally {
774 		end();
775 		}
776 	}
777 
testEvalNestedTypeTest_T_A_this_d()778 	public void testEvalNestedTypeTest_T_A_this_d() throws Throwable {
779 		try {
780 		init();
781 		IValue value = eval(T_A_this + dInt);
782 		String typeName = value.getReferenceTypeName();
783 		assertEquals("T_A_this_d : wrong type : ", "int", typeName);
784 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
785 		assertEquals("T_A_this_d : wrong result : ", dIntValue_1, intValue);
786 
787 		value = eval(T_A_this + dString);
788 		typeName = value.getReferenceTypeName();
789 		assertEquals("T_A_this_d : wrong type : ", "java.lang.String", typeName);
790 		String stringValue = ((JDIObjectValue)value).getValueString();
791 		assertEquals("T_A_this_d : wrong result : ", dStringValue_1, stringValue);
792 		} finally {
793 		end();
794 		}
795 	}
796 
testEvalNestedTypeTest_T_A_this_g()797 	public void testEvalNestedTypeTest_T_A_this_g() throws Throwable {
798 		try {
799 		init();
800 		IValue value = eval(T_A_this + gInt);
801 		String typeName = value.getReferenceTypeName();
802 		assertEquals("T_A_this_g : wrong type : ", "int", typeName);
803 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
804 		assertEquals("T_A_this_g : wrong result : ", gIntValue_1, intValue);
805 
806 		value = eval(T_A_this + gString);
807 		typeName = value.getReferenceTypeName();
808 		assertEquals("T_A_this_g : wrong type : ", "java.lang.String", typeName);
809 		String stringValue = ((JDIObjectValue)value).getValueString();
810 		assertEquals("T_A_this_g : wrong result : ", gStringValue_1, stringValue);
811 		} finally {
812 		end();
813 		}
814 	}
815 
testEvalNestedTypeTest_T_A_this_h()816 	public void testEvalNestedTypeTest_T_A_this_h() throws Throwable {
817 		try {
818 		init();
819 		IValue value = eval(T_A_this + hInt);
820 		String typeName = value.getReferenceTypeName();
821 		assertEquals("T_A_this_h : wrong type : ", "int", typeName);
822 		int intValue = ((IJavaPrimitiveValue)value).getIntValue();
823 		assertEquals("T_A_this_h : wrong result : ", hIntValue_1, intValue);
824 
825 		value = eval(T_A_this + hString);
826 		typeName = value.getReferenceTypeName();
827 		assertEquals("T_A_this_h : wrong type : ", "java.lang.String", typeName);
828 		String stringValue = ((JDIObjectValue)value).getValueString();
829 		assertEquals("T_A_this_h : wrong result : ", hStringValue_1, stringValue);
830 		} finally {
831 		end();
832 		}
833 	}
834 
835 }
836