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 ] When I add some lines of code to a file like: => if (buildingLocationID == null) { populateNewForm(); return; } => and next click on populateNewForm, then the cursor goes to the old position of method populateNewForm. The cursor should go to the new position.
Wrong position is returned from JavaMetamodel.getManager().getElementPosition(...). Reassigning to javacore.
OK, I've successfully reproduced this issue - it seems it occurs if the file is parsed before it is opened in the editor.
Fixed. Checking in src/org/netbeans/modules/javacore/JMManager.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v <-- JMManager.java new revision: 1.103; previous revision: 1.102 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/FeatureImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/FeatureImpl.java,v <-- FeatureImpl.java new revision: 1.36; previous revision: 1.35 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v <-- ResourceImpl.java new revision: 1.78; previous revision: 1.77 done
Reorganization of java component