Revision: 4190 http://vexi.svn.sourceforge.net/vexi/?rev=4190&view=rev Author: clrg Date: 2011-07-12 00:58:32 +0000 (Tue, 12 Jul 2011)
Log Message: ----------- Fix vexi.jsDate() causing ArrayIndexOutOfBoundsException Modified Paths: -------------- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp Modified: trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp =================================================================== --- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp 2011-07-12 00:04:44 UTC (rev 4189) +++ trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/JSDate.jpp 2011-07-12 00:58:32 UTC (rev 4190) @@ -71,6 +71,8 @@ static public JS Constructor = new JS.Constructor("Date") { public JS new_(JS[] args) throws JSExn { + if (args.length==0 or args.length>3) + throw new JSExn("vexi.js.Date constructor expects arguments: year[, month, day]"); int[] parts = new int[args.length]; parts[0] = getIntArg(args, 0, 0); // year This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn