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

Update XProcessing jars. #3500

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -243,7 +243,10 @@ private Expression getComponentMethodExpression(
// Cast if the expression type does not match the component method's return type. This is useful
// for types that have protected accessibility to the component but are not accessible to other
// classes, e.g. shards, that may need to handle the implementation of the binding.
XType returnType = componentMethod.methodElement().getReturnType();
XType returnType =
componentMethod.methodElement()
.asMemberOf(componentImplementation.graph().componentTypeElement().getType())
.getReturnType();
return !isVoid(returnType) && !isAssignableTo(expression.type(), returnType)
? expression.castTo(returnType)
: expression;
Expand Down
Binary file not shown.
Binary file modified java/dagger/internal/codegen/xprocessing/xprocessing.jar
Binary file not shown.