gcj minor bug

Dhek Bhun Kho bhun@chello.nl
Sat Dec 14 23:15:00 GMT 2002


Hello, for those interested.

> This is a well known gcj bug.  The code in StringTokenizer is actually
> fine, it is the compiler that has the problem.  I believe this bug is
> fixed in cvs.
Have you ever tried it out? I did a cvs check out, and the code in the
cvs breaks on 2 points:
1) nullpointer exceptions are raised because you can pass in null values
into the constructor
2) the delimiter algo is totally screwed up. I rewrote the thing after I
kept getting stupid bugs with ant 

the code is attached do with it what you want, if you need another
rewrite just mail me. i've included a very quick test case (wrong.java)
which all turn out fine.

> We try to make it easy.  For simple patches, just send the patch, a
> ChangeLog entry, and an explanation to <java-patches@gcc.gnu.org>.
well there must be someone on this list who has write access???

the code can probably be made more efficient, but at least it's not
buggy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrong.java
Type: text/x-java
Size: 2563 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20021214/1974d766/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringTokenizer.java
Type: text/x-java
Size: 3615 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20021214/1974d766/attachment-0001.bin>


More information about the Java-patches mailing list