Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » "static" confusion in JSDT auto completion proposals
"static" confusion in JSDT auto completion proposals [message #759177] Sun, 27 November 2011 07:01
Philippe Marschall is currently offline Philippe Marschall
Messages: 120
Registered: July 2009
Senior Member
Hi

I ran across what I think are two bugs in the JSDT auto completion.

When I create an empty JavaScript project with a JavaScript file that
just contains the following line:

DOMException;

I get no auto completion proposals on DOMException at all. Once I add
the following line below:

var e = new DOMException();

I get the auto completion proposals on DOMException on the first line
that I would expect (INDEX_SIZE_ERR, INUSE_ATTRIBUTE_ERR, …). This is
the first bug.

The second bug is that on "e" not only do I get the proposals that I
should get (code) but I also get the properties of the constructor
(INDEX_SIZE_ERR, INUSE_ATTRIBUTE_ERR, …). That seems to some JDT legacy
that kicks in. In JavaScript you can't access constructor properties
from an instance. I filed a bug for this [1] some time ago.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=343053

Cheers
Philippe
Previous Topic:Timeout calling webservice
Next Topic:jsdoc, arrays, and @type
Goto Forum:
  


Current Time: Wed Aug 20 16:43:10 EDT 2014

Powered by FUDForum. Page generated in 0.01519 seconds