Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337499 - Assorted NPEs in SWT_AWT when used in Plugin2
Summary: Assorted NPEs in SWT_AWT when used in Plugin2
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Scott Kovatch CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 17:57 EST by Scott Kovatch CLA
Modified: 2011-07-14 19:03 EDT (History)
1 user (show)

See Also:


Attachments
Test case (1.48 MB, application/octet-stream)
2011-02-17 18:05 EST, Scott Kovatch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.