1 |
|
/* |
2 |
< |
* Copyright 1997-1998 Sun Microsystems, Inc. All Rights Reserved. |
2 |
> |
* Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved. |
3 |
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
|
* |
5 |
|
* This code is free software; you can redistribute it and/or modify it |
16 |
|
* 2 along with this work; if not, write to the Free Software Foundation, |
17 |
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
18 |
|
* |
19 |
< |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
20 |
< |
* CA 95054 USA or visit www.sun.com if you need additional information or |
21 |
< |
* have any questions. |
19 |
> |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 |
> |
* or visit www.oracle.com if you need additional information or have any |
21 |
> |
* questions. |
22 |
|
*/ |
23 |
|
|
24 |
|
/* @test |
45 |
|
catch (IllegalArgumentException e1) { |
46 |
|
testSucceeded = true; |
47 |
|
} |
48 |
< |
if(!testSucceeded) |
48 |
> |
if (!testSucceeded) |
49 |
|
throw new Exception("Hashtable, negative load factor"); |
50 |
|
|
51 |
|
testSucceeded = false; |
56 |
|
catch (IllegalArgumentException e1) { |
57 |
|
testSucceeded = true; |
58 |
|
} |
59 |
< |
if(!testSucceeded) |
59 |
> |
if (!testSucceeded) |
60 |
|
throw new Exception("Hashtable, NaN load factor"); |
61 |
|
|
62 |
|
testSucceeded = false; |
67 |
|
catch (IllegalArgumentException e1) { |
68 |
|
testSucceeded = true; |
69 |
|
} |
70 |
< |
if(!testSucceeded) |
70 |
> |
if (!testSucceeded) |
71 |
|
throw new Exception("HashMap, negative load factor"); |
72 |
|
|
73 |
|
testSucceeded = false; |
78 |
|
catch (IllegalArgumentException e1) { |
79 |
|
testSucceeded = true; |
80 |
|
} |
81 |
< |
if(!testSucceeded) |
81 |
> |
if (!testSucceeded) |
82 |
|
throw new Exception("HashMap, NaN load factor"); |
83 |
|
|
84 |
|
|
90 |
|
catch (IllegalArgumentException e1) { |
91 |
|
testSucceeded = true; |
92 |
|
} |
93 |
< |
if(!testSucceeded) |
93 |
> |
if (!testSucceeded) |
94 |
|
throw new Exception("HashSet, negative load factor"); |
95 |
|
|
96 |
|
testSucceeded = false; |
101 |
|
catch (IllegalArgumentException e1) { |
102 |
|
testSucceeded = true; |
103 |
|
} |
104 |
< |
if(!testSucceeded) |
104 |
> |
if (!testSucceeded) |
105 |
|
throw new Exception("HashSet, NaN load factor"); |
106 |
|
|
107 |
|
testSucceeded = false; |
112 |
|
catch (IllegalArgumentException e1) { |
113 |
|
testSucceeded = true; |
114 |
|
} |
115 |
< |
if(!testSucceeded) |
115 |
> |
if (!testSucceeded) |
116 |
|
throw new Exception("WeakHashMap, negative load factor"); |
117 |
|
|
118 |
|
testSucceeded = false; |
123 |
|
catch (IllegalArgumentException e1) { |
124 |
|
testSucceeded = true; |
125 |
|
} |
126 |
< |
if(!testSucceeded) |
126 |
> |
if (!testSucceeded) |
127 |
|
throw new Exception("WeakHashMap, NaN load factor"); |
128 |
|
|
129 |
|
// Make sure that legal creates don't throw exceptions |