2009/8/19 zhaoyi <[email protected]>

>
> I use @Assisted and pass a null object in the create() method. Then I
> will get an error "null returned by binding". How can I let @Assisted
> support null?
>

I believe the complete error message should have read something like this:

   "null returned by binding at ABC but XYZ is not @Nullable"

which means the injection point XYZ needs to be marked with @Nullable:

   http://code.google.com/p/google-guice/wiki/UseNullable

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to