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

Gavin King gavin.king at jboss.com
Mon May 7 21:50:41 EDT 2007


  User: gavin   
  Date: 07/05/07 21:50:41

  Modified:    src/main/org/jboss/seam  Entity.java
  Log:
  JBSEAM-1295
  
  Revision  Changes    Path
  1.5       +9 -0      jboss-seam/src/main/org/jboss/seam/Entity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Entity.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Entity.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- Entity.java	24 Apr 2007 00:06:40 -0000	1.4
  +++ Entity.java	8 May 2007 01:50:41 -0000	1.5
  @@ -63,6 +63,11 @@
               {
                  identifierGetter = method;
               }
  +            
  +            if ( !method.isAccessible() )
  +            {
  +               method.setAccessible(true);
  +            }
            }
            
            if (identifierGetter==null)
  @@ -72,6 +77,10 @@
                  if ( field.isAnnotationPresent(Id.class) || field.isAnnotationPresent(EmbeddedId.class))
                  {
                     identifierField = field;
  +                  if ( !field.isAccessible() )
  +                  {
  +                     field.setAccessible(true);
  +                  }
                  }
               }
            }
  
  
  



More information about the jboss-cvs-commits mailing list