You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation of the generated code fails as follows:
reference to withGenerator is ambiguous
both method withGenerator(org.springframework.util.function.ThrowingBiFunction<org.springframework.beans.factory.support.RegisteredBean,org.springframework.beans.factory.aot.AutowiredArguments,T>) in org.springframework.beans.factory.aot.BeanInstanceSupplier and method withGenerator(org.springframework.util.function.ThrowingSupplier<T>) in org.springframework.beans.factory.aot.BeanInstanceSupplier match /com/example/TestTarget__TestCode.java 21:148
incompatible types: invalid method reference
incompatible types: org.springframework.beans.factory.support.RegisteredBean cannot be converted to java.lang.String /com/example/TestTarget__TestCode.java 21:163
The reason is that DocumentBuilderFactory has two static methods named newNSInstance. A no-arg one and a two-args one. We have a similar arrangement for withGenerator that can take a BiFunction or a Supplier.
The text was updated successfully, but these errors were encountered:
Consider the following bean definition:
Compilation of the generated code fails as follows:
The reason is that
DocumentBuilderFactory
has two static methods namednewNSInstance
. A no-arg one and a two-args one. We have a similar arrangement forwithGenerator
that can take aBiFunction
or aSupplier
.The text was updated successfully, but these errors were encountered: