Two small patches

Tom Tromey tromey@redhat.com
Sun Nov 10 12:28:00 GMT 2002


>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> The following two small patches make some exceptions a bit
Mark> clearer and remove a compiler warning about an unused function
Mark> argument variable.

Ok.

Mark> -	throw new java::lang::ArrayStoreException;
Mark> +	throw new java::lang::ArrayStoreException
Mark> +		((new java::lang::StringBuffer
Mark> +		 (JvNewStringUTF("Cannot store ")))->append
Mark> +		 (obj_class->getName())->append
Mark> +		 (JvNewStringUTF(" in array of type "))->append
Mark> +		 (elt_class->getName())->toString());

It might be easier to read with a new block and separate statements.
It's your decision though.

Tom



More information about the Java-patches mailing list