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 12148 - returned type not updated in synchronization
Summary: returned type not updated in synchronization
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-13 16:15 UTC by onivy
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 onivy 2001-05-13 16:15:34 UTC
after changing the signature of a method in an interface the java module 
recognized it, and even suggested the right synchronization.
the code through was not changed after I clicked on the "process all" button.

to reconstruct(example):
1. add the following interface:
public interface A {
    public void func();
}
2. add the following class:
public class B implements A{
    public void func() {}
}
3. change A to :
public interface A {
    public int func();
}
4. after the synchronization dialog appears click on the "process all" button, 
or select the change from the list and click on the "process" button.

results: the code of B does not change.

note: passed arguments are still updated.
found on 3.2 release (b39)
Comment 1 Svata Dedic 2001-05-14 15:31:30 UTC
That it easy - detection is OK, but update I've forgot to set return type in 
the update routine. Sorry.
Fixed in dev trunk, making a 3.2.1 candidate (obscuring user experience with 
code sync., low risk ~1 line fix).

CVS info:
/cvs/java/src/org/netbeans/modules/java/codesync/ClassDependencyImpl.java,v  
<--  ClassDependencyImpl.java
new revision: 1.14; previous revision: 1.13
Comment 2 Jan Becicka 2001-05-30 16:50:42 UTC
[dev-199]
Comment 3 Jan Becicka 2001-06-19 15:15:56 UTC
[ffj30] verified
Comment 4 Quality Engineering 2003-07-01 13:18:45 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.