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 38773 - Wizards of classes - package name allows more dots
Summary: Wizards of classes - package name allows more dots
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 17:58 UTC by zikmund
Modified: 2009-12-21 04:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (1.65 KB, patch)
2004-02-16 09:25 UTC, jdi
Details | Diff
same case : use of method "StringTokenizer". (2.68 KB, patch)
2004-06-09 11:10 UTC, jdi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-01-14 17:58:45 UTC
How to reproduce:
1) Invoke Filter/Server wizard
2) Type Class Name with leading dot(s) ".", ending
dot(s) or middle duplicated dots, eg.:
".com..myCompany.com.."
3) ERROR:
name is not qualified as bad, BUT it works
properly as class name "com.myCompany.com"
Comment 1 jdi 2004-02-16 09:25:32 UTC
Created attachment 13442 [details]
proposed patch
Comment 2 jdi 2004-02-16 09:31:07 UTC
Evaluation:
Issue is in the StringTokenizer() method.
For example:
String st = "..com...mycompany....Servlets...newServlet.....";
	StringTokenizer(st,".") -> 
	com
	mycompany
	Servlets
	newServlet

that in our case it is wrong.
Therefore i have tried to replace it.
Comment 3 Milan Kuchtiak 2004-06-01 16:11:57 UTC
Fixed for Promo-D
- dots are not allowed in java family wizards

Thanks for the patch anyway.
Comment 4 zikmund 2004-06-08 16:01:58 UTC
Still reproducible in package combo box in all class wizards.
Reopening & reasigning to java module.
Comment 5 jdi 2004-06-09 11:10:52 UTC
Created attachment 15587 [details]
same case : use of method "StringTokenizer".
Comment 6 Milan Kuchtiak 2004-06-29 15:41:36 UTC
It seems to be working now.
Comment 7 zikmund 2004-06-30 16:54:57 UTC
Multi dots are still not qualified as wrong package name.
Reopening.
Comment 8 Max Sauer 2005-08-10 09:24:12 UTC
Still reproducible in 200508091800.

Steps to reproduce:
---------------
1)In Explorer, right click a project and add new java package
2)Insert a name like this: com...smtg..alfa
--> This would lead to a new package created, named com.smtg.alfa
Comment 9 Quality Engineering 2009-12-21 04:40:32 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team