songchuanyuan66 / concurrentlinkedhashmap

Automatically exported from code.google.com/p/concurrentlinkedhashmap
Apache License 2.0
0 stars 1 forks source link

UnsupportedClassVersionError on JRE1.5 #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When you run applications on JRE1.5
2.
3.

What is the expected output? What do you see instead?
Should not throw error

What version of the product are you using? On what operating system?
1.0 RC

Please provide any additional information below.

clhm is a dependency in my code, when I run it on JDK 1.5, it throws
UnsupportedClassVersionError: Bad version number in .class file

Backported code would help me use it on my project.

Thanks, Anand 

Original issue reported on code.google.com by anandw...@gmail.com on 14 Apr 2010 at 10:29

GoogleCodeExporter commented 9 years ago
I'll try to get this done tomorrow evening. Prior response below for background 
details:

There are no Java-6 features required. The advantages was that JDK5 is 
end-of-life, 
AbstractMap$SimpleEntry is public so it doesn't need to be duplicated, and 
AbstractCollection#toArray() 
was fixed to be threadsafe so it doesn't need to be overridden (keySet, values, 
entrySet).

Original comment by Ben.Manes@gmail.com on 14 Apr 2010 at 10:37

GoogleCodeExporter commented 9 years ago
Released a backport of v1.0-LRU to JDK5. This version was verified on Sun 
JDK_1.5.0_06.

Original comment by Ben.Manes@gmail.com on 15 Apr 2010 at 4:34