Fri, 24 May 2019 16:53:44 +0200
8223518: Unexpected exception in jjs
Reviewed-by: sundar, mschoene, rhalade, jlaskey
1.1 --- a/src/jdk/nashorn/internal/runtime/regexp/JdkRegExp.java Thu Sep 26 07:17:43 2019 +0100 1.2 +++ b/src/jdk/nashorn/internal/runtime/regexp/JdkRegExp.java Fri May 24 16:53:44 2019 +0200 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -82,6 +82,8 @@ 1.11 } 1.12 } catch (final PatternSyntaxException e2) { 1.13 throwParserException("syntax", e2.getMessage()); 1.14 + } catch (StackOverflowError e3) { 1.15 + throw new RuntimeException(e3); 1.16 } 1.17 } 1.18
2.1 --- a/src/jdk/nashorn/internal/runtime/regexp/JoniRegExp.java Thu Sep 26 07:17:43 2019 +0100 2.2 +++ b/src/jdk/nashorn/internal/runtime/regexp/JoniRegExp.java Fri May 24 16:53:44 2019 +0200 2.3 @@ -1,5 +1,5 @@ 2.4 /* 2.5 - * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 2.6 + * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. 2.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2.8 * 2.9 * This code is free software; you can redistribute it and/or modify it 2.10 @@ -82,6 +82,8 @@ 2.11 } 2.12 } catch (final PatternSyntaxException | JOniException e2) { 2.13 throwParserException("syntax", e2.getMessage()); 2.14 + } catch (StackOverflowError e3) { 2.15 + throw new RuntimeException(e3); 2.16 } 2.17 } 2.18