Distributed jar is built with Java 1.6 (I think). Would be convenient for
wider range of users (e.g. 1.5 and 1.6 users) if the build.xml javac target
had source="1.5" and target="1.5" which would make this jar useful to more
people "out-of-the-box".
This causes compile failure on JDK 1.5.0_12
> javac -cp .:juniversalchardet-1.0.2.jar TestDetector.java
TestDetector.java:1: cannot access
org.mozilla.universalchardet.UniversalDetector
bad class file:
juniversalchardet-1.0.2.jar(org/mozilla/universalchardet/UniversalDetector.class
)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import org.mozilla.universalchardet.UniversalDetector;
^
1 error
Patch attached.
Original issue reported on code.google.com by lne...@gmail.com on 4 Feb 2008 at 11:55
Original issue reported on code.google.com by
lne...@gmail.com
on 4 Feb 2008 at 11:55Attachments: