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 87327 - Code generation action does not work the second time
Summary: Code generation action does not work the second time
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Craig Conover
URL:
Keywords: REGRESSION
Depends on:
Blocks: 86770 87012
  Show dependency tree
 
Reported: 2006-10-17 12:41 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:06 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 Alexandr Scherbatiy 2006-10-17 12:41:59 UTC
I created a class element and generate code for them.
When I changed the class element and generated code again
the source code was not updated, backuped file was not generated.

Steps to reproduce:

- Create a Java-Platform UML project
- Create a Class diagram
- Put a Class element on the diagram and name it 'MyClass'
- Generate code for the element
  The source code is generated:
  ------------------------------------------------------
  public class MyClass {
    public MyClass() {
    }
  }
  ------------------------------------------------------

- Insert an operation into the element
- Generate code for the element
  The operation is not added into the source code.
  'MyClass.java1' backup file is not created.
Comment 1 Craig Conover 2006-10-17 23:43:13 UTC
This was working last night for me, but I am able to reproduce as stated here.
Comment 2 Craig Conover 2006-10-18 00:06:55 UTC
Somehow, the code "File.separatorChar +" was inadvertantly removed from a
statement in the method body of sourceFileExists(IClassifier classifier) in
ExportCodeTask class. This caused the existing file not to be found and the path
was invalid to create a new file. As long as the file didn't already exist, Gen
Code worked.

Not sure how this happened, but all is back to normal.
Comment 3 Alexandr Scherbatiy 2006-10-18 14:03:11 UTC
verified with all-nbms-griffin-061018_27.zip nbms