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 99690 - Need way to force-refresh all class information in a project
Summary: Need way to force-refresh all class information in a project
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-02 14:44 UTC by ngollan
Modified: 2008-02-25 16:08 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 ngollan 2007-04-02 14:44:17 UTC
NetBeans desperately needs a simple way to just dump all accumulated information
about classes in a project and rebuild that information.

When changing a class or interface, the IDE sometimes doesn't manage to update
everywhere, leading to erroneous error messages like mismatching types, missing
method overloads, etc.

For example, when adding methods to an interface definition, the IDE doesn't
realise that the functions have been added and marks calls as errors, even
though the compiler has no problems at all.

So far, the only way to resolve those issues seems to be to re-import the
project from scratch, losing all settings made. I tried deleting large parts of
~/.netbeans and the nbproject and build directories, which didn't change anything.
Comment 1 Jiri Prox 2007-04-02 16:13:56 UTC
Have you tried to delete ~/.netbeans/5.5/var/cache/mdrstorage directory? This is
the only place, where all the information about classes are stored.
Comment 2 ngollan 2007-04-02 16:37:40 UTC
I tried that. I even tried deleting the whole var/cache directory.
Comment 3 Jiri Prox 2007-04-02 17:37:11 UTC
Then we'll need more info for investigating the problem.
Can you post exact steps to reproduce? What kind of project do you use?
Comment 4 ngollan 2007-04-11 09:37:26 UTC
I can't seem to reproduce the problem anymore.

Anyway: when the problem occurred, I had imported the Network Calculator
available at:
http://disco.informatik.uni-kl.de/content/Downloads

as a "Java Project with existing sources", and after some other changes,
extended the interface "PWLFunction" by some methods, implemented the methods in
the classes implementing the interface, and used those methods in FunctionView 
after the cast on line 182 in FunctionView.java. The IDE consequently failed to
register the updated interface and marked every use of the new methods *only in
FunctionView*. The problems even persisted after re-importing the sources after
cleaning out NetBeans data, and even after deleting large parts of the
user-specific NetBeans configuration.

I should say that the source/project directory was on an NFS mount. May there
have occurred a problem because of this? (Slight timestamp problems, locking, ...)
Comment 5 Quality Engineering 2007-09-20 09:49:59 UTC
Reorganization of java component
Comment 6 Jan Becicka 2008-02-25 16:08:42 UTC
This issue is not valid in current builds any more. Java support was completely
redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.