Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337499

Summary: Assorted NPEs in SWT_AWT when used in Plugin2
Product: [Eclipse Project] Platform Reporter: Scott Kovatch <skovatch>
Component: SWTAssignee: Scott Kovatch <skovatch>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chrriis
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Test case none

Description Scott Kovatch CLA 2011-02-17 17:57:04 EST
Received via email:

===========================================

- Unzip "TestSWTAWTApplet.zip"
- cd TestSWTAWTApplet
- ant -f build.xml
- Go to "/Applications/Utilities/Java Preferences.app" and check "Run
applets in their own process".
- open SWTAWTAppletMac.html

It uses SWT 3.7M5, 32-bit (JVM is forced with -d32, even in 64-bit systems). The default test page is a full-screen Flash animation with sound, but you can change it to anything you like in the HTML applet params. e.g.: "http://www.adobe.com/software/flash/about/" to actually see html and Flash in the same page.

===========================================

When 'Run applets in their own process' is checked you are using the new Plugin2 which runs applets in their own process instead of in the browser. Once you do that:

- Click on the 'Some Swing  Button' 
- Hold down the command key and a window title bar should appear at the top of the applet. 
- Drag the window away from the browser.
- Now drag the window back into the browser.
===> Check the Java console. You should see exceptions. The applet should also stop updating and stop responding to clicks.
Comment 1 Scott Kovatch CLA 2011-02-17 18:05:32 EST
Created attachment 189242 [details]
Test case
Comment 2 Scott Kovatch CLA 2011-02-17 18:08:46 EST
This particular problem is now fixed > 20110217. Note that the Flash content doesn't draw when the applet is in the browser window. Still not sure why that happens.