[kaffe] null string concatenation and kjc/kaffe bug

Mark Wielaard mark at klomp.org
Sat Nov 22 06:17:02 PST 2003


Hi,

Compiling the following with kjc and then running it with kaffe gives a
NullPointerException. But it should give "nulla".

public class Test {
  static String something;
  public static void main(String[] args) throws Exception {
    something += 'a';
    System.out.println(something);
  }
}

Found by Arnaud while he was debugging gjdoc.
See also
https://savannah.gnu.org/patch/?func=detailpatch&patch_id=2334&group_id=508

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://kaffe.org/pipermail/kaffe/attachments/20031122/988f0324/attachment-0002.pgp 


More information about the kaffe mailing list