Menu

#6 Latest stable version does not compile with 1.4

Unstable (example)
open
nobody
8
2014-12-11
2014-12-11
No

The latest Jsch at the time of writing (1.51) does not compile with java 1.4

Although it states on the website that it is known to work, the last version which will successfully compile with java 1.4 is jsch 1.49.

The incompatibility is introduced by a new String function - 'replace'

The recommended patch is to replace line 490 of com.jcraft.jsch.Util the replaceFirst function which exists in JDK 1.4, while the replace function does not exist for the given arguments (String, String).

Attached is the patch.

1 Attachments

Discussion


Log in to post a comment.