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 60598 - Cannot undo generated code
Summary: Cannot undo generated code
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2005-06-29 11:26 UTC by Milan Kubec
Modified: 2007-09-26 09:14 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 Milan Kubec 2005-06-29 11:26:59 UTC
[dev-200506281800, JDK 6.0 b42]

Steps to reproduce:
1) Create statement that throws Exception
2) Invoke Surround With try-catch on the statement
3) Try to do UNDO
ERROR: nothing is undoed.
Comment 1 Milan Kubec 2005-06-29 11:33:45 UTC
It seems that the problem is more serious - nothing generated can be undoed! Add
various Class Elements via Explorer and then try to undo it.
Comment 2 Jan Becicka 2005-06-30 17:39:43 UTC
P2? You must be joking. Any justification for that? Crash? Deadlock? Code
corruption? Data loss? I don't see any of these.
Comment 3 Martin Matula 2005-06-30 17:44:41 UTC
Well, if undo does not work, then it seems quite serious to me - close to data
loss, especially when we do not provide a preview of the generated code before
the user applies the changes.
Comment 4 Milan Kubec 2005-07-01 08:14:12 UTC
Martine, thanks for your answer with high insight.

I think that not being able to undo generated! source code changes (some changes
can have tens of lines of code, e.g. bean patterns) is serious error similar to
data loss.
Comment 5 Jan Becicka 2005-07-26 07:44:53 UTC
Cannot reproduce.
Comment 6 Milan Kubec 2005-08-02 11:47:15 UTC
Verified in dev-20050801, JDK 1.6.0 b45.