提交 5b23be60 编写于 作者: H hannesw

8223518: Unexpected exception in jjs

Reviewed-by: sundar, mschoene, rhalade, jlaskey
上级 ab60a8dd
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -82,6 +82,8 @@ public class JdkRegExp extends RegExp {
}
} catch (final PatternSyntaxException e2) {
throwParserException("syntax", e2.getMessage());
} catch (StackOverflowError e3) {
throw new RuntimeException(e3);
}
}
......
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -82,6 +82,8 @@ public class JoniRegExp extends RegExp {
}
} catch (final PatternSyntaxException | JOniException e2) {
throwParserException("syntax", e2.getMessage());
} catch (StackOverflowError e3) {
throw new RuntimeException(e3);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册