servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r801051 - in /servicemix/smx4/specs/trunk: jaxb-api-2.0/src/main/java/javax/xml/bind/ContextFinder.java jaxb-api-2.1/src/main/java/javax/xml/bind/ContextFinder.java
Date Wed, 05 Aug 2009 02:51:05 GMT
Author: ffang
Date: Wed Aug  5 02:51:05 2009
New Revision: 801051

URL: http://svn.apache.org/viewvc?rev=801051&view=rev
Log:
[SMX4-329]jaxb-api bundle should throw JAXBException when contextPath is empty string

Modified:
    servicemix/smx4/specs/trunk/jaxb-api-2.0/src/main/java/javax/xml/bind/ContextFinder.java
    servicemix/smx4/specs/trunk/jaxb-api-2.1/src/main/java/javax/xml/bind/ContextFinder.java

Modified: servicemix/smx4/specs/trunk/jaxb-api-2.0/src/main/java/javax/xml/bind/ContextFinder.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/specs/trunk/jaxb-api-2.0/src/main/java/javax/xml/bind/ContextFinder.java?rev=801051&r1=801050&r2=801051&view=diff
==============================================================================
--- servicemix/smx4/specs/trunk/jaxb-api-2.0/src/main/java/javax/xml/bind/ContextFinder.java
(original)
+++ servicemix/smx4/specs/trunk/jaxb-api-2.0/src/main/java/javax/xml/bind/ContextFinder.java
Wed Aug  5 02:51:05 2009
@@ -32,6 +32,9 @@
 
     public static JAXBContext find(String contextPath, ClassLoader classLoader, Map properties)
throws JAXBException {
         String className = null;
+        if (contextPath == null || contextPath.length() == 0) {
+            throw new JAXBException("Invalid contextPath");
+        }
         String[] packages = contextPath.split(":");
         if (packages == null || packages.length == 0) {
             throw new JAXBException("Invalid contextPath");

Modified: servicemix/smx4/specs/trunk/jaxb-api-2.1/src/main/java/javax/xml/bind/ContextFinder.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/specs/trunk/jaxb-api-2.1/src/main/java/javax/xml/bind/ContextFinder.java?rev=801051&r1=801050&r2=801051&view=diff
==============================================================================
--- servicemix/smx4/specs/trunk/jaxb-api-2.1/src/main/java/javax/xml/bind/ContextFinder.java
(original)
+++ servicemix/smx4/specs/trunk/jaxb-api-2.1/src/main/java/javax/xml/bind/ContextFinder.java
Wed Aug  5 02:51:05 2009
@@ -32,6 +32,9 @@
 
     public static JAXBContext find(String contextPath, ClassLoader classLoader, Map properties)
throws JAXBException {
         String className = null;
+        if (contextPath == null || contextPath.length() == 0) {
+            throw new JAXBException("Invalid contextPath");
+        }
         String[] packages = contextPath.split(":");
         if (packages == null || packages.length == 0) {
             throw new JAXBException("Invalid contextPath");



Mime
View raw message