diff --git a/org/mozilla/javascript/NativeJavaClass.java b/org/mozilla/javascript/NativeJavaClass.java
index <HASH>..<HASH> 100644
--- a/org/mozilla/javascript/NativeJavaClass.java
+++ b/org/mozilla/javascript/NativeJavaClass.java
@@ -102,6 +102,8 @@ public class NativeJavaClass extends NativeJavaObject implements Function {
                 result = nestedValue;
             } catch (ClassNotFoundException ex) {
                 throw members.reportMemberNotFound(name);
+            } catch (IllegalArgumentException e) {
+                throw members.reportMemberNotFound(name);
             }
         }
 		
diff --git a/src/org/mozilla/javascript/NativeJavaClass.java b/src/org/mozilla/javascript/NativeJavaClass.java
index <HASH>..<HASH> 100644
--- a/src/org/mozilla/javascript/NativeJavaClass.java
+++ b/src/org/mozilla/javascript/NativeJavaClass.java
@@ -102,6 +102,8 @@ public class NativeJavaClass extends NativeJavaObject implements Function {
                 result = nestedValue;
             } catch (ClassNotFoundException ex) {
                 throw members.reportMemberNotFound(name);
+            } catch (IllegalArgumentException e) {
+                throw members.reportMemberNotFound(name);
             }
         }
Try to fix Solaris/Linux failures.