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 44652 - Resolve Reference Problems - menu item doesn't vanish
Summary: Resolve Reference Problems - menu item doesn't vanish
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-06-09 16:34 UTC by zikmund
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 zikmund 2004-06-09 16:34:08 UTC
Build 200406082045

1) Open a project which uses library not defined
in your Library manager
2) Reference problem dialog appears
3) Resolve the problem by creating the library
4) Look at project's context menu
5) ERROR:
"Resovle reference problems..." menu item is still
there. I'd expect it will vanish on closing The
"Resolve Reference Problems" dialog if no any
problem exists.
6) Invoke the dialog again
7) ERROR:
There's no any reference when dialog opened, but
the "Resolve..." button is not disabled. Pressing
the button causes exception
(ArrayIndexOutOfBoundsException) which doesn't
affect next work with IDE.
Comment 1 Jesse Glick 2004-06-09 20:05:06 UTC
If you have exceptions, we need your log file (or at least the stack
trace).
Comment 2 David Konecny 2004-06-10 09:01:32 UTC
I'm disabling action, but for some reason it stays enabled.
Comment 3 David Konecny 2004-06-11 08:34:15 UTC
Fixed in:
src/org/netbeans/modules/java/j2seproject/ui/J2SEPhysicalViewProvider.java;
new revision: 1.22; previous revision: 1.21
Comment 4 zikmund 2004-06-16 16:34:27 UTC
Verified in J2SE project.

BTW the fix doesn't solve WebApp project problem + it caused probably
more problems in WebApps -- see issue #45032. Am I right?

The dependency & libraries code in J2SE/WebApp project differs, why?
Comment 5 David Konecny 2004-06-16 16:46:33 UTC
Re. Webapps: it is different problem. Some code was initially
copy&pasted from J2SE project to WebApp project. Most probably the fix
I did in this issue should be applied also to Web proj. You can find
CVS log above.