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 86758 - Hang on attempt to create any uml project
Summary: Hang on attempt to create any uml project
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Craig Conover
URL:
Keywords: REGRESSION
Depends on:
Blocks: 86645
  Show dependency tree
 
Reported: 2006-10-09 11:22 UTC by Sergey Petrov
Modified: 2006-10-10 09:23 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 Sergey Petrov 2006-10-09 11:22:27 UTC
reproducible with nbrc1+uml061007 or uml061008

steps:
1. start ide
2. invoke new project wizard
3. select any of UML|* projects
4. press next
ide hangs
Comment 1 Craig Conover 2006-10-09 19:11:45 UTC
Found an endless loop that is supposed to create the new UML project name.
However, I'm not sure how this ever worked because the loop has no exit path, so
this code must have never been exercised in the past.

  while (projectName == null)
    baseCount++;

That's it. Unless another thread is running to change the projectName's value to
non-null, then this will never exit once entered.
Comment 2 Craig Conover 2006-10-09 21:07:42 UTC
Refactored and rewrote the logic to generate a unique project name and
centralized it for all to use same method.

org.netbeans.modules.uml.project.ProjectUtil
    public static String createUniqueProjectName(
        File location, String baseName, boolean tryNoIndexFirst)
Comment 3 Andrew Korostelev 2006-10-10 09:23:15 UTC
verified with all-nbms-griffin-061010.zip on NB5.5 RC1