Commits

Anonymous committed 816e780

Fixing some Java 1.4 dependencies

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@325573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 80700e6

Comments (0)

Files changed (2)

src/java/com/opensymphony/webwork/views/xslt/BeanAdapter.java

             }
             return props;
         } catch (IntrospectionException e) {
-            throw new RuntimeException("Error getting property descriptors for " + bean, e);
+            e.printStackTrace();
+            throw new RuntimeException("Error getting property descriptors for " + bean + " : " + e.getMessage());
         }
     }
 

src/java/com/opensymphony/webwork/views/xslt/DOMAdapter.java

 
             return adapter;
         } catch (IllegalAccessException e) {
-            throw new RuntimeException("Cannot adapt " + value + " (" + propertyName + ")", e);
+            e.printStackTrace();
+            throw new RuntimeException("Cannot adapt " + value + " (" + propertyName + ") :" + e.getMessage());
         } catch (InstantiationException e) {
-            throw new RuntimeException("Cannot adapt " + value + " (" + propertyName + ")", e);
+            e.printStackTrace();
+            throw new RuntimeException("Cannot adapt " + value + " (" + propertyName + ") :" + e.getMessage());
         } catch (NoSuchMethodException e) {
+            e.printStackTrace();
             throw new RuntimeException(
-                    "Adapter Class " + adapterClass.getName() + " must define the right constructor.", e);
+                    "Adapter Class " + adapterClass.getName() + " must define the right constructor. :" + e.getMessage());
         } catch (InvocationTargetException e) {
-            throw new RuntimeException("Cannot adapt " + value + " (" + propertyName + ")", e);
+            e.printStackTrace();
+            throw new RuntimeException("Cannot adapt " + value + " (" + propertyName + ") :" + e.getMessage());
         }
     }