import java.util.regex.Pattern;

class MalformedRegex {
  Pattern BACKSLASH_PATTERN = Pattern.compile("<error descr="Illegal/unsupported escape sequence">\</error>\" , Pattern.LITERAL);

  private static final String ASTERISK = "<error descr="Dangling metacharacter">*</error>";

  public void foo() {
    "bar".matches(".*");
    Pattern.compile(<warning descr="Regular expression 'ASTERISK' is malformed: Dangling meta character '*'">ASTERISK</warning>);
  }
}
@@ -148,24 +148,25 @@
 uence%22%3E%5C
+%5C
 %3C/error%3E
 %5C%22 , Pat
@@ -157,17 +157,16 @@
 %3C/error%3E
-%5C
 %22 , Patt

fix testdata