Author: woodroy
Date: Thu Nov 12 17:25:59 2009
New Revision: 835459
URL: http://svn.apache.org/viewvc?rev=835459&view=rev
Log:
Need to insure that the dialect detector remains backwards compatible
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java?rev=835459&r1=835458&r2=835459&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
Thu Nov 12 17:25:59 2009
@@ -222,6 +222,7 @@
" Vendor: " + vendor + "\n" +
" Version: " + version);
}
+
// For the moment, the dialect detection is quite simple, but in the
future we will probably
// have to differentiate by version number
if (vendor != null && vendor.toLowerCase().indexOf("woodstox") != -1) {
@@ -230,7 +231,7 @@
return new SJSXPDialect(false);
} else if ("BEA".equals(vendor)) {
return BEADialect.INSTANCE;
- } else if ("IBM".equals(symbolicName)) {
+ } else if ("IBM".equals(vendor) ||
"com.ibm.ws.prereq.banshee".equals(symbolicName)) {
return XLXP2Dialect.INSTANCE;
} else {
return null;