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 60515 - Cannot rename local var in catch clause (CCE: Catch$Impl cannot be cast to SemiPersistentElement)
Summary: Cannot rename local var in catch clause (CCE: Catch$Impl cannot be cast to Se...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-26 02:25 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (1.19 KB, text/plain)
2005-06-26 02:42 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-06-26 02:26:00 UTC
I had some situation like

Something e = ...;
...
try {
   ...
} catch (Exception e) {
   handle(e);
}

Obviously the second usage of 'e' was illegal, so I selected it in the catch
clause and chose Rename. The rename did not succeed (or only succeeded on the
decl and not the usage?) and a CCE was thrown.
Comment 1 Jesse Glick 2005-06-26 02:42:12 UTC
Created attachment 22899 [details]
Stack trace
Comment 2 Tomas Hurka 2005-06-27 09:42:29 UTC
Thanks for catching it.
Fixed in trunk.
Checking in org/netbeans/modules/javacore/jmiimpl/javamodel/ElementNavigator.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ElementNavigator.java,v  
<--  ElementNavigator.java
new revision: 1.5; previous revision: 1.4
done
Comment 3 Quality Engineering 2007-09-20 09:48:56 UTC
Reorganization of java component