Skip to content

Commit

Permalink
Wrong modifier check
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Mar 9, 2010
1 parent 38d4458 commit 75b7cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/java/org/jboss/xnio/Option.java
Expand Up @@ -168,7 +168,7 @@ protected final Object readResolve() throws ObjectStreamException {
try {
final Field field = declClass.getField(name);
final int modifiers = field.getModifiers();
if (! Modifier.isProtected(modifiers)) {
if (! Modifier.isPublic(modifiers)) {
throw new InvalidObjectException("Invalid Option instance (the field is not public)");
}
if (! Modifier.isStatic(modifiers)) {
Expand Down

0 comments on commit 75b7cd3

Please sign in to comment.