geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r414151 - in /geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring: context/impl/XBeanHelper.java generator/XmlMetadataGenerator.java
Date Wed, 14 Jun 2006 08:45:26 GMT
Author: gnodet
Date: Wed Jun 14 01:45:26 2006
New Revision: 414151

URL: http://svn.apache.org/viewvc?rev=414151&view=rev
Log:
XBEAN-16: Fix use of JDK 5 only features

Modified:
    geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/XBeanHelper.java
    geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java

Modified: geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/XBeanHelper.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/XBeanHelper.java?rev=414151&r1=414150&r2=414151&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/XBeanHelper.java
(original)
+++ geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/XBeanHelper.java
Wed Jun 14 01:45:26 2006
@@ -21,7 +21,7 @@
             Constructor cstr = cl.getConstructor(new Class[] { SpringApplicationContext.class,
BeanDefinitionRegistry.class, List.class });
             return (XmlBeanDefinitionReader) cstr.newInstance(new Object[] { applicationContext,
registry, xmlPreprocessors });
         } catch (Exception e) {
-            throw new IllegalStateException("Could not find valid implementation for: " +
version, e);
+            throw (IllegalStateException) new IllegalStateException("Could not find valid
implementation for: " + version).initCause(e);
         }
     }
 }

Modified: geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java?rev=414151&r1=414150&r2=414151&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
(original)
+++ geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
Wed Jun 14 01:45:26 2006
@@ -65,7 +65,7 @@
         log.log("Generating Spring 2.0 handler mapping: " + file + " for namespace: " + namespace);
         out = new PrintWriter(new FileWriter(file));
         try {
-            out.println(namespace.replace(":", "\\:") + "=" + NAMESPACE_HANDLER);
+            out.println(namespace.replaceAll(":", "\\\\:") + "=" + NAMESPACE_HANDLER);
         } finally {
             out.close();
         }



Mime
View raw message