-
Bug
-
Resolution: Fixed
-
P3
-
6, 6u10, 7
-
b64
-
generic, x86
-
generic, windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2157252 | 6u10 | Peter Zhelezniakov | P3 | Closed | Fixed | b10 |
Java plugin loads many Swing classes even if the applet does not use Swing, and Java console is off.
I configured plugin to run hprof (-Xrunhprof:heap=dump), and set 'Do not start console' in Advanced/Java console. Though my applet was AWT-only, 66 Swing classes were loaded - see attached hprof.txt.
I used Firefox2 and JDK 7 b17 on Linux, and the following applet:
import java.applet.Applet;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class T extends Applet {
public void start() {
final Frame f = new Frame("100% AWT");
f.add(new Button("Hit me if you can!"));
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent ev) {
System.out.println("Exiting!");
f.setVisible(false);
f.dispose();
}
});
f.pack();
f.setVisible(true);
}
}
I configured plugin to run hprof (-Xrunhprof:heap=dump), and set 'Do not start console' in Advanced/Java console. Though my applet was AWT-only, 66 Swing classes were loaded - see attached hprof.txt.
I used Firefox2 and JDK 7 b17 on Linux, and the following applet:
import java.applet.Applet;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class T extends Applet {
public void start() {
final Frame f = new Frame("100% AWT");
f.add(new Button("Hit me if you can!"));
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent ev) {
System.out.println("Exiting!");
f.setVisible(false);
f.dispose();
}
});
f.pack();
f.setVisible(true);
}
}
- backported by
-
JDK-2157252 Plugin loads Swing classes
- Closed
- duplicates
-
JDK-6641440 Need a way to set a GTK LAF property externally
- Closed
-
JDK-6461817 UI for the Java Console is initialized several times
- Closed
- relates to
-
JDK-6649414 New plug-in continues to load Swing classes
- Closed
-
JDK-6641564 Break dependence on javax.swing.ImageIcon in new plugin
- Closed