tiger7456 / ganymed-ssh-2

Automatically exported from code.google.com/p/ganymed-ssh-2
Other
0 stars 0 forks source link

StringEncoder implementation not compatible with Java SE5 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
String.getBytes(Charset) is not available in Java SE5:

return data.getBytes(Charset.forname("UTF-8"));

You can use getBytes(String charName) instead.

Additionally, String(byte[], int, int, Charset) in GetString() is unavailable 
in SE5 too.

Same here, try String(byte[], int, int, String);

These are available in both Java SE5 and Java SE6.

Original issue reported on code.google.com by sky.ri...@gmail.com on 21 Jun 2011 at 1:00

GoogleCodeExporter commented 9 years ago
Thanks for catching this. Fixed in r43.

Original comment by dkocher@sudo.ch on 21 Jun 2011 at 6:34