Comment #7 on issue 771 by sberlin: Annotations.isAllDefaultMethods returns
false for method less interfaces.
http://code.google.com/p/google-guice/issues/detail?id=771
I guess I have to repeat my original question: is this causing a bug, and
if so, what bug?
It's used as expected because if there are no methods then we don't need to
bother creating a fake implementation of the class -- we explicitly want to
use the class-based annotation strategy. There's no point in doing the
instance-based one, since there's no parameters it has to worry about.
Same thing with the strategyFor(Annotation) method -- if the annotation has
no methods, we don't need to bother with the instance-based strategy.
Granted, this may be confusing internally -- but it's all strictly internal
code, and shouldn't effect the API in any way.
Can you use the ofType(..) method to do clazzKey.ofType(type)? If that
doesn't work that seems like an issue itself, but unrelated to this.
I don't understand why knowing what will return 'null' will make any
difference. You want to reconstruct a Key, and the safest way using the
provided API to do it is to check the return values & call the appropriate
constructor. Doing it any other way is re-implementing the internals and
is subject to break/change at any time.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.