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 132466

Summary: Editor should give user a hint about bad package
Product: javafx Reporter: Lark Fitzgerald <lfitzgerald>
Component: UnsupportedAssignee: David Strupl <dstrupl>
Status: VERIFIED DUPLICATE    
Severity: blocker Keywords: RELNOTE
Priority: P2    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description Lark Fitzgerald 2008-04-09 22:22:40 UTC
Product Version: NetBeans IDE Dev (Build 200804010004)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Plugin: CB#334 (2008-04-09_17-34-05.zip)

Project compiles successfully with bad package.

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

It builds successfully.
Comment 1 Alexei Mokeev 2008-04-10 08:08:44 UTC
Hi Lark,
Please verify with pure compiler from command line and file a bug against compiler if it is reproducible.
Thanks.
Comment 2 Lark Fitzgerald 2008-04-10 14:52:39 UTC
Logged issue: http://openjfx.java.sun.com/jira/browse/JFXC-1075
Comment 3 Alexei Mokeev 2008-04-15 16:42:20 UTC
Thanks.
In this case we can just wait for the fix on compiler side.
Comment 4 Alexei Mokeev 2008-04-23 14:23:24 UTC
Technically we can give an advice to the user that package name doesn't correspond to the folder.
Comment 5 Lark Fitzgerald 2008-04-23 21:33:43 UTC
I agree this should be release noted but I do not think fixing it is a enhancement.
Comment 6 Alexei Mokeev 2008-04-24 07:56:38 UTC
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.

From language point of view you can keep your source files where you want. So my previous comment about prohibiting this
on compiler side was not totally correct: Connection between package name and directory name should be tracked on IDE side.

  
Comment 7 David Strupl 2008-12-10 10:50:50 UTC

*** This issue has been marked as a duplicate of 154606 ***
Comment 8 Alexandr Scherbatiy 2008-12-18 11:23:13 UTC
duplicate of issue 154606 
Comment 9 David Strupl 2011-10-19 12:02:16 UTC
Cleaning bugzilla categories ....