security files
Tom Tromey
tromey@redhat.com
Fri Sep 26 17:10:00 GMT 2003
>>>>> "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
More information about the Java
mailing list