jsr166y jar is compiled with Java 7

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

jsr166y jar is compiled with Java 7

Colin Fleming
Hi everyone,

Today I needed to get a copy of the jsr166y jar, in order to run some Clojure code under Java 6. To my dismay, it seems that the classes in the jar have been compiled with Java 7 and are unusable from Java 6, contrary to what it says on the website:

~/Downloads> wget http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166y.jar
--2015-11-05 21:23:38--  http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166y.jar
Resolving gee.cs.oswego.edu... 129.3.20.1
Connecting to gee.cs.oswego.edu|129.3.20.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83992 (82K) [text/plain]
Saving to: 'jsr166y.jar'

jsr166y.jar                   100%[==================================================>]  82.02K  74.4KB/s   in 1.1s  

2015-11-05 21:23:40 (74.4 KB/s) - 'jsr166y.jar' saved [83992/83992]

~/Downloads> javap -verbose -classpath jsr166y.jar  jsr166y/ForkJoinPool | grep version
  minor version: 0
  major version: 51

Cheers,
Colin

_______________________________________________
Concurrency-interest mailing list
[hidden email]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest
Reply | Threaded
Open this post in threaded view
|

Re: jsr166y jar is compiled with Java 7

Martin Buchholz-3
Confirmed.

This seems to fix it:

diff -u -r1.188 build.xml
--- build.xml 12 Oct 2015 01:53:54 -0000 1.188
+++ build.xml 5 Nov 2015 15:01:01 -0000
@@ -936,6 +936,7 @@
            debuglevel="${build.debuglevel}"
            deprecation="${build.deprecation}"
            source="6"
+           target="6"
            classpath=""
            bootclasspath="${bootclasspath6}"
            includeAntRuntime="false"

Doug, please rebuild the jars.

On Thu, Nov 5, 2015 at 12:28 AM, Colin Fleming <[hidden email]> wrote:
Hi everyone,

Today I needed to get a copy of the jsr166y jar, in order to run some Clojure code under Java 6. To my dismay, it seems that the classes in the jar have been compiled with Java 7 and are unusable from Java 6, contrary to what it says on the website:

~/Downloads> wget http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166y.jar
--2015-11-05 21:23:38--  http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166y.jar
Resolving gee.cs.oswego.edu... 129.3.20.1
Connecting to gee.cs.oswego.edu|129.3.20.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83992 (82K) [text/plain]
Saving to: 'jsr166y.jar'

jsr166y.jar                   100%[==================================================>]  82.02K  74.4KB/s   in 1.1s  

2015-11-05 21:23:40 (74.4 KB/s) - 'jsr166y.jar' saved [83992/83992]

~/Downloads> javap -verbose -classpath jsr166y.jar  jsr166y/ForkJoinPool | grep version
  minor version: 0
  major version: 51

Cheers,
Colin

_______________________________________________
Concurrency-interest mailing list
[hidden email]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest



_______________________________________________
Concurrency-interest mailing list
[hidden email]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest