Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it time to move on? Should feign move to java 8? #656

Closed
velo opened this issue Mar 17, 2018 · 18 comments
Closed

Is it time to move on? Should feign move to java 8? #656

velo opened this issue Mar 17, 2018 · 18 comments

Comments

@velo
Copy link
Member

velo commented Mar 17, 2018

Right now, feign is compatibility is bound to java 6.

Is it time to release feign 10.0 with java 8? (10.x was @spencergibb suggestion)

@kdavisk6 suggested we start a discussion about it.

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Mar 17, 2018 via email

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Mar 17, 2018 via email

@spencergibb
Copy link
Contributor

Spring doesn't change group id or artifact id for minimum Java versions

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Mar 17, 2018 via email

@velo
Copy link
Member Author

velo commented Mar 17, 2018

the android support statements should be dropped if this happens.
In my mind, android had java 8 support
https://developer.android.com/studio/write/java8-support.html
Am I missing something?

Yeah, https://github.com/orfjackal/retrolambda seems a good option.
We could even build the official packages with java 8 and offer retrofitted java 6 jars using classifier.

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Mar 17, 2018 via email

@spencergibb
Copy link
Contributor

Nope, spring cloud (and framework and boot) are now all baselined to Java 8.

@kdavisk6
Copy link
Member

By moving to Java 8, what will we gain? (Not sarcastic, honest question).

@spencergibb
Copy link
Contributor

Use of java 8 language and APIs inside core feign.

@velo
Copy link
Member Author

velo commented Mar 20, 2018

By moving to Java 8, what will we gain?
Can squash feign-java8 into feign-core, which is meh level of awesomeness

Allow us to merge this #638
Right now, the PR introduces a java 8 change to feign-hystrix

@kdavisk6
Copy link
Member

kdavisk6 commented Mar 20, 2018

I understand that #638 wants to add CompleteableFuture, which sounds really good from a user perspective. Are there specific areas within feign, internally now that would benefit immediately from Java 8 API's? Are we considering this a spring board for a complete refactor or simply to support things like #638? I'm trying to understand how far we would like to take it.

@kdavisk6
Copy link
Member

Just to be clear, I'm all for moving to Java 8. I am trying to get an idea on how much do we need to change versus should change to get there.

@kdavisk6
Copy link
Member

kdavisk6 commented May 9, 2018

Is this something we still want to pursue? If so, what do we need to get started?

@velo
Copy link
Member Author

velo commented May 13, 2018

I think we should consider feign 10 with java 8.

I don't have any features in mind, but that will open doors for sure.
May be, for feign 10 we publish java 8 and use retrofeign to keep publishing java 6 libraries, with plans to remove java 6 support on feign 11.

How does that sound like?

@masc3d
Copy link
Contributor

masc3d commented Aug 17, 2018

but that will open doors for sure.

it will certainly close door to being compatible with android < sdk24 very quickly @velo

@velo
Copy link
Member Author

velo commented Aug 17, 2018

@masc3d as you can see, this was done 3 months ago.
Do you think retrofeign would help?

@masc3d
Copy link
Contributor

masc3d commented Aug 18, 2018

Do you think retrofeign would help?

@velo I assumed this was rather about retrofitting async support #644

@velo
Copy link
Member Author

velo commented Aug 18, 2018

Meant to type retrolambda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants