8071991: Build errors in 8u-dev after backporting JDK-8067139 and JDK-8066232

Fri, 30 Jan 2015 12:33:29 +0100

author
attila
date
Fri, 30 Jan 2015 12:33:29 +0100
changeset 1227
a4dc8b13c9fd
parent 1226
8b3f832bea55
child 1228
3f7e205c2c44

8071991: Build errors in 8u-dev after backporting JDK-8067139 and JDK-8066232
Reviewed-by: hannesw, lagergren

src/jdk/nashorn/internal/ir/LexicalContext.java file | annotate | diff | comparison | revisions
test/script/basic/JDK-8066232.js file | annotate | diff | comparison | revisions
     1.1 --- a/src/jdk/nashorn/internal/ir/LexicalContext.java	Wed Jan 28 17:58:08 2015 +0100
     1.2 +++ b/src/jdk/nashorn/internal/ir/LexicalContext.java	Fri Jan 30 12:33:29 2015 +0100
     1.3 @@ -599,7 +599,7 @@
     1.4       * @param name name of the label
     1.5       * @return LabelNode if found, null otherwise
     1.6       */
     1.7 -    private LabelNode findLabel(final String name) {
     1.8 +    public LabelNode findLabel(final String name) {
     1.9          for (final Iterator<LabelNode> iter = new NodeIterator<>(LabelNode.class, getCurrentFunction()); iter.hasNext(); ) {
    1.10              final LabelNode next = iter.next();
    1.11              if (next.getLabelName().equals(name)) {
     2.1 --- a/test/script/basic/JDK-8066232.js	Wed Jan 28 17:58:08 2015 +0100
     2.2 +++ b/test/script/basic/JDK-8066232.js	Fri Jan 30 12:33:29 2015 +0100
     2.3 @@ -34,3 +34,5 @@
     2.4      } catch(e if 1) {
     2.5      }
     2.6  })()
     2.7 +
     2.8 +print("SUCCESS");

mercurial