File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/jdk/sun/security/pkcs11/Serialize Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2003, 2018 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2003, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
4141public class SerializeProvider extends PKCS11Test {
4242
4343 public void main (Provider p ) throws Exception {
44+
4445 if (Security .getProvider (p .getName ()) != p ) {
45- System .out .println ("Provider not installed in Security, skipping" );
46- return ;
46+ Security .addProvider (p );
4747 }
4848
4949 ByteArrayOutputStream out = new ByteArrayOutputStream ();
@@ -57,7 +57,7 @@ public void main(Provider p) throws Exception {
5757 InputStream in = new ByteArrayInputStream (data );
5858 ObjectInputStream oin = new ObjectInputStream (in );
5959
60- Provider p2 = (Provider )oin .readObject ();
60+ Provider p2 = (Provider ) oin .readObject ();
6161
6262 System .out .println ("Reconstituted: " + p2 );
6363
You can’t perform that action at this time.
0 commit comments