For example, if you try to create a rule like:
rule com.example.SomeClass$SomeNestedClass
com.example.internal.SomeClass$SomeNestedClass
it won't rename the class because the $ ends up interpreted as the regex
end-of-line pattern, which causes the Wildcard object to fail the match.
I fixed this by adding code to Wildcard.java:
private static Pattern dollar = Pattern.compile("\\$");
(then in the constructor after the other replaceAllLiteral calls)
regex = replaceAllLiteral(dollar, regex, "\\$");
Original issue reported on code.google.com by paraq...@gmail.com on 23 Nov 2009 at 7:21
Original issue reported on code.google.com by
paraq...@gmail.com
on 23 Nov 2009 at 7:21