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 100462

Summary: IllegalArgumentException: Cannot decrease processed workunit count (0) to lower value than before (1)
Product: uml Reporter: Alexandr Scherbatiy <sunflower>
Component: Code GenerationAssignee: Kris Richards <krichard>
Status: VERIFIED WORKSFORME    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: RandomValuesGenerator.java
IDE log

Description Alexandr Scherbatiy 2007-04-10 13:24:19 UTC
Steps to reproduce:
- Reverse engineer the attached RandomValuesGenerator.java file
  into UML project
- Generate code for the UML project.
 The following exception pops up:
java.lang.IllegalArgumentException: Cannot decrease processed workunit count (0)
to lower value than before (1)

See the attached IDE log file.
Comment 1 Alexandr Scherbatiy 2007-04-10 13:25:06 UTC
Created attachment 40671 [details]
RandomValuesGenerator.java
Comment 2 Alexandr Scherbatiy 2007-04-10 13:31:38 UTC
Created attachment 40672 [details]
IDE log
Comment 3 Kris Richards 2007-04-13 06:10:29 UTC
This bug was fixed as a result other work. After the NPE was fixed, the bug could no longer be 
reproduced.

just fyi - the NPE in the bug was coming from my codegen code, so i fixed it
(i mean i fixed the NPE, not the bug, as the reason why NPE happened is that
ReverseEngineering creates Iterator<> without derivation to the Iterator ) 
viktor lapitski
Comment 4 Alexandr Scherbatiy 2007-06-13 13:50:50 UTC
verified in netbeans-hudson-trunk-649-full.zip