[kaffe] String problem / NullPointerException in KJC
guilhem.lavaux at free.fr
Thu Jul 3 13:07:01 PDT 2003
On Thursday 03 July 2003 19:22, Dalibor Topic wrote:
> hi Helmer,
> --- Helmer Krämer <hkraemer at freenet.de> wrote:
> > i think even i<k is still wrong ;) n Is the length of the string
> > and m is the length of the pattern, so the largest possible start
> > index of the pattern is n-m-1. Therefore it should be n-m-1 and
> > <=k or n-m and <k, shouldn't it?
> I've checked Guilhem's patch in as it is.
> But your stricter interpretation makes sense. Could you build a rt.jar with
> the current CVS head, and another with a stricter limit and check if they
> are equal, and that the stricter interpretation passes the regression test
> dalibor topic
I have checked with k=n-m and i<k at the same time against k=n-m and i<=k.
Apparently the both give a successful compilation and the disassembly of both
rt.jar is completely the same. I suggest we keep the strictest limit.
More information about the kaffe