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 101432 - Method Navigator shows ? for type; incorrectly shows variable
Summary: Method Navigator shows ? for type; incorrectly shows variable
Status: RESOLVED DUPLICATE of bug 103857
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
: 101653 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-17 18:31 UTC by Lark Fitzgerald
Modified: 2009-02-27 14:26 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 Lark Fitzgerald 2007-04-17 18:31:40 UTC
Build 200704170100

Steps (just enough to reproduce):
1. create Web > Visual Web project
2. Add palette > basic > image to designer
3. create javascript file called testMethod.js and add at least one of the 
following methods source:

function showYes() {
   var domNode = document.getElementById("form1:image1");
   domNode.setProps({
      src:"/simple/resources/choice-yes.gif"
   });
} 

function showNo() {
   var domNode = document.getElementById("form1:image1");
   domNode.setProps({
      src:"/simple/resources/choice-no.gif"
   });
}

function showOriginal() {
   var domNode = document.getElementById("form1:image1");
   domNode.setProps({
      src:"/simple/resources/choice-cancel.gif"
   });
}
4. look at the navigator window and you see:

showYes()
-domNode
-?
--src
showNo()
-domNode
-?
--src
showOriginal()
-domNode
-?
--src

Either the ? should have a value or the src shouldn't be there (or neither 
should be there)
Comment 1 Jan Jancura 2007-04-17 21:53:15 UTC
I am not sure if its bug. Class definition in your case has no name, so we are
not able to display some reasonable name for it. We can easily ignore such
definitions. But on the other hand I have already seen sources that contained
unnamed elements only. For example many Google sources looks like:

function () {
    function foo () {
        ...
    }
    ....
} ()

So, I do not want ignore such elements. But may be we can find some better name
for them.
Comment 2 Jan Jancura 2007-04-27 14:18:02 UTC
*** Issue 101653 has been marked as a duplicate of this issue. ***
Comment 3 Daniel Prusa 2007-07-10 15:15:02 UTC

*** This issue has been marked as a duplicate of 103857 ***