harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r549621 - /harmony/enhanced/classlib/trunk/modules/beans/src/main/java/org/apache/harmony/beans/Command.java
Date Thu, 21 Jun 2007 21:41:06 GMT
Author: ayza
Date: Thu Jun 21 14:41:05 2007
New Revision: 549621

URL: http://svn.apache.org/viewvc?view=rev&rev=549621
Log:
Fixing class loading issues

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/main/java/org/apache/harmony/beans/Command.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/main/java/org/apache/harmony/beans/Command.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/org/apache/harmony/beans/Command.java?view=diff&rev=549621&r1=549620&r2=549621
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/main/java/org/apache/harmony/beans/Command.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/main/java/org/apache/harmony/beans/Command.java
Thu Jun 21 14:41:05 2007
@@ -486,8 +486,12 @@
                 }
 
                 if (className != null) {
-                    target = Class.forName(className, true, Thread
-                            .currentThread().getContextClassLoader());
+                    try {
+                        target = Class.forName(className, true, Thread
+                                .currentThread().getContextClassLoader());
+                    } catch (ClassNotFoundException e) {
+                        target = Class.forName(className);
+                    }
 
                     if (isField()) {
                         String fieldName = getAttr("field"); //$NON-NLS-1$



Mime
View raw message