Skip to content

Commit

Permalink
Update XProcessing jars.
Browse files Browse the repository at this point in the history
Fixes #3495

RELNOTES=Fixes #3495: Updates the XProcessing jars, which should now be compatible with java 8 again.
PiperOrigin-RevId: 465104224
  • Loading branch information
bcorso authored and Dagger Team committed Aug 3, 2022
1 parent 353a50b commit 62b7f45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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.

0 comments on commit 62b7f45

Please sign in to comment.