This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: security files


>>>>> "Erik" == Erik Poupaert <erik.poupaert@hurricanedev.com> writes:

Erik> 	private final int SSH_SMSG_STDOUT_DATA =		17;
Erik> ...
Erik> //X	error!				byte packet_type = SSH_SMSG_STDOUT_DATA;
Erik> 					byte packet_type = (byte) SSH_SMSG_STDOUT_DATA;

The rule is, an implicit int->byte conversion is valid for constants
whose value fits in a byte.  Some versions of gcj get this wrong.
The original code above is ok.

As to the NPEs, if you've got a simple test case, we'd like to see it.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]