# HG changeset patch # User hannesw # Date 1382433156 -7200 # Node ID 6d339d98074e064f7de533f72b8dc8ff4d264ebd # Parent d8d5b7919c579814ccb8605928edc135fb96f651 8027015: AutoCloseable no longer implements @FunctionalInterface Reviewed-by: lagergren, sundar diff -r d8d5b7919c57 -r 6d339d98074e test/script/basic/NASHORN-397.js --- a/test/script/basic/NASHORN-397.js Tue Oct 22 14:27:52 2013 +0530 +++ b/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') {