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 - IllegalArgumentException: Cannot decrease processed workunit count (0) to lower value than before (1)
Summary: IllegalArgumentException: Cannot decrease processed workunit count (0) to low...
Status: VERIFIED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Kris Richards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-10 13:24 UTC by Alexandr Scherbatiy
Modified: 2007-06-13 13:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
RandomValuesGenerator.java (1.44 KB, text/plain)
2007-04-10 13:25 UTC, Alexandr Scherbatiy
Details
IDE log (42.97 KB, text/plain)
2007-04-10 13:31 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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