Community
Participate
Working Groups
20021212 IClasspathEntry.getExclusionPattern returns a IPath[] to describe the exclusion patterns. Even the format of the pattern looks like a path, it isn't. Special characters '*', '?' '**' can be contained. The pattern makes a difference between ending with a slash and without. Paths don't (new Path("src").equals(new Path("src/")). For these reasons I would think it would be better to use String instead of IPath
Exclusion patterns are inherently paths. IPath remembers a trailing separator, the #equals doesn't care, this is another issue which should be debated with IPath providers. Also IPaths provide support for adding segments, trimming and sanity check (no contiguous separators). We won't change this just because the equals implementation doesn't meet your expectation.
Closing