-
Notifications
You must be signed in to change notification settings - Fork 28
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
Update the book (F.Promise to CompletionStage) #27
Comments
I'm in the process of updating everything to be Play 2.5 compliant. I'm aiming to publish the latest version in the next two weeks. Thanks! |
Hi Steve I've used your auth0-integration example for Java from the book and am updating it for Deadbolt 2 2.5.1 and CompletionStage. I'm struggling with onAuthFailure, but everything else seems to compile. I haven't developed anything in over a decade, so I'm having to learn Lambdas, Futures, etc. I'm sure it is something simple. I'm happy to contribute the updates to this example if that is of value to you once I have it working. Here is what I have.
Eclipse is telling me Type mismatch: cannot convert from CompletionStage to . |
Hi, if it's been a while since you developed anything, it might be easier to use anonymous classes to get started. When using lambdas and chained calls, it can be really easy to lose what you're doing. Alternatively, use local variables instead of chaining the calls. This will make it far easier to read. For example, Here's the corrected example:
I didn't include the cast of I'm (slowly) updating the book for Play 2.5, including Regards, |
Thanks Steve. Your suggestion of using local variables helped. |
@schaloner, I see that in most sections there is |
No, the revision is an ongoing process so there are a few hold-overs. I need to start working on the book again. |
We are tracking all documentation related issues in #89 now. |
Here: https://leanpub.com/deadbolt-2/read it would be good to replace
F.Promise<Optional<Result>>
withCompletionStage<Optional<Result>>
The text was updated successfully, but these errors were encountered: