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.
[ JDK VERSION : 1.5.0_02 ] Although compilation cpk,[;etes without errors, attempts to rename my local variable q2 fail with the following error: "The original element being refactored is not available. It was deleted or signficantly changed. Usages can not be collected." The IDE log contains no exceptions. Source in question is public int getTodaySize() throws CobblerException { String q2 = "select sum(sf.size) from SourceFile sf where audited = true and sf.project = :project and changedate like :today"; Session session = Setup.getSessionFactory().openSession(); Integer lines = (Integer) session.createQuery(q2) .setLong("project", getId()) .setString("today", "2005-05-19") .uniqueResult(); session.close(); return lines == null ? 0 : lines.intValue(); }
I've seen this on very recent build too, but don't know how to reproduce.
In 4.1 renaming a local variable through refactoring consistently fails with the error message "The name has not been modified. No Changes will be performed." If this action is not support then: 1) the error message should say so; and 2) It should be done as an enhacnement.
Fixed in 4.2