Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320539

Summary: "WAIT" literals are flagged as errors
Product: z_Archived Reporter: Robert Brodt <bbrodt>
Component: BPELAssignee: BPEL Validation Inbox <bpel.validation-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: grid.qian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch for XPathValidator.java bbrodt: iplog+

Description Robert Brodt CLA 2010-07-21 14:03:37 EDT
Build Identifier: 20100617-1415

Setting either a Date or Duration literal expression in a WAIT activity fails validation.

No known workaround.

Reproducible: Always

Steps to Reproduce:
1. Create a WAIT activity
2. Set the Expression Language to "Same as process" and Expression Type to "Literal"
3. save file and switch to Problems view
Comment 1 Robert Brodt CLA 2010-07-21 14:05:53 EDT
Created attachment 174894 [details]
patch for XPathValidator.java

LiteralExpr's are UnaryExpr's first: need to extract the Literal expression from the Unary expression in checkDurationExpression() and checkLiteralExpression()
Comment 2 Robert Brodt CLA 2010-07-21 18:23:01 EDT
https://jira.jboss.org/browse/JBIDE-5336
Comment 3 grid.qian CLA 2010-07-23 02:22:05 EDT
apply and test the patch from Bob
Comment 4 Robert Brodt CLA 2012-04-18 15:05:10 EDT
Comment on attachment 174894 [details]
patch for XPathValidator.java

Updated iplog flag for v1.0 release review.