vigna / fastutil

fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues.
Apache License 2.0
1.81k stars 199 forks source link

Java 7 Compatibility #302

Closed bdw-g closed 10 months ago

bdw-g commented 1 year ago

Hi!

We're using fastutil internally and we have a few users that require Java 7 support (mainly for android applications).

Fastutil v8 is incompatible with Java 7 because it refers to various new interfaces in java.util.function, which were not present in java 7.

We'd like to contribute patches that would make the compilation of methods that require java 8+ conditional, so that we could compile a version of fastutil that doesn't require them.

Would you be open to such a set of patches? Thanks in advance!

vigna commented 1 year ago

Well, yes, if it's not too intrusive and it makes compilation for Java 7 conditional. Without options the code must come out as it is now.

bdw-g commented 1 year ago

Great, thank you. We will get back to you.

bdw-g commented 10 months ago

We're closing this issue because it has proven more complex than anticipated and because we no longer require this to perform our upgrade.

Thanks!