This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 168743 - Mobile emulator starts when code contains unsupported classes
Summary: Mobile emulator starts when code contains unsupported classes
Status: VERIFIED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-17 14:04 UTC by Alexandr Scherbatiy
Modified: 2009-09-29 10:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-07-17 14:04:15 UTC
marina-netbeans-plugin: #202

  Product Version         = NetBeans IDE 6.7.1 RC (Build 200907101800)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_12-ea; Java HotSpot(TM) Client VM 11.2-b01; Sun Microsystems Inc.


Steps to reproduce:
- Create a JavaFX project
- Copy the code to the Main file:
---------------------------------------------
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.ext.swing.SwingButton;


Stage {
    title: "Application title"
    width: 250
    height: 80
    scene: Scene {
        content: [
            SwingButton {
                    text: "Swing Button"
                    action: function() {  }
            }
        ]
    }
}
---------------------------------------------

- Select the Mobile execution model

 The unsupported code marked as red

Run the project

The mobile emulator starts but shows nothing.
The mobile emulator should not start if code contains errors.
Comment 1 Adam Sotona 2009-09-23 15:55:54 UTC
Compilation and execution is JavaFX SDK responsibility. If the SDK configuration allows Mobile compilation even with
Swing then it is a bug of SDK.
Comment 2 Alexandr Scherbatiy 2009-09-29 10:23:12 UTC
See the JIRA issue: http://javafx-jira.kenai.com/browse/RT-5851