Author: dennyxu
Date: 2009-12-07 00:33:39 -0500 (Mon, 07 Dec 2009)
New Revision: 19067
Modified:
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/xpath/XPathValidator.java
Log:
JBIDE-5336:Wait duration gives error
Modified:
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/xpath/XPathValidator.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/xpath/XPathValidator.java 2009-12-07
05:14:33 UTC (rev 19066)
+++
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/xpath/XPathValidator.java 2009-12-07
05:33:39 UTC (rev 19067)
@@ -364,6 +364,11 @@
IProblem problem;
Expr expr = xpathExpr ;
+
+ if( expr instanceof UnaryExpr){
+ expr = ((UnaryExpr)expr).getExpr();
+ }
+
if (expr instanceof LiteralExpr) {
LiteralExpr lexpr = (LiteralExpr) expr;
try {