irenical / shifty

Code wrapper to unreliable code. Offers capabilities like fault tolerance, circuit breaking, etc... to calls, remote or not, such as SOAP, Rest, Thrift, JDBC, etc...
1 stars 1 forks source link

Java 7 version? #1

Open mpontes opened 8 years ago

mpontes commented 8 years ago

We don't have to bother to support anything other than Java 8 for all of our server libraries, but it might be helpful to have a backport of this for clients that are constrained with an old version of Java, be it legacy platforms that require Java 7 to run or Android clients, which is only source-compatible with 6, IIRC. The downside is that shifty API seems really cumbersome to use without Java 8 lambdas, so this might not be worthwhile in the end.

For the time being, I'm keeping a Java 6+ compatible fork here.

tiagosimao commented 8 years ago

Good point. As of now, lambdas are (only) used in three places, I think the Java6 equivalent API is still simple enough to use. Closer to Hystrix.

mpontes commented 8 years ago

Backport synced with latest version. Getting harder. Java 6 is still supported, but tests only compile+run on Java 7+ because of AutoCloseable.

dneves commented 8 years ago

If the reason is android, i think it's safe to forget java6 and go with java7. as i've read somewhere, AutoClosable in Java 7 is implemented in Android API level 19.

mpontes commented 8 years ago

I noticed that too, but I'm worried that requiring Android 4.4 might be too much for some people.