Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328252 - matches operator for two char sequences treats one as pattern
Summary: matches operator for two char sequences treats one as pattern
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:
 
Reported: 2010-10-20 11:12 EDT by Henrik Lindberg CLA
Modified: 2017-09-13 11:52 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-10-20 11:12:33 EDT
Before there was support for simple patterns ~"abc?xyz" the matches operator considered the rhs to be a simple pattern if it was a String. This is surprising and should be removed.
Comment 1 Henrik Lindberg CLA 2010-10-20 22:16:53 EDT
Removed the special match call for two CharSequences - they now compare using equals.
Modified tests that used this to use SimplePatterns instead - i.e. ~"..."