geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r488309 - /geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/MappingMetaData.java
Date Mon, 18 Dec 2006 15:57:06 GMT
Author: gnodet
Date: Mon Dec 18 07:57:04 2006
New Revision: 488309

URL: http://svn.apache.org/viewvc?view=rev&rev=488309
Log:
XBEAN-67: When an xbean tag is mispelled, a CNFE is thrown instead of a more explicit exception

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

Modified: geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/MappingMetaData.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/MappingMetaData.java?view=diff&rev=488309&r1=488308&r2=488309
==============================================================================
--- geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/MappingMetaData.java
(original)
+++ geronimo/xbean/trunk/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/MappingMetaData.java
Mon Dec 18 07:57:04 2006
@@ -50,7 +50,6 @@
      */
     public MappingMetaData(Properties properties) {
         this.properties = properties;
-        this.packageName = properties.getProperty("package", "");
     }
 
     /**
@@ -58,7 +57,7 @@
      */
     public String getClassName(String localName) {
         String className = properties.getProperty(localName);
-        if (className == null) {
+        if (className == null && packageName != null) {
             if (packageName.length() > 0) {
                 className = packageName + "." + localName;
             }



Mime
View raw message