[seam-commits] Seam SVN: r13618 - in modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml: parser/namespace and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Aug 19 18:06:04 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-08-19 18:06:03 -0400 (Thu, 19 Aug 2010)
New Revision: 13618

Modified:
   modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ClassXmlItem.java
   modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java
Log:
fixed compiler errors due to updated weldx method names


Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ClassXmlItem.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ClassXmlItem.java	2010-08-19 14:27:41 UTC (rev 13617)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ClassXmlItem.java	2010-08-19 22:06:03 UTC (rev 13618)
@@ -71,7 +71,7 @@
       for (Entry<String, String> e : attributes.entrySet())
       {
 
-         Field field = Reflections.getField(getJavaClass(), e.getKey());
+         Field field = Reflections.findDeclaredField(getJavaClass(), e.getKey());
          if (field != null)
          {
             values.add(new FieldXmlItem(this, field, e.getValue(), document, lineno));
@@ -81,7 +81,7 @@
             String methodName = "set" + Character.toUpperCase(e.getKey().charAt(0)) + e.getKey().substring(1);
             if (Reflections.methodExists(getJavaClass(), methodName))
             {
-               Set<Method> methods = Reflections.getAllMethods(getJavaClass());
+               Set<Method> methods = Reflections.getAllDeclaredMethods(getJavaClass());
                for (Method m : methods)
                {
                   if (m.getName().equals(methodName) && m.getParameterTypes().length == 1)
@@ -231,7 +231,7 @@
       {
          params[i] = constList.get(i).getJavaClass();
       }
-      Constructor<?> ret = Reflections.getConstructor(getJavaClass(), params);
+      Constructor<?> ret = Reflections.findDeclaredConstructor(getJavaClass(), params);
       if (ret == null)
       {
          throw new XmlConfigurationException("Could not resolve constructor for " + getJavaClass() + " with arguments " + params, getDocument(), getLineno());

Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java	2010-08-19 14:27:41 UTC (rev 13617)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/parser/namespace/PackageNamespaceElementResolver.java	2010-08-19 22:06:03 UTC (rev 13618)
@@ -123,7 +123,7 @@
       Class<?> p = parent.getJavaClass();
       Field f = null;
       boolean methodFound = Reflections.methodExists(p, name);
-      f = Reflections.getField(p, name);
+      f = Reflections.findDeclaredField(p, name);
 
       if (methodFound && f != null)
       {
@@ -141,7 +141,7 @@
       String methodName = "set" + Character.toUpperCase(name.charAt(0)) + name.substring(1);
       if (Reflections.methodExists(p, methodName))
       {
-         Set<Method> methods = Reflections.getAllMethods(p);
+         Set<Method> methods = Reflections.getAllDeclaredMethods(p);
          for (Method m : methods)
          {
             if (m.getName().equals(methodName) && m.getParameterTypes().length == 1)



More information about the seam-commits mailing list