author | gadams |
Thu, 21 Feb 2019 05:06:41 -0500 | |
changeset 53869 | 34906de6c017 |
parent 50018 | 3ba0d8631f24 |
permissions | -rw-r--r-- |
50018 | 1 |
/* |
53869
34906de6c017
8219388: Misleading log message "issuspended002a debuggee launched"
gadams
parents:
50018
diff
changeset
|
2 |
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. |
50018 | 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.jdi.StackFrame.thisObject; |
|
25 |
||
26 |
import nsk.share.*; |
|
27 |
import nsk.share.jpda.*; |
|
28 |
import nsk.share.jdi.*; |
|
29 |
||
30 |
import com.sun.jdi.*; |
|
31 |
import java.util.*; |
|
32 |
import java.io.*; |
|
33 |
||
34 |
import com.sun.jdi.event.*; |
|
35 |
import com.sun.jdi.request.*; |
|
36 |
||
37 |
/** |
|
38 |
* The test for the implementation of an object of the type <BR> |
|
39 |
* StackFrame. <BR> |
|
40 |
* <BR> |
|
41 |
* The test checks up that results of the method <BR> |
|
42 |
* <code>com.sun.jdi.StackFrame.thisObject()</code> <BR> |
|
43 |
* complies with its spec when the frame represents <BR> |
|
44 |
* a non-native, non-static method. <BR> |
|
45 |
* <BR> |
|
46 |
* The cases for testing are as follows. <BR> |
|
47 |
* After being started up, <BR> |
|
48 |
* a debuggee creates a 'lockingObject' for synchronizing threads, <BR> |
|
49 |
* enters a synchronized block in which it creates new thread, thread2, <BR> |
|
50 |
* informs a debugger of the thread2 creation, and is waiting for reply.<BR> |
|
51 |
* Since the thread2 uses the same locking object as main one <BR> |
|
52 |
* it is locked up until the main thread leaves the synchronized block. <BR> |
|
53 |
* Upon the receiption a message from the debuggee, the debugger <BR> |
|
54 |
* sets up a breakpoint, and performs the following. <BR> |
|
55 |
* 1) After getting a thread2 suspended but before to resume it, <BR> |
|
56 |
* StackFrame.thisObject() is invoked and <BR> |
|
57 |
* its returned value is casted to ThreadReference. <BR> |
|
58 |
* Since the thread is not resumed yet, neither <BR> |
|
59 |
* InvalidStackFrameException no ClassCastException must be thrown. <BR> |
|
60 |
* 2) After resuming the thread2, the tested method is invoked <BR> |
|
61 |
* second time and InvalidStackFrameException must be thrown. <BR> |
|
62 |
* <BR> |
|
63 |
*/ |
|
64 |
||
65 |
public class thisobject001 { |
|
66 |
||
67 |
//----------------------------------------------------- templete section |
|
68 |
static final int PASSED = 0; |
|
69 |
static final int FAILED = 2; |
|
70 |
static final int PASS_BASE = 95; |
|
71 |
||
72 |
//----------------------------------------------------- templete parameters |
|
73 |
static final String |
|
74 |
sHeader1 = "\n==> nsk/jdi/StackFrame/thisObject/thisobject001 ", |
|
75 |
sHeader2 = "--> debugger: ", |
|
76 |
sHeader3 = "##> debugger: "; |
|
77 |
||
78 |
||
79 |
//----------------------------------------------------- main method |
|
80 |
||
81 |
public static void main (String argv[]) { |
|
82 |
int result = run(argv, System.out); |
|
83 |
System.exit(result + PASS_BASE); |
|
84 |
} |
|
85 |
||
86 |
public static int run (String argv[], PrintStream out) { |
|
87 |
return new thisobject001().runThis(argv, out); |
|
88 |
} |
|
89 |
||
90 |
//-------------------------------------------------- log procedures |
|
91 |
||
92 |
private static Log logHandler; |
|
93 |
||
94 |
private static void log1(String message) { |
|
95 |
logHandler.display(sHeader1 + message); |
|
96 |
} |
|
97 |
private static void log2(String message) { |
|
98 |
logHandler.display(sHeader2 + message); |
|
99 |
} |
|
100 |
private static void log3(String message) { |
|
101 |
logHandler.complain(sHeader3 + message); |
|
102 |
} |
|
103 |
||
104 |
// ************************************************ test parameters |
|
105 |
||
106 |
private String debuggeeName = |
|
107 |
"nsk.jdi.StackFrame.thisObject.thisobject001a"; |
|
108 |
||
109 |
private String testedClassName = |
|
110 |
"nsk.jdi.StackFrame.thisObject.Threadthisobject001a"; |
|
111 |
||
112 |
//String mName = "nsk.jdi.StackFrame.thisObject"; |
|
113 |
||
114 |
//====================================================== test program |
|
115 |
//------------------------------------------------------ common section |
|
116 |
static ArgumentHandler argsHandler; |
|
117 |
||
118 |
static int waitTime; |
|
119 |
||
120 |
static VirtualMachine vm = null; |
|
121 |
static EventRequestManager eventRManager = null; |
|
122 |
static EventQueue eventQueue = null; |
|
123 |
static EventSet eventSet = null; |
|
124 |
||
125 |
ReferenceType testedclass = null; |
|
126 |
ThreadReference thread2 = null; |
|
127 |
ThreadReference mainThread = null; |
|
128 |
||
129 |
static int testExitCode = PASSED; |
|
130 |
||
131 |
static final int returnCode0 = 0; |
|
132 |
static final int returnCode1 = 1; |
|
133 |
static final int returnCode2 = 2; |
|
134 |
static final int returnCode3 = 3; |
|
135 |
static final int returnCode4 = 4; |
|
136 |
||
137 |
//------------------------------------------------------ methods |
|
138 |
||
139 |
private int runThis (String argv[], PrintStream out) { |
|
140 |
||
141 |
Debugee debuggee; |
|
142 |
||
143 |
argsHandler = new ArgumentHandler(argv); |
|
144 |
logHandler = new Log(out, argsHandler); |
|
145 |
Binder binder = new Binder(argsHandler, logHandler); |
|
146 |
||
147 |
if (argsHandler.verbose()) { |
|
148 |
debuggee = binder.bindToDebugee(debuggeeName + " -vbs"); // *** tp |
|
149 |
} else { |
|
150 |
debuggee = binder.bindToDebugee(debuggeeName); // *** tp |
|
151 |
} |
|
152 |
||
153 |
waitTime = argsHandler.getWaitTime(); |
|
154 |
||
155 |
||
156 |
IOPipe pipe = new IOPipe(debuggee); |
|
157 |
||
158 |
debuggee.redirectStderr(out); |
|
53869
34906de6c017
8219388: Misleading log message "issuspended002a debuggee launched"
gadams
parents:
50018
diff
changeset
|
159 |
log2(debuggeeName + " debuggee launched"); |
50018 | 160 |
debuggee.resume(); |
161 |
||
162 |
String line = pipe.readln(); |
|
163 |
if ((line == null) || !line.equals("ready")) { |
|
164 |
log3("signal received is not 'ready' but: " + line); |
|
165 |
return FAILED; |
|
166 |
} else { |
|
167 |
log2("'ready' recieved"); |
|
168 |
} |
|
169 |
||
170 |
VirtualMachine vm = debuggee.VM(); |
|
171 |
||
172 |
//------------------------------------------------------ testing section |
|
173 |
log1(" TESTING BEGINS"); |
|
174 |
||
175 |
for (int i = 0; ; i++) { |
|
176 |
pipe.println("newcheck"); |
|
177 |
line = pipe.readln(); |
|
178 |
||
179 |
if (line.equals("checkend")) { |
|
180 |
log2(" : returned string is 'checkend'"); |
|
181 |
break ; |
|
182 |
} else if (!line.equals("checkready")) { |
|
183 |
log3("ERROR: returned string is not 'checkready'"); |
|
184 |
testExitCode = FAILED; |
|
185 |
break ; |
|
186 |
} |
|
187 |
||
188 |
log1("new check: #" + i); |
|
189 |
||
190 |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable part |
|
191 |
||
192 |
int expresult = returnCode0; |
|
193 |
||
194 |
||
195 |
eventRManager = vm.eventRequestManager(); |
|
196 |
eventQueue = vm.eventQueue(); |
|
197 |
||
198 |
String threadName = "testedThread"; |
|
199 |
||
200 |
String breakpointMethod1 = "runt1"; |
|
201 |
String breakpointMethod2 = "runt2"; |
|
202 |
||
203 |
String bpLine1 = "breakpointLineNumber1"; |
|
204 |
String bpLine2 = "breakpointLineNumber2"; |
|
205 |
//String bpLine3 = "breakpointLineNumber3"; |
|
206 |
||
207 |
||
208 |
List allThreads = null; |
|
209 |
ListIterator listIterator = null; |
|
210 |
List classes = null; |
|
211 |
||
212 |
BreakpointRequest breakpRequest1 = null; |
|
213 |
BreakpointRequest breakpRequest2 = null; |
|
214 |
//BreakpointRequest breakpRequest3 = null; |
|
215 |
||
216 |
int suspCount = 0; |
|
217 |
int frameCount; |
|
218 |
||
219 |
StackFrame stackFrame = null; |
|
220 |
LocalVariable locvar1 = null; |
|
221 |
LocalVariable locvar2 = null; |
|
222 |
||
223 |
label0: { |
|
224 |
||
225 |
log2("getting ThreadReference object"); |
|
226 |
try { |
|
227 |
allThreads = vm.allThreads(); |
|
228 |
classes = vm.classesByName(testedClassName); |
|
229 |
testedclass = (ReferenceType) classes.get(0); |
|
230 |
} catch ( Exception e) { |
|
231 |
log3("ERROR: Exception at very beginning !? : " + e); |
|
232 |
expresult = returnCode1; |
|
233 |
break label0; |
|
234 |
} |
|
235 |
||
236 |
thread2 = debuggee.threadByName(threadName); |
|
237 |
||
238 |
log2("setting up breakpoints"); |
|
239 |
||
240 |
breakpRequest1 = settingBreakpoint(breakpointMethod1, bpLine1, "one"); |
|
241 |
if (breakpRequest1 == null) { |
|
242 |
expresult = returnCode1; |
|
243 |
break label0; |
|
244 |
} |
|
245 |
breakpRequest2 = settingBreakpoint(breakpointMethod2, bpLine2, "two"); |
|
246 |
if (breakpRequest2 == null) { |
|
247 |
expresult = returnCode1; |
|
248 |
break label0; |
|
249 |
} |
|
250 |
} |
|
251 |
||
252 |
label1: { |
|
253 |
||
254 |
if (expresult != returnCode0) |
|
255 |
break label1; |
|
256 |
||
257 |
log2(" enabling breakpRequest1"); |
|
258 |
breakpRequest1.enable(); |
|
259 |
||
260 |
log2(" forcing the main thread to leave synchronized block"); |
|
261 |
pipe.println("continue"); |
|
262 |
line = pipe.readln(); |
|
263 |
if (!line.equals("docontinue")) { |
|
264 |
log3("ERROR: returned string is not 'docontinue'"); |
|
265 |
expresult = returnCode4; |
|
266 |
break label1; |
|
267 |
} |
|
268 |
||
269 |
expresult = breakpoint(); |
|
270 |
if (expresult != returnCode0) |
|
271 |
break label1; |
|
272 |
||
273 |
log2(" the thread2 is at the breakpoint"); |
|
274 |
log2(" the check that the thread2 is suspended at the breakpoint"); |
|
275 |
if ( thread2.isSuspended() ) { |
|
276 |
log2(" : thread2.isSuspended()"); |
|
277 |
} else { |
|
278 |
log3("ERROR: !thread2.isSuspended()"); |
|
279 |
expresult = returnCode1; |
|
280 |
break label1; |
|
281 |
} |
|
282 |
||
283 |
log2(" getting StackFrame"); |
|
284 |
try { |
|
285 |
stackFrame = thread2.frame(0); |
|
286 |
} catch ( Exception e ) { |
|
287 |
log3("ERROR: Exception for stackFrame = thread2.frame(0) :" + e); |
|
288 |
expresult = returnCode1; |
|
289 |
break label1; |
|
290 |
} |
|
291 |
||
292 |
ObjectReference thisobj; |
|
293 |
||
294 |
log2(" getting stackFrame.thisObject() which must not be null"); |
|
295 |
try { |
|
296 |
thisobj = stackFrame.thisObject(); |
|
297 |
if (thisobj == null) { |
|
298 |
log3("ERROR: stackFrame.thisObject()==null for non-static method"); |
|
299 |
expresult = returnCode1; |
|
300 |
break label1; |
|
301 |
} |
|
302 |
log2(" casting ObjectReference to ThreadReference"); |
|
303 |
ThreadReference t = (ThreadReference) thisobj; |
|
304 |
} catch ( InvalidStackFrameException e ) { |
|
305 |
log3("ERROR: InvalidStackFrameExceprtion before the thread is resumed"); |
|
306 |
expresult = returnCode1; |
|
307 |
break label1; |
|
308 |
} catch ( ClassCastException e ) { |
|
309 |
log3("ERROR: ClassCastException for ThreadReference t = (ThreadReference) thisobj;"); |
|
310 |
expresult = returnCode1; |
|
311 |
break label1; |
|
312 |
} |
|
313 |
||
314 |
log2(" resuming the thread2"); |
|
315 |
eventSet.resume(); |
|
316 |
||
317 |
log2(" checking up throwing InvalidStackFrameExceprtion after the thread2 is resumed"); |
|
318 |
try { |
|
319 |
thisobj = stackFrame.thisObject(); |
|
320 |
log3("ERROR: no InvalidStackFrameExceprtion after the thread2 is resumed"); |
|
321 |
expresult = returnCode1; |
|
322 |
break label1; |
|
323 |
} catch ( InvalidStackFrameException e ) { |
|
324 |
} |
|
325 |
||
326 |
} |
|
327 |
||
328 |
log2(" resuming the thread2 for case it was suspended but not resumed yet"); |
|
329 |
eventSet.resume(); |
|
330 |
||
331 |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
332 |
log2(" the end of testing"); |
|
333 |
if (expresult != returnCode0) |
|
334 |
testExitCode = FAILED; |
|
335 |
} |
|
336 |
log1(" TESTING ENDS"); |
|
337 |
||
338 |
//-------------------------------------------------- test summary section |
|
339 |
//------------------------------------------------- standard end section |
|
340 |
||
341 |
pipe.println("quit"); |
|
342 |
log2("waiting for the debuggee to finish ..."); |
|
343 |
debuggee.waitFor(); |
|
344 |
||
345 |
int status = debuggee.getStatus(); |
|
346 |
if (status != PASSED + PASS_BASE) { |
|
347 |
log3("debuggee returned UNEXPECTED exit status: " + |
|
348 |
status + " != PASS_BASE"); |
|
349 |
testExitCode = FAILED; |
|
350 |
} else { |
|
351 |
log2("debuggee returned expected exit status: " + |
|
352 |
status + " == PASS_BASE"); |
|
353 |
} |
|
354 |
||
355 |
if (testExitCode != PASSED) { |
|
356 |
logHandler.complain("TEST FAILED"); |
|
357 |
} |
|
358 |
return testExitCode; |
|
359 |
} |
|
360 |
||
361 |
||
362 |
/* |
|
363 |
* private BreakpointRequest settingBreakpoint(String, String, String) |
|
364 |
* |
|
365 |
* It sets up a breakpoint within a given method at given line number |
|
366 |
* for the thread2 only. |
|
367 |
* Third parameter is required for any case in future debugging, as if. |
|
368 |
* |
|
369 |
* Return codes: |
|
370 |
* = BreakpointRequest object in case of success |
|
371 |
* = null in case of an Exception thrown within the method |
|
372 |
*/ |
|
373 |
||
374 |
private BreakpointRequest settingBreakpoint ( String methodName, |
|
375 |
String bpLine, |
|
376 |
String property) { |
|
377 |
||
378 |
log2("setting up a breakpoint: method: '" + methodName + "' line: " + bpLine ); |
|
379 |
||
380 |
List alllineLocations = null; |
|
381 |
Location lineLocation = null; |
|
382 |
BreakpointRequest breakpRequest = null; |
|
383 |
||
384 |
try { |
|
385 |
Method method = (Method) testedclass.methodsByName(methodName).get(0); |
|
386 |
||
387 |
alllineLocations = method.allLineLocations(); |
|
388 |
||
389 |
int n = |
|
390 |
( (IntegerValue) testedclass.getValue(testedclass.fieldByName(bpLine) ) ).value(); |
|
391 |
if (n > alllineLocations.size()) { |
|
392 |
log3("ERROR: TEST_ERROR_IN_settingBreakpoint(): number is out of bound of method's lines"); |
|
393 |
} else { |
|
394 |
lineLocation = (Location) alllineLocations.get(n); |
|
395 |
try { |
|
396 |
breakpRequest = eventRManager.createBreakpointRequest(lineLocation); |
|
397 |
breakpRequest.putProperty("number", property); |
|
398 |
breakpRequest.addThreadFilter(thread2); |
|
399 |
breakpRequest.setSuspendPolicy( EventRequest.SUSPEND_EVENT_THREAD); |
|
400 |
} catch ( Exception e1 ) { |
|
401 |
log3("ERROR: inner Exception within settingBreakpoint() : " + e1); |
|
402 |
breakpRequest = null; |
|
403 |
} |
|
404 |
} |
|
405 |
} catch ( Exception e2 ) { |
|
406 |
log3("ERROR: ATTENTION: outer Exception within settingBreakpoint() : " + e2); |
|
407 |
breakpRequest = null; |
|
408 |
} |
|
409 |
||
410 |
if (breakpRequest == null) |
|
411 |
log2(" A BREAKPOINT HAS NOT BEEN SET UP"); |
|
412 |
else |
|
413 |
log2(" a breakpoint has been set up"); |
|
414 |
||
415 |
return breakpRequest; |
|
416 |
} |
|
417 |
||
418 |
||
419 |
/* |
|
420 |
* private int breakpoint () |
|
421 |
* |
|
422 |
* It removes events from EventQueue until gets first BreakpointEvent. |
|
423 |
* To get next EventSet value, it uses the method |
|
424 |
* EventQueue.remove(int timeout) |
|
425 |
* The timeout argument passed to the method, is "waitTime*60000". |
|
426 |
* Note: the value of waitTime is set up with |
|
427 |
* the method ArgumentHandler.getWaitTime() at the beginning of the test. |
|
428 |
* |
|
429 |
* Return codes: |
|
430 |
* = returnCode0 - success; |
|
431 |
* = returnCode2 - Exception when "eventSet = eventQueue.remove()" is executed |
|
432 |
* = returnCode3 - default case when loop of processing an event, that is, |
|
433 |
* an unspecified event was taken from the EventQueue |
|
434 |
*/ |
|
435 |
||
436 |
private int breakpoint () { |
|
437 |
||
438 |
int returnCode = returnCode0; |
|
439 |
||
440 |
log2(" waiting for BreakpointEvent"); |
|
441 |
||
442 |
labelBP: |
|
443 |
for (;;) { |
|
444 |
||
445 |
log2(" new: eventSet = eventQueue.remove();"); |
|
446 |
try { |
|
447 |
eventSet = eventQueue.remove(waitTime*60000); |
|
448 |
if (eventSet == null) { |
|
449 |
log3("ERROR: timeout for waiting for a BreakpintEvent"); |
|
450 |
returnCode = returnCode3; |
|
451 |
break labelBP; |
|
452 |
} |
|
453 |
} catch ( Exception e ) { |
|
454 |
log3("ERROR: Exception for eventSet = eventQueue.remove(); : " + e); |
|
455 |
returnCode = 1; |
|
456 |
break labelBP; |
|
457 |
} |
|
458 |
||
459 |
if (eventSet != null) { |
|
460 |
||
461 |
log2(" : eventSet != null; size == " + eventSet.size()); |
|
462 |
||
463 |
EventIterator eIter = eventSet.eventIterator(); |
|
464 |
Event ev = null; |
|
465 |
||
466 |
for (; eIter.hasNext(); ) { |
|
467 |
||
468 |
if (returnCode != returnCode0) |
|
469 |
break; |
|
470 |
||
471 |
ev = eIter.nextEvent(); |
|
472 |
||
473 |
ll: for (int ifor =0; ; ifor++) { |
|
474 |
||
475 |
try { |
|
476 |
switch (ifor) { |
|
477 |
||
478 |
case 0: AccessWatchpointEvent awe = (AccessWatchpointEvent) ev; |
|
479 |
log2(" AccessWatchpointEvent removed"); |
|
480 |
break ll; |
|
481 |
case 1: BreakpointEvent be = (BreakpointEvent) ev; |
|
482 |
log2(" BreakpointEvent removed"); |
|
483 |
break labelBP; |
|
484 |
case 2: ClassPrepareEvent cpe = (ClassPrepareEvent) ev; |
|
485 |
log2(" ClassPreparEvent removed"); |
|
486 |
break ll; |
|
487 |
case 3: ClassUnloadEvent cue = (ClassUnloadEvent) ev; |
|
488 |
log2(" ClassUnloadEvent removed"); |
|
489 |
break ll; |
|
490 |
case 4: ExceptionEvent ee = (ExceptionEvent) ev; |
|
491 |
log2(" ExceptionEvent removed"); |
|
492 |
break ll; |
|
493 |
case 5: MethodEntryEvent mene = (MethodEntryEvent) ev; |
|
494 |
log2(" MethodEntryEvent removed"); |
|
495 |
break ll; |
|
496 |
case 6: MethodExitEvent mexe = (MethodExitEvent) ev; |
|
497 |
log2(" MethodExiEvent removed"); |
|
498 |
break ll; |
|
499 |
case 7: ModificationWatchpointEvent mwe = (ModificationWatchpointEvent) ev; |
|
500 |
log2(" ModificationWatchpointEvent removed"); |
|
501 |
break ll; |
|
502 |
case 8: StepEvent se = (StepEvent) ev; |
|
503 |
log2(" StepEvent removed"); |
|
504 |
break ll; |
|
505 |
case 9: ThreadDeathEvent tde = (ThreadDeathEvent) ev; |
|
506 |
log2(" ThreadDeathEvent removed"); |
|
507 |
break ll; |
|
508 |
case 10: ThreadStartEvent tse = (ThreadStartEvent) ev; |
|
509 |
log2(" ThreadStartEvent removed"); |
|
510 |
break ll; |
|
511 |
case 11: VMDeathEvent vmde = (VMDeathEvent) ev; |
|
512 |
log2(" VMDeathEvent removed"); |
|
513 |
break ll; |
|
514 |
case 12: VMStartEvent vmse = (VMStartEvent) ev; |
|
515 |
log2(" VMStartEvent removed"); |
|
516 |
break ll; |
|
517 |
case 13: WatchpointEvent we = (WatchpointEvent) ev; |
|
518 |
log2(" WatchpointEvent removed"); |
|
519 |
break ll; |
|
520 |
||
521 |
default: log3("ERROR: default case for casting event"); |
|
522 |
returnCode = returnCode3; |
|
523 |
break ll; |
|
524 |
} // switch |
|
525 |
} catch ( ClassCastException e ) { |
|
526 |
} // try |
|
527 |
} // ll: for (int ifor =0; ; ifor++) |
|
528 |
} // for (; ev.hasNext(); ) |
|
529 |
} |
|
530 |
} |
|
531 |
if (returnCode == returnCode0) |
|
532 |
log2(" : eventSet == null: EventQueue is empty"); |
|
533 |
||
534 |
return returnCode; |
|
535 |
} |
|
536 |
} |