8156820: Nashorn nightly test failure after fix for 8156738
authorsundar
Thu, 12 May 2016 13:07:21 +0530
changeset 37921 4c013cbb5e27
parent 37920 0251d4f16648
child 37922 ca47acad2d47
8156820: Nashorn nightly test failure after fix for 8156738 Reviewed-by: hannesw, mhaupt
nashorn/test/src/jdk/dynalink/test/LinkedCallSiteLocationTest.java
--- a/nashorn/test/src/jdk/dynalink/test/LinkedCallSiteLocationTest.java	Wed May 11 19:24:29 2016 +0200
+++ b/nashorn/test/src/jdk/dynalink/test/LinkedCallSiteLocationTest.java	Thu May 12 13:07:21 2016 +0530
@@ -71,7 +71,7 @@
     }
 
     private static int getLineNumber() {
-        return StackWalker.getInstance().walk(s -> s.skip(1).findFirst().get().getLineNumber().getAsInt());
+        return StackWalker.getInstance().walk(s -> s.skip(1).findFirst().get().getLineNumber());
     }
 
     public static class TestClass1 {