We're going to allow FieldOverride on @Computed records, just not on @Computed
fields. Maybe Zell will remind me why this was disallowed, but it seems that to disallow this is to make FieldOverride useless.
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 || dm.getComputed() != null) {
|
||||
if (fm.getComputed() != null) {
|
||||
throw new IllegalArgumentException(
|
||||
"FieldOverride cannot be used on @Computed field: " + field);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user