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

Bug 328252

Summary: matches operator for two char sequences treats one as pattern
Product: z_Archived Reporter: Henrik Lindberg <henrik.lindberg>
Component: b3Assignee: Project Inbox <b3.engine-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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. ~"..."