Zell reminds me that I want to use FieldDefinition rather than FieldOverride
which is meant to be used only in certain circumstances.
This commit is contained in:
@@ -509,7 +509,7 @@ public abstract class BuildVisitor implements ExpressionVisitor
|
||||
if (override != null) {
|
||||
boolean useOverride;
|
||||
if (override instanceof FieldOverride) {
|
||||
if (fm.getComputed() != null) {
|
||||
if (fm.getComputed() != null && dm.getComputed() != null) {
|
||||
throw new IllegalArgumentException(
|
||||
"FieldOverride cannot be used on @Computed field: " + field);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user