1.1 --- a/test/script/basic/NASHORN-397.js Tue Oct 22 14:27:52 2013 +0530 1.2 +++ b/test/script/basic/NASHORN-397.js Tue Oct 22 11:12:36 2013 +0200 1.3 @@ -35,11 +35,8 @@ 1.4 fail("typeof(5).x is not 'number'"); 1.5 } 1.6 1.7 -// It is function because PrintStream implements Closeable, which is 1.8 -// marked with @FunctionalInterface. Yes, this means calling a stream 1.9 -// like "stream()" closes it. 1.10 -if (typeof (java.lang.System.out) != 'function') { 1.11 - fail("typeof java.lang.System.out is not 'object'"); 1.12 +if (typeof (java.net.Proxy.NO_PROXY) != 'object') { 1.13 + fail("typeof java.net.Proxy.NO_PROXY is not 'object'"); 1.14 } 1.15 1.16 if (typeof (java.lang.Math.PI) != 'number') {