harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r543133 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/support/AuxiliaryFinder.java
Date Thu, 31 May 2007 13:45:17 GMT
Author: gshimansky
Date: Thu May 31 06:45:16 2007
New Revision: 543133

URL: http://svn.apache.org/viewvc?view=rev&rev=543133
Log:
Applied HARMONY-3676 [drlvm][classloader] vm.classloading.ClassAttributeTest fails with NPE


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/support/AuxiliaryFinder.java

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/support/AuxiliaryFinder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/support/AuxiliaryFinder.java?view=diff&rev=543133&r1=543132&r2=543133
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/support/AuxiliaryFinder.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/lang/reflect/support/AuxiliaryFinder.java
Thu May 31 06:45:16 2007
@@ -326,8 +326,7 @@
                     }
                 }
             }
-                while (klass != null) {
-                    klass = klass.getDeclaringClass();
+                while ((klass = klass.getDeclaringClass()) != null) {
                     /**/java.lang.reflect.TypeVariable variable = TypeVariableRepository.findTypeVariable(typeVariableName,
klass);
                     /**/if (variable != null) {
                     /**/    return variable;



Mime
View raw message