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.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2425 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-09-15 18:22:18 +00:00
parent 610b03df80
commit bc98a28af8
@@ -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);
}