summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r--src/main/java/com/amazon/carbonado/gen/StorableCopier.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/gen/StorableCopier.java b/src/main/java/com/amazon/carbonado/gen/StorableCopier.java
index a575060..ca28bd0 100644
--- a/src/main/java/com/amazon/carbonado/gen/StorableCopier.java
+++ b/src/main/java/com/amazon/carbonado/gen/StorableCopier.java
@@ -329,6 +329,13 @@ public abstract class StorableCopier<S extends Storable, T extends Storable> {
}
}
+ mi = mClassFile.addMethod
+ (Modifiers.PUBLIC, CommonMethodNames.IS_PROPERTY_SUPPORTED,
+ TypeDesc.BOOLEAN, new TypeDesc[] {TypeDesc.STRING});
+ b = new CodeBuilder(mi);
+ b.loadConstant(true);
+ b.returnValue(TypeDesc.BOOLEAN);
+
try {
Class<? extends W> wrapperClass = mClassInjector.defineClass(mClassFile);
return wrapperClass.getConstructor(mDelegateInfo.getStorableType());