diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2012-10-01 20:17:27 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2012-10-01 20:17:27 +0000 |
commit | 235d7a01f77ebc802b63b268847dcad74295f345 (patch) | |
tree | 7266e297a2254bfc53846bce38ccc4ecb8ba2aa7 /src/main/java | |
parent | 670711f96a0b78cb674aaa090e965922e028d276 (diff) |
Generate missing method.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/amazon/carbonado/gen/StorableCopier.java | 7 |
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());
|