[kaffe] null string concatenation and kjc/kaffe bug

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


--=-Q0pR+ti/ETmKHl4g2TQ2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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 +=3D 'a';
    System.out.println(something);
  }
}

Found by Arnaud while he was debugging gjdoc.
See also
https://savannah.gnu.org/patch/?func=3Ddetailpatch&patch_id=3D2334&group_id=
=3D508

Cheers,

Mark

--=-Q0pR+ti/ETmKHl4g2TQ2
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/v26cxVhZCJWr9QwRAs07AKCrHDF/bTwxRQ+sTGH5rcYj9zUprwCdEPM/
WgmyJt9id+xHPQ4Cqiw2TSY=
=8xIU
-----END PGP SIGNATURE-----

--=-Q0pR+ti/ETmKHl4g2TQ2--