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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user