Zell reminds me that I want to use FieldDefinition rather than FieldOverride

which is meant to be used only in certain circumstances.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2427 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-09-15 18:37:04 +00:00
parent 9739e50761
commit 58d2b7d2fe
@@ -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);
}