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 177840 - "New/Classic Applet" suggests to create applet in <default package>
Summary: "New/Classic Applet" suggests to create applet in <default package>
Status: VERIFIED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-30 05:17 UTC by dkuzmin
Modified: 2009-12-02 14:59 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 dkuzmin 2009-11-30 05:17:05 UTC
Create a new "Classic Applet Project". In project window right click on project name and select "New", "Classic Applet". In "New Classic Applet" package name is empty. There is single package in classic projects, so this is most likely wrong value.

Build used #34.
Comment 1 _ tboudreau 2009-12-01 13:02:43 UTC
This is typical behavior for all NetBeans projects.  The normal user pattern is to right click the package they want to create in.  At the root of the project, there is no package.

There is no nice way to warn the user ahead of time, because the package chooser is provided to us by the Java Project API (there is a flag to tell it to *warn* about the default package, which does not seem to work - will file separately).

It will now refuse, when the user presses Finish, to create the applet if the selected package is the default package.  

Fixed in main/ edf217c4d331
Comment 2 Quality Engineering 2009-12-02 14:59:22 UTC
Integrated into 'main-golden', will be available in build *200912021400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/edf217c4d331
User: tboudreau@netbeans.org
Log: #177840 - Don't allow applet template to be instantiated in default package