Author: mriou
Date: Tue Aug 29 07:47:44 2006
New Revision: 438082
URL: http://svn.apache.org/viewvc?rev=438082&view=rev
Log:
ODE-38 Changed XPath compilation errors to warnings.
Modified:
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java
Modified:
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java
URL:
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java?rev=438082&r1=438081&r2=438082&view=diff
==============================================================================
---
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java
(original)
+++
incubator/ode/trunk/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/compiler/XPath20ExpressionCompilerBPEL20.java
Tue Aug 29 07:47:44 2006
@@ -131,10 +131,6 @@
xpf.setXPathVariableResolver(new
JaxpVariableResolver(_compilerContext, out));
XPathEvaluator xpe = (XPathEvaluator) xpf.newXPath();
- for (String nsuri : source.getNamespaceContext().getUriSet()) {
- System.out.println("=> " + nsuri);
- }
-
xpe.setNamespaceContext(source.getNamespaceContext());
XPathExpression expr = xpe.compile(xpathStr);
// Here we're "faking" an evaluation to parse properly variables
and functions and
@@ -143,7 +139,7 @@
expr.evaluate(DOMUtils.newDocument());
} catch (XPathExpressionException e) {
e.printStackTrace();
- throw new CompilationException(__msgs.errXPath20Syntax(xpathStr,
e.toString()), e);
+ throw new CompilationException(__msgs.warnXPath20Syntax(xpathStr,
e.toString()), e);
} catch (WrappedResolverException wre) {
if (wre._compilationMsg != null) throw new
CompilationException(wre._compilationMsg, wre);
if (wre.getCause() instanceof CompilationException) throw
(CompilationException)wre.getCause();