logo       

null string concatenation and kjc/kaffe bug: msg#00127

java.vm.kaffe.general

Subject: null string concatenation and kjc/kaffe bug

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

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise