mryozo16 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Exception unless names are fully specified #260

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Run the attached AliasTest_Bug.js through jsdoc.  It contains three
separate classes, each of which contains a field named "row."  You'll see:

<CMD LINE> java -jar jsrun.jar app\run.js clientapi\AliasTest_Bug.js
-t=templates\js
doc
>> WARNING: The symbol 'rows' is documented more than once.
>> WARNING: Overwriting symbol documentation for: rows.
>> WARNING: The symbol 'rows' is documented more than once.
>> WARNING: Overwriting symbol documentation for: rows.
>> WARNING: Trying to document Test1 as a member of undocumented symbol
LABKEY.Q
uery.
>> WARNING: Trying to document Test2 as a member of undocumented symbol
LABKEY.Q
uery.
js: uncaught JavaScript runtime exception: TypeError: Cannot set property
"alias
" of undefined to "LABKEY.Query.Test2#rows"

What is the expected output?

Expect: The outcome generated by AliasTest.js, which contains a workaround.
 The workaround is to fully specify the @name for the instance variables in
the class.  For example, use:  

* @name   LABKEY.Query.Test1#rows

...instead of...

* @name   rows

What version of the product are you using? On what operating system?

v2.3.2 on Windows.

Original issue reported on code.google.com by ekaynel...@gmail.com on 16 Oct 2009 at 2:05

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by micmath on 8 Nov 2009 at 9:16

GoogleCodeExporter commented 8 years ago
This is a bug that affects any documentation of a symbol using @name and 
@memberOf. The fix was committed 
in revision 820.

Thank you for reporting this.

Original comment by micmath on 8 Nov 2009 at 9:31