Date: Tue, 20 Jan 1998 20:31:38 -0700 From: Nate Williams <nate@mt.sri.com> To: Archie Cobbs <archie@whistle.com> Cc: kaffe@kaffe.org, freebsd-java@FreeBSD.ORG Subject: Re: kaffe bug? Message-ID: <199801210331.UAA10971@mt.sri.com> In-Reply-To: <199801210235.SAA09411@bubba.whistle.com>
index | next in thread | previous in thread | raw e-mail
> When I compile this (obviously broken) program:
>
> public class Foo {
> char[] x = new char[] = { ':' };
> }
>
> ..using "javac -O -g EtherAddr.java", I get a compiler crash:
rocky:~/tmp % cat > Foo.java
public class Foo {
char[] x = new char[] = { ':' };
}
rocky:~/tmp % javac -O -g Foo.java
Foo.java:2: Invalid left hand side of assignment.
char[] x = new char[] = { ':' };
^
Foo.java:2: Array constants can only be used in initializers.
char[] x = new char[] = { ':' };
^
2 errors
rocky:~/tmp %
Nate
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801210331.UAA10971>
