excessive cast requirements

Tom Tromey tromey@redhat.com
Mon Feb 10 19:02:00 GMT 2003


>>>>> "Erik" == Erik Poupaert <erik.poupaert@chello.be> writes:

Erik> In the PreparedStatement.java source, I was forced to add
Erik> excessive casts:

Erik> case (byte)'\n': /* Must be escaped for logs */

This bug is fixed in gcj 3.3.  This patch did it:

2002-08-26  Tom Tromey  <tromey@redhat.com>

	* parse.y (try_builtin_assignconv): Allow narrowing primitive
	conversion if RHS_TYPE is byte, short, or char.

Tom



More information about the Java mailing list