Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: R: [atf-dev] An issue with JSLint validator:org.mozilla.javascript.Undefined cannot be cast to java.lang.Double


Mastrella

It is not normal behavior, though I can believe that you are getting the error. Generally when Rhino (which ATF uses to run JSLint) throws a org.mozilla._javascript_.Undefined, it means that something has gone wrong with running JSLint. There may be another path that you are going down that needs to be patched in JSLint to work in Rhino. Though there may be something else causing the problem. I haven't seen any problems with a few HTML files that I have tried.

Fixing problems with the JSLint validator isn't a very high priority since the ATF team is planning to replace/drop the JSLint validator. You can open a bug and attached the HTML file where you are seeing the problem, but I can't guarantee that we will look at the problem before we drop support for JSLint. Performance has always been a problem with the JSLint validator, so if you have large _javascript_/html files, my recommendation is to disable the JSLint validator as described in my note below.

   Thanks
     Bob


Robert Goodman
goodmanr@xxxxxxxxxx



"MASTRELLA STEFANO" <smastrella@xxxxxxxx>
Sent by: atf-dev-bounces@xxxxxxxxxxx

07/04/2007 02:55 AM

Please respond to
AJAX Toolkit Framework discussion <atf-dev@xxxxxxxxxxx>

To
"AJAX Toolkit Framework discussion" <atf-dev@xxxxxxxxxxx>
cc
Subject
R: [atf-dev] An issue with JSLint        validator:org.mozilla._javascript_.Undefined cannot be cast to        java.lang.Double





Dear Robert,

I've installed the patched one, downloaded from sourceforge, but now I've found something new in the issue. The alert with the text "org.mozilla._javascript_.Undefined cannot be cast to java.lang.Double" came out when the JSLint Validator tries to validate a script within an html or in a jsp, but everything works fine when it tries to validate a normal _javascript_ module (.js).

I don't know if this is a normal behaviour.

Thanks
Stefano

________________________________________
Da: atf-dev-bounces@xxxxxxxxxxx [mailto:atf-dev-bounces@xxxxxxxxxxx] Per conto di Robert Goodman
Inviato: martedì 3 luglio 2007 17.49
A: AJAX Toolkit Framework discussion
Oggetto: Re: [atf-dev] An issue with JSLint validator:org.mozilla._javascript_.Undefined cannot be cast to java.lang.Double


Mastrella

Are you using the patched version of JSLint pointed to from the download page (http://prdownloads.sourceforge.net/atf-additions/fulljslint-2007-05-20-patched.js)? ATF is running JSLint using Mozilla Rhino, and we are finding that Rhino is not handling certain _javascript_ syntax correctly. Rhino is unable to run the latest versions of JSlint from www.JSLint.com.

The long range plans are to replace JSLint validation. It is also not required to have JSLint configured to use ATF. If you clear the location of JSLint from the preference page, ATF will disable the JSLint validator. The JSLint validator looks for a variety of coding structures that are considered to be bad practice in _javascript_. Checking for illegal _javascript_ syntax is done by a different validator, so syntax validation is done independently of whether JSLint is configured. All other functionality of ATF will work without having JSLint configured.

   Thanks
     Bob

Robert Goodman
goodmanr@xxxxxxxxxx


"MASTRELLA STEFANO" <smastrella@xxxxxxxx>
Sent by: atf-dev-bounces@xxxxxxxxxxx
07/03/2007 03:27 AM
Please respond to
AJAX Toolkit Framework discussion <atf-dev@xxxxxxxxxxx>

To
<atf-dev@xxxxxxxxxxx>
cc

Subject
[atf-dev] An issue with JSLint validator:        org.mozilla._javascript_.Undefined cannot be cast to java.lang.Double







I've installed ATF 0.2.2.v200706071000 on an Eclipse 3.3 and configured
JSLint validator as explained in
http://www.eclipse.org/atf/downloads/index_build.php?plat=all&buildID=0.
2.1-v200704051500&XULPlugin=true but anytime the validation starts I
obtain an error like this

org.mozilla._javascript_.Undefined cannot be cast to java.lang.Double

What's the matter? Is it a bug or I've missed something in my
installation?
_______________________________________________
atf-dev mailing list
atf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/atf-dev
_______________________________________________
atf-dev mailing list
atf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/atf-dev


Back to the top