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 7572 - It is possible insert package name instead of interface in template wizard.
Summary: It is possible insert package name instead of interface in template wizard.
Status: CLOSED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P4 enhancement (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-04 13:40 UTC by pzajac
Modified: 2007-09-26 09:14 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 pzajac 2000-09-04 13:40:16 UTC
[1091]
Reproduction:
1) Open template wizard for class.
2) On step "Add interface and class" click to add interface
3) Type name of package instead of interface name and click ok

Package is added into "Implemented interfaces" list.
It is beauty when is showed message that it is not interface like it is done
for class.
Comment 1 Svata Dedic 2000-09-04 13:49:59 UTC
First, I cannot verify that some name identifies a package. It would be easy for
mounted filesystems, but not so easy for IDE's CLASSPATH. Maybe, if the core
would mount all classpath's roots as filesystems the test would be possible.
That leaves me with two states:
- either the name user types can be resolved to a valid class or interface, and
the appropriate icon is shown
- or it cannot be resolved for some reason and then I have to suppose that "the
user is right" and allow the name to be entered.
A special icon (like class/interface icon with a question mark) can be created
for a superclass or interfaces that can't be resolved from the names that user
has entered.
Comment 2 Svata Dedic 2000-09-04 14:05:59 UTC
*** Bug 7574 has been marked as a duplicate of this bug. ***
Comment 3 Quality Engineering 2003-07-01 13:18:43 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.