Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #258 from julienrf/fix/java-promise-pure

Fix compilation error of Java Promise.pure
  • Loading branch information...
commit 6a5764a184aa7f77f33660810d58dec0c49df1e2 2 parents 91fbe20 + c23d753
Peter Hausel authored April 24, 2012
9  framework/src/play/src/main/java/play/libs/F.java
@@ -116,8 +116,13 @@ public Promise(play.api.libs.concurrent.Promise<A> promise) {
116 116
          *
117 117
          * @param a the value for the promise
118 118
          */
119  
-        public Promise(A a) {
120  
-            this(play.api.libs.concurrent.Promise$.MODULE$.pure(a));
  119
+        public Promise(final A a) {
  120
+            this(play.api.libs.concurrent.Promise$.MODULE$.pure(new scala.runtime.AbstractFunction0<A>() {
  121
+                @Override
  122
+                public A apply() {
  123
+                    return a;
  124
+                }
  125
+            }));
121 126
         }
122 127
 
123 128
         /**

0 notes on commit 6a5764a

Please sign in to comment.
Something went wrong with that request. Please try again.