Compiling with Older Version

Hello

I used to compile my code using an older version of jdk. It was definetely 1.3.1_xxx. The latest one available is 1.3.1_18 and i just downloaded it and tried to compile my codeand it gave me compile errors. I knew this code used to compile with an older version

so i have two questions

(1) I would like to know where is the download for the older versions

(2) if possible, can anyone tell me which version would have been.

The following is the code

decode(java.lang.String) in java.net.URLDecoder cannot be applied to decode(java.lang.String, java.lang.String)

Thanks...

[625 byte] By [dinkarbhaia] at [2007-10-2 16:39:43]
# 1

I don't know why there is a conflict within sub-versions of JDK 1.3. The decode() method which accepted a single String argument was deprecated since 1.4 as the decoding varied depending on the platform default encoding. It is recommended to use the version which accepts two String arguments - one ts the String to decode and the other is the supported character encoding name. Refer to the API documentation to find out.

aniseeda at 2007-7-13 17:47:56 > top of Java-index,Developer Tools,Java Compiler...
# 2

> so i have two questions

> (1) I would like to know where is the download for

> the older versions

http://java.sun.com/products/archive/

> (2) if possible, can anyone tell me which version

> would have been.

> The following is the code

>

> decode(java.lang.String) in java.net.URLDecoder

> cannot be applied to decode(java.lang.String,

> java.lang.String)

Another possibility is that you are not compiling with the compiler that you think you are.

jschella at 2007-7-13 17:47:56 > top of Java-index,Developer Tools,Java Compiler...
# 3
Definitely. URLDecoder(String,String) was introduced in 1.4 so you must be using that somehow.
ejpa at 2007-7-13 17:47:56 > top of Java-index,Developer Tools,Java Compiler...