Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 281f3095c2c43e2853b847e36744af3c4b9ab420 1 parent 161d0bf
@wspringer wspringer authored
View
15 preon-binding/src/main/java/org/codehaus/preon/binding/StandardBindingFactory.java
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.