Navigation Menu

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

Fix compilation error of Java Promise.pure #258

Merged
merged 1 commit into from Apr 24, 2012

Conversation

julienrf
Copy link
Contributor

The last commit broke compilation. I didn’t test this code, I just made it compiling.

@@ -116,8 +116,13 @@ public Promise(play.api.libs.concurrent.Promise<A> promise) {
*
* @param a the value for the promise
*/
public Promise(A a) {
this(play.api.libs.concurrent.Promise$.MODULE$.pure(a));
public Promise(final A a) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, maybe we should make the parameter a lazy too? So it should have type Function0<A> instead of A.

pk11 pushed a commit that referenced this pull request Apr 24, 2012
Fix compilation error of Java Promise.pure
@pk11 pk11 merged commit 6a5764a into playframework:master Apr 24, 2012
@pk11
Copy link
Contributor

pk11 commented Apr 24, 2012

Thanks Julien, I actually just wanted to pull in the small fix (fixing the runtime exception) but the other changeset was in the same branch :(

@julienrf julienrf deleted the fix/java-promise-pure branch January 14, 2013 09:19
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

Successfully merging this pull request may close these issues.

None yet

2 participants