|
Quick Lists
|
|
Bug ID:
|
4031168
|
|
Votes
|
0
|
|
Synopsis
|
java.awt.Toolkit.getDefaultToolkit prevents main from exiting
|
|
Category
|
java:classes_awt
|
|
Reported Against
|
1.1
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4030718,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
4030718
|
|
Submit Date
|
10-FEB-1997
|
|
Description
|
This bug was found by St.Petersburg Java SQE team (by Dmitry A. Silaev).
If method java.awt.Toolkit.getDefaultToolkit is called inside of 'main' body,
finishing 'main' does not return to system prompt.
System.exit, however, works fine in this case.
Here is the example demonstrating the bug:
______________________ Test.java _________________________________
import java.awt.*;
class Test {
public static void main(String[] args){
System.out.println(Toolkit.getDefaultToolkit());
System.out.println("OK");
}
}
______________________ Output ________________________________________
% java Test
xxxxx@xxxxx
OK
^C%
______________________________________________________________________
======================================================================
|
|
Work Around
|
N/A
|
|
Evaluation
|
N/A
|
|
Comments
|
Submitted On 04-JUN-1999
asb1002
See bug 4030718 for more information (and a fix) to this bug.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |