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 217577 - Support for @type tag
Summary: Support for @type tag
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on: 214205
Blocks: 217696
  Show dependency tree
 
Reported: 2012-08-29 12:42 UTC by Eccenux
Modified: 2012-09-14 11:46 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eccenux 2012-08-29 12:42:26 UTC
I see no way of providing types for variables (except for setting it's value from a constructor).

It would be nice if you would support @type tag.

And so the following should set `Date` type for `test`:
  /**
   * @type Date
   */
  var test;
Comment 1 Martin Fousek 2012-09-04 14:46:48 UTC
Actually this is already fixed. BTW, for the usage of Code Completion there is still blocker, that CC after properties offers just Object's fields - see issue #214205.
Comment 2 Vladimir Riha 2012-09-06 09:01:02 UTC
What do you mean by fixed? There is generation of this comment for variables but Navigator does not show the type
Comment 3 Martin Fousek 2012-09-06 09:49:08 UTC
(In reply to comment #2)
> What do you mean by fixed? There is generation of this comment for variables
> but Navigator does not show the type

I think that the rest should be resolved by fixing issue #214205. So I'm keeping this opened for verification then, but there is problem with properties generally I think.
Comment 4 Martin Fousek 2012-09-13 07:17:17 UTC
The issue wasn't related to issue #214205 as I thought. It looks to be working already properly - navigator, CC.
Comment 5 Vladimir Riha 2012-09-14 11:46:21 UTC
v.

Product Version: NetBeans IDE Dev (Build 201209140001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)