Am 17.03.2010 20:12, schrieb Martin Buchholz:
On Wed, Mar 17, 2010 at 10:02, Ulf Zibis<[email protected]>  wrote:

Additionally I think, there's a bug in javadoc of those methods.
Actually they throw StringIndexOutOfBoundsException.
Why would that be a bug?

I think, javadoc should indicate StringIndexOutOfBoundsException here:

    /**
     * @throws IndexOutOfBoundsException {...@inheritdoc}
     * @see        #length()
     */
    public synchronized char charAt(int index) {
        if ((index < 0) || (index >= count))
            throw new StringIndexOutOfBoundsException(index);
        return value[index];
    }


Or am I not enough informed about {...@inheritdoc} ?

-Ulf



Reply via email to