dain/snappy

Compatibility with JDK 1.5

Closed this issue · 2 comments

Is it possible to release the jar that is compiled for JDK 1.5 and not limited to 1.6?

dain commented

I think it is possible, but it would be super slow. This code use some Unsafe function only available in later versions of Java 6. Do you really want a Java 5 version?

Unfortunately "YES". :( We are in the process of migrating to JDK 1.6, but some of the codebase applications are still running using 1.5, so all of the foundational libraries we use, have to be compiled using 1.5, even though they run in both 1.5 and 1.6 environments, depending on what the running host uses as the JVM version.