Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319477 - matches of structures with patterns is not done correctly
Summary: matches of structures with patterns is not done correctly
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: b3 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 304496
  Show dependency tree
 
Reported: 2010-07-10 20:09 EDT by Henrik Lindberg CLA
Modified: 2017-09-13 11:51 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Lindberg CLA 2010-07-10 20:09:28 EDT
This functionality for matches that compares lists and maps needs to be revisited now that literal simple pattern (i.e. ~"a*a" is supported. 

When comparing list == list, the content should be compared with equals.
When comparing with ~= elements should be matched using patterns if there are any.

Note that ANY '_' is always equal to just any irrespective of the way the comparison is made, to find an ANY, an identiical match must be done with ===
Comment 1 Henrik Lindberg CLA 2010-10-02 18:34:32 EDT
Fixed in revision 1320.

SimplePattern is now supported for matches operator, and matches on List and Map was already performed using call to matches operator function.

Tests updated.