Note: Much improved versions of this post have been published to JAXenter.de and JAXenter.com: Erzeugungsmuster mit Java 8 Lambdas Creational patterns with Java 8 lambdas I hope you enjoy reading them as much as I enjoyed writing them! Sometimes I’m under the impression that one of my favorite DI frameworks, Spring, is the butt of […]
Read the complete article »
The following statement "foo baz".replaceAll("baz","$bar");"foo baz".replaceAll("baz","$bar"); will present you an java.lang.IllegalArgumentException: Illegal group reference exception as the replacement string can contain backreferences to the search pattern as stated in Mather#replaceAll: This method first resets this matcher. It then scans the input sequence looking for matches of the pattern. Characters that are not part of any […]
Read the complete article »