[jboss-cvs] jboss-seam/src/main/org/jboss/seam/util ...

Peter Muir peter at bleepbleep.org.uk
Tue Aug 28 06:09:17 EDT 2007


  User: pmuir   
  Date: 07/08/28 06:09:17

  Modified:    src/main/org/jboss/seam/util  Reflections.java
  Log:
  JBSEAM-1867
  
  Revision  Changes    Path
  1.23      +3 -2      jboss-seam/src/main/org/jboss/seam/util/Reflections.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Reflections.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/util/Reflections.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -b -r1.22 -r1.23
  --- Reflections.java	13 Aug 2007 14:20:34 -0000	1.22
  +++ Reflections.java	28 Aug 2007 10:09:17 -0000	1.23
  @@ -1,4 +1,4 @@
  -//$Id: Reflections.java,v 1.22 2007/08/13 14:20:34 pmuir Exp $
  +//$Id: Reflections.java,v 1.23 2007/08/28 10:09:17 pmuir Exp $
   package org.jboss.seam.util;
   
   import java.beans.Introspector;
  @@ -65,8 +65,9 @@
         }
         catch (IllegalArgumentException iae)
         {
  +         // target may be null if field is static so use field.getDeclaringClass() instead
            String message = "Could not set field value by reflection: " + toString(field) +
  -            " on: " + target.getClass().getName();
  +            " on: " + field.getDeclaringClass().getName();
            if (value==null)
            {
               message += " with null value";
  
  
  



More information about the jboss-cvs-commits mailing list