File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
23
23
24
24
/*
25
25
* @test
26
- * @bug 8201793
26
+ * @bug 8201793 8285690
27
27
* @summary Test Reference::clone to throw CloneNotSupportedException
28
28
*/
29
29
@@ -47,7 +47,9 @@ public void test() {
47
47
CloneableReference ref = new CloneableReference (o );
48
48
try {
49
49
ref .clone ();
50
- } catch (CloneNotSupportedException e ) {}
50
+ } catch (CloneNotSupportedException e ) {
51
+ throw new RuntimeException ("CloneableReference::clone should not throw CloneNotSupportedException" );
52
+ }
51
53
}
52
54
53
55
private void assertCloneNotSupported (CloneableRef ref ) {
You can’t perform that action at this time.
0 commit comments