diff options
Diffstat (limited to 'libjava/classpath/java/util/regex/Pattern.java')
-rw-r--r-- | libjava/classpath/java/util/regex/Pattern.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libjava/classpath/java/util/regex/Pattern.java b/libjava/classpath/java/util/regex/Pattern.java index 6a31ef9bfd2..d39f1cfb04d 100644 --- a/libjava/classpath/java/util/regex/Pattern.java +++ b/libjava/classpath/java/util/regex/Pattern.java @@ -103,8 +103,11 @@ public final class Pattern implements Serializable } catch (REException e) { - throw new PatternSyntaxException(e.getMessage(), + PatternSyntaxException pse; + pse = new PatternSyntaxException(e.getMessage(), regex, e.getPosition()); + pse.initCause(e); + throw pse; } } |