You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by paulo gaspar <"paulo gaspar"> on 2004/04/16 19:22:09 UTC

[lang] FastDateFormat broken

Hi people,


"Broken" is the only way I can qualify a method like
    org.apache.commons.lang.time.FastDateFormat.parseObject(String,
ParsePosition)

which is documented as "unsupported" BUT does something silly INSTEAD
of  just throwing an
UnsupportedOperationException. =:o/

Please replace the current implementation with this one:

    public Object parseObject(String source, ParsePosition pos) {
        throw new UnsupportedOperationException();
    }

This way, my app behaved as if there was a parsing problem, when the
above exception would
immediatly imform me that this operation is unsupported. =:o/

Have fun,
Paulo Gaspar



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org