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 56961 - [41cat] "Go to Source" not working properly after adding lines
Summary: [41cat] "Go to Source" not working properly after adding lines
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 00:20 UTC by johnzoet
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 johnzoet 2005-03-25 00:20:53 UTC
[ 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.
Comment 1 Dusan Balek 2005-03-31 09:10:31 UTC
Wrong position is returned from
JavaMetamodel.getManager().getElementPosition(...). Reassigning to javacore.
Comment 2 Dusan Balek 2005-03-31 09:11:10 UTC
Wrong position is returned from
JavaMetamodel.getManager().getElementPosition(...). Reassigning to javacore.
Comment 3 Martin Matula 2005-03-31 10:23:31 UTC
OK, I've successfully reproduced this issue - it seems it occurs if the file is
parsed before it is opened in the editor.
Comment 4 Martin Matula 2005-03-31 11:27:29 UTC
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
Comment 5 Quality Engineering 2007-09-20 12:09:18 UTC
Reorganization of java component