Author: mriou
Date: Tue Aug 29 08:19:58 2006
New Revision: 438096
URL: http://svn.apache.org/viewvc?rev=438096&view=rev
Log:
Warnings are really warnings (and don't abort the compilation).
Modified:
incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelCompiler.java
Modified:
incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelCompiler.java
URL:
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelCompiler.java?rev=438096&r1=438095&r2=438096&view=diff
==============================================================================
---
incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelCompiler.java
(original)
+++
incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelCompiler.java
Tue Aug 29 08:19:58 2006
@@ -205,7 +205,7 @@
return result;
}
- public OScope.Variable resolveMessageVariable(String inputVar) throws
CompilationException {
+ public OScope.Variable resolveMessageVariable(String inputVar) throws
CompilationException {
OScope.Variable var = resolveVariable(inputVar);
if (!(var.type instanceof OMessageVarType))
throw new
CompilationException(__cmsgs.errMessageVariableRequired(inputVar));
@@ -568,7 +568,12 @@
assert _structureStack.size() == 0;
- if (!_errors.isEmpty())
+ boolean hasErrors = false;
+ for (CompilationMessage msg : _errors) {
+ if (msg.severity >= CompilationMessage.ERROR) hasErrors = true;
+ }
+
+ if (hasErrors)
throw new
CompilationException(__cmsgs.errCompilationErrors(_errors.size()));
return _oprocess;