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) {
|
if (override != null) {
|
||||||
boolean useOverride;
|
boolean useOverride;
|
||||||
if (override instanceof FieldOverride) {
|
if (override instanceof FieldOverride) {
|
||||||
if (fm.getComputed() != null) {
|
if (fm.getComputed() != null && dm.getComputed() != null) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"FieldOverride cannot be used on @Computed field: " + field);
|
"FieldOverride cannot be used on @Computed field: " + field);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user