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 49018 - Class synchronization with interface does not work for WS
Summary: Class synchronization with interface does not work for WS
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 16:56 UTC by Martin Balin
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 Martin Balin 2004-09-14 16:56:45 UTC
[build 040914, J2SE 5.0 RC]
When creating WebService using our template I 
was not able to get class implementing 
WSInterface to be synchronized with that 
interface.

1. Create WS using template in Web project
2. Turned on Java classes synchronization
3. Added method into interface.
4. Added implements xyInterface into 
implementing class.
5. class statement is underlined, but 
synchronization dialog does not appear.

This works for standard Java project.
Comment 1 Roderico Cruz 2004-09-27 04:36:26 UTC
I was able to reproduce this on regular classes. I don't think this is
web service specific.
Comment 2 Petr Blaha 2004-10-13 10:45:41 UTC
Move issues from temprorary component.
Comment 3 smil 2004-12-02 16:40:42 UTC
Hi, 

I had problems with missing interfaces as well, I think they are in
connection with this issue: 

At code-completion interface methods are missing. 

Eg. 

org.apache.log4j.AppenderSkeleton implements Appender 

But during code completion 'close', and 'layoutRequired' methods are
not present (and not syncronised as well) ('close' and
'layoutRequired' are defined by Appender interface but not implemented
by AppenderSkeleton)

It seems, that the code parser ignores non-implemented interface methods.

I've tried to override these methods with the Override tool, but no
success. Appender was not even in the list as super class!

With 'find source' I was unable to jump to the source of Appender as well.

I hope i could help resolving this issue.
Comment 4 _ ludo 2005-01-20 01:46:17 UTC
moving to java area. Not j2ee specific
Comment 5 _ ludo 2005-01-20 01:47:38 UTC
moving to java area. Not j2ee specific
Comment 6 Martin Matula 2005-01-20 14:48:00 UTC
Dan, please check whether this is still reproducible.
Comment 7 Daniel Prusa 2005-02-21 16:15:10 UTC
This problem is still reproducible, however, the synchronization does
not work automatically untill the source to synchronize is not
modified. Since modification, everything is ok. The reason is that
whenever a source containing class implementing/extending another
classes is created (from a template), dependences of the source on
supertypes are not registered (currently, they are being registered
into file attributes). The registration is done when the source is
modified first time.

In future, we want to remove storing denedency info into file
attribues. It will require obtain the needed information from java
model (but it could be slow) or to change behaviour of the automatic
synchronization.

Decreasing priority to P4, since the synchronization is ok after the
source is modified.
Comment 8 Jan Becicka 2005-08-22 15:55:46 UTC
Tools->Synchronize was removed. This bug is not valid any more.