"static" confusion in JSDT auto completion proposals [message #759177] |
Sun, 27 November 2011 12:01 |
Philippe Marschall Messages: 121 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
|
|
|
Powered by
FUDForum. Page generated in 0.02859 seconds