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:
Michael Bayne
2008-09-15 18:37:04 +00:00
parent 7e8c7fadcb
commit a507308c2b
@@ -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);
}