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:
Michael Bayne
2008-09-15 18:22:18 +00:00
parent 98ac644ad9
commit 2f57697c32
@@ -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);
}