< prev index next >

test/jdk/javax/naming/InitialContext/EnvClone.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 42,52 **** super(lazy); } public static void main(String[] args) throws Exception { ! Hashtable env = new Hashtable(5); EnvClone ctx = new EnvClone(env); if (env == ctx.myProps) { throw new Exception( "Test failed: constructor didn't clone environment"); --- 42,52 ---- super(lazy); } public static void main(String[] args) throws Exception { ! Hashtable<Object, Object> env = new Hashtable<>(5); EnvClone ctx = new EnvClone(env); if (env == ctx.myProps) { throw new Exception( "Test failed: constructor didn't clone environment");
< prev index next >