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 154606 - Allow easy fixing of missing or wrong package statement
Summary: Allow easy fixing of missing or wrong package statement
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
: 132466 (view as bug list)
Depends on:
Blocks: 154423
  Show dependency tree
 
Reported: 2008-12-04 14:14 UTC by David Strupl
Modified: 2009-01-15 13:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Strupl 2008-12-04 14:14:14 UTC
If the package statement is missing or does not correspond to the position of the .fx file in the directory structure
strange things can happen. The end user should be offered a quick fix to correct this problem.
Comment 1 David Strupl 2008-12-10 10:50:49 UTC
*** Issue 132466 has been marked as a duplicate of this issue. ***
Comment 2 Alexandr Scherbatiy 2008-12-18 11:22:29 UTC
------- Additional comments from av Thu Apr 24 06:56:38 +0000 2008 -------

Let's try with Java project:

1. Create new _Java_ project
2. change the package name to something that doesn't exist
3. Press F9 to compile the file
It builds successfully.

The only difference between Java and JavaFX is that Java gives user a hint about the package.
Comment 3 David Strupl 2008-12-18 12:29:10 UTC
You forgot the last step:

4. Try to run your app and it will fail. In FX silently (as far as I remember).
Comment 4 Rastislav Komara 2009-01-13 09:59:03 UTC
Implemented.
Comment 5 Alexandr Scherbatiy 2009-01-15 13:11:10 UTC
verified in JavaFX_NB_Plugin_Franca_NB_65_fixes_cont:  #32 15-Jan-2009 13:35:24