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

Summary: Method Navigator shows ? for type; incorrectly shows variable
Product: javascript Reporter: Lark Fitzgerald <lfitzgerald>
Component: EditorAssignee: issues@ide <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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 ***