diff --git a/src/org/mozilla/javascript/JavaMembers.java b/src/org/mozilla/javascript/JavaMembers.java
index <HASH>..<HASH> 100644
--- a/src/org/mozilla/javascript/JavaMembers.java
+++ b/src/org/mozilla/javascript/JavaMembers.java
@@ -603,8 +603,9 @@ class JavaMembers
                     Object v = ht.get(beanPropertyName);
                     if (v != null) {
                         // A private field shouldn't mask a public getter/setter
-                        if (!includePrivate ||
+                        if (!includePrivate || !(v instanceof Member) ||
                             !Modifier.isPrivate(((Member)v).getModifiers()))
+
                         {
                             continue;
                         }
Fix propagated from <I>R2 release branch.