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.
[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.
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.
P2? You must be joking. Any justification for that? Crash? Deadlock? Code corruption? Data loss? I don't see any of these.
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.
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.
Cannot reproduce.
Verified in dev-20050801, JDK 1.6.0 b45.