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
The static join method, despite having an incorrect type signature for the "underride" feature seems to shadow the default. The generated code has a syntax error:
/** * Prints the immutable value {@code JoinThings} delegating to a customized method. * @return A string representation of the value */@OverridepublicStringtoString() {
returnJoinThings.join(this);
}
The method join(String...) in the type JoinThings is not applicable for the arguments (ImmutableJoinThings)
By removing or renaming the static method, the default method is then correctly chosen for the underride implementation.
Should the code generator ignore incorrectly typed overloads of underrides, if there is a better typed alternate option?
The text was updated successfully, but these errors were encountered:
Hi,
I am trying out the "underride" feature to add a custom toString.
I ended up with code like:
The static join method, despite having an incorrect type signature for the "underride" feature seems to shadow the default. The generated code has a syntax error:
By removing or renaming the static method, the default method is then correctly chosen for the underride implementation.
Should the code generator ignore incorrectly typed overloads of underrides, if there is a better typed alternate option?
The text was updated successfully, but these errors were encountered: