changeset 21445:9331776df031

8027015: AutoCloseable no longer implements @FunctionalInterface Reviewed-by: lagergren, sundar
author hannesw
date Tue, 22 Oct 2013 11:12:36 +0200
parents 72ad507e18e0
children 2fcb0f7e407f
files nashorn/test/script/basic/NASHORN-397.js
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/nashorn/test/script/basic/NASHORN-397.js	Tue Oct 22 14:27:52 2013 +0530
+++ b/nashorn/test/script/basic/NASHORN-397.js	Tue Oct 22 11:12:36 2013 +0200
@@ -35,11 +35,8 @@
     fail("typeof(5).x is not 'number'");
 }
 
-// It is function because PrintStream implements Closeable, which is
-// marked with @FunctionalInterface. Yes, this means calling a stream
-// like "stream()" closes it.
-if (typeof (java.lang.System.out) != 'function') {
-    fail("typeof java.lang.System.out is not 'object'");
+if (typeof (java.net.Proxy.NO_PROXY) != 'object') {
+    fail("typeof java.net.Proxy.NO_PROXY is not 'object'");
 }
 
 if (typeof (java.lang.Math.PI) != 'number') {