changeset 1684:ad496474746e

8156820: Nashorn nightly test failure after fix for 8156738 Reviewed-by: hannesw, mhaupt
author sundar
date Thu, 12 May 2016 13:07:21 +0530
parents 21421eec73d6
children 4b118e012ac4
files test/src/jdk/dynalink/test/LinkedCallSiteLocationTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/src/jdk/dynalink/test/LinkedCallSiteLocationTest.java	Wed May 11 19:24:29 2016 +0200
+++ b/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 {