kinglcc / juniversalchardet

Automatically exported from code.google.com/p/juniversalchardet
0 stars 0 forks source link

build.xml javac source and target attrs unset #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for you report!
I'll merge your patch in the next release.

Original comment by taksc...@gmail.com on 23 Jul 2008 at 12:09

GoogleCodeExporter commented 8 years ago

Original comment by taksc...@gmail.com on 23 Jul 2008 at 12:49