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 43588 - Java synchronization not working
Summary: Java synchronization not working
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 16:56 UTC by _ rkubacki
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exceptions' stacktraces. (8.40 KB, text/plain)
2004-05-27 09:15 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-05-19 16:56:49 UTC
refactoring build from May 18, Linux, jdk1.4.2

quite simple project with an interface and a bean
implementing this interface. When I add a method
to the interface there is no synchronization dialog.

I can only invoke Synchronize dialog manualy. It
contains correct set of updates. (BTW: attempt to
close the dialog with cancel produces an exception)
Comment 1 Martin Matula 2004-05-24 23:29:01 UTC
Works for me in the current builds. My scenario was - add the
interface, add a class, synchronize it with the interface. Then add a
new method to the interface - I got the synchronization dialog
immediately. Also changing the methods in the interface (adding a
parameter) triggers the synchronization dialog appearance.
The exception when closing the synchronization dialog fixed.

Checking in org/netbeans/modules/java/JavaConnections.java;
/cvs/java/src/org/netbeans/modules/java/JavaConnections.java,v  <-- 
JavaConnections.java
new revision: 1.41.104.4; previous revision: 1.41.104.3
done
Comment 2 ehucka 2004-05-27 09:15:09 UTC
This feature doesn't work right. Exceptions are throwing,
synchronization is not done and sometimes it puts wrong code like
"putList(java list)" (expected "putList(java.util.List list)").
Comment 3 ehucka 2004-05-27 09:15:46 UTC
Created attachment 15315 [details]
Exceptions' stacktraces.
Comment 4 Martin Matula 2004-05-27 09:27:36 UTC
Is it possible to provide exact steps to how to reproduce it or the
behavior seems to be non-deterministic?
Comment 5 ehucka 2004-05-27 09:35:40 UTC
Synchronization fails when an existing class definition is changed.
For example: I created a class which implements interface1 (invoke
synchronization and save) than I replaced interface1 to interface2 and
invoked synchronize - exception is thrown.
Comment 6 Tomas Hurka 2004-06-22 08:41:22 UTC
Moved to new subcomponent java/javacore.
Comment 7 Daniel Prusa 2004-06-24 16:02:02 UTC
The testcase described above works for me in the current builds.
Comment 8 Quality Engineering 2007-09-20 09:55:18 UTC
Reorganization of java component