Permalink
Browse files

PREON-48: Make sure field is set to be accessible

  • Loading branch information...
wspringer committed Jan 26, 2012
1 parent 161d0bf commit 281f3095c2c43e2853b847e36744af3c4b9ab420
@@ -92,22 +92,9 @@ public FieldBinding(Field field, Codec<?> codec,
this.codec = codec;
this.rewriter = rewriter;
this.containerReference = containerReference;
+ field.setAccessible(true);
Class<?> declaring = field.getDeclaringClass();
- // Class<?>[] members = declaring.getDeclaredClasses();
- // List<Class<?>> types = Arrays.asList(codec.getTypes());
- // boolean contextualize = false;
- // for (Class<?> member : members) {
- // if (!Modifier.isStatic(member.getModifiers()) &&
- // types.contains(member)) {
- // contextualize = true;
- // break;
- // }
- // }
- // if (contextualize) {
builderDecorator = new ContextualBuilderDecorator(declaring);
- // } else {
- // builderDecorator = new NonDecoratingBuilderDecorator();
- // }
}
public void load(Object object, BitBuffer buffer, Resolver resolver,

0 comments on commit 281f309

Please sign in to comment.