Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JSDT(Validation of Unresolved Type/field/method)
JSDT [message #769630] Thu, 22 December 2011 12:44 Go to next message
Shalini Missing name is currently offline Shalini Missing name
Messages: 5
Registered: December 2011
Location: Baroda
Junior Member

In JSDT (1.2.5):
Validation of unresolved type,field and method is available.
we get error in editor for such issues if we set severity "Error" in preferences. Smile


But in latest JSDT's version (1.2.5 or 1.3.1)
We do not find these validators(Unresolved Types,Unresolved Fields,Unresolved Method) in preferences. Sad

What is the reason to disable this feature in latest version.

In anticipation for your quick reply.

Thanking You,
Shalini Gupta.

Re: JSDT [message #769827 is a reply to message #769630] Thu, 22 December 2011 18:37 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2283
Registered: July 2009
Senior Member
On 12/22/2011 7:44 AM, Shalini wrote:
> In JSDT (1.2.5):
> Validation of unresolved type,field and method is available.
> we get error in editor for such issues if we set severity "Error" in
> preferences. :)
>
> But in latest JSDT's version (1.2.5 or 1.3.1)
> We do not find these validators(Unresolved Types,Unresolved
> Fields,Unresolved Method) in preferences. :(
> What is the reason to disable this feature in latest version.
>
> In anticipation for your quick reply.

It was removed to large amounts of false positives, and many users not
knowing how to disable it (which doesn't really address the issue of the
false positives at all).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=346960#c1

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: JSDT [message #770033 is a reply to message #769827] Fri, 23 December 2011 06:21 Go to previous messageGo to next message
Shalini Missing name is currently offline Shalini Missing name
Messages: 5
Registered: December 2011
Location: Baroda
Junior Member

Thank You for your reply

Going through the code of JSDT Validation I found that both versions (i.e 1.2.3 which supports unresolved type,field,method and latest one which does not support) parse the code and found the problem of Unresolved type,field,method.

But in apis: invalidMethod, invalidField,invalidType of ProblemReporter Class ,
for version 1.2.3 it calculates severity using projectID and preference and report error on editor if severity is set to Error in preferences.

where as in latest version severity is hardcoded to ProblemSeverities.Ignore, so the problem is not reported to the editor.


Is there any way to turn on this feature through program, since i have requirement for the same in my project.

In anticipation of your reply.

Thank You,
Shalini Gupta
Re: JSDT [message #774430 is a reply to message #770033] Tue, 03 January 2012 22:53 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2283
Registered: July 2009
Senior Member
On 12/23/2011 1:21 AM, Shalini wrote:
> Is there any way to turn on this feature through program, since i have
> requirement for the same in my project.
>
> In anticipation of your reply.

No. You can still recompile that plug-in if you want to restore the
change, but there's no plan to go back and turn them on.

---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:My profile in this web site
Next Topic:WebSphere MQ Explorer
Goto Forum:
  


Current Time: Wed Oct 01 20:21:23 GMT 2014

Powered by FUDForum. Page generated in 0.01698 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software