W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

Re: "negative count" and unsigned counts

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Wed, 24 Sep 2003 09:53:08 -0400
To: keshlam@us.ibm.com
Cc: www-dom@w3.org
Message-ID: <1064411588.beb5b0e0cmoschini@myrealbox.com>

Joseph Kesselman wrote:
> I believe that clause is there because some bindings
> -- Java being one of them -- simply do not have the
> concept of untyped integers.

But it does have the concept of indices, and it does already have an appropriate Exception to raise:

IndexOutOfBoundsException
http://java.sun.com/j2se/1.3/docs/api/java/lang/IndexOutOfBoundsException.html

If the language does not have the proper typing means to handle the spec, the language should still be called on for resolving this "unsigned" issue rather than the DOM. The Java implementation ought to work around Java's limitation by handling this index as Java already does handle every other index natively - by offering an int argument and throwing an IndexOutOfBoundsException if the argument is negative.

This would resolve the DOM compliance test issue, as the DOM index exception would no longer be necessary.


-Chris "SoopahMan" Moschini
http://hiveminds.info/
http://soopahman.com/
Received on Wednesday, 24 September 2003 09:53:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT