mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8339735: Remove references to Applet in core-libs/security APIs
Reviewed-by: coffeys, naoto, iris, rriggs, lancea, mullan
This commit is contained in:
parent
2ada313cdd
commit
5f3e7aa833
7 changed files with 18 additions and 19 deletions
|
@ -71,7 +71,7 @@ the variable indicates that it is to stop running. To ensure prompt
|
|||
communication of the stop-request, the variable must be
|
||||
<code>volatile</code> (or access to the variable must be
|
||||
synchronized).</p>
|
||||
<p>For example, suppose your applet contains the following
|
||||
<p>For example, suppose your application contains the following
|
||||
<code>start</code>, <code>stop</code> and <code>run</code>
|
||||
methods:</p>
|
||||
<pre>
|
||||
|
@ -92,12 +92,12 @@ methods:</p>
|
|||
Thread.sleep(interval);
|
||||
} catch (InterruptedException e){
|
||||
}
|
||||
repaint();
|
||||
blink();
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
You can avoid the use of <code>Thread.stop</code> by replacing the
|
||||
applet's <code>stop</code> and <code>run</code> methods with:
|
||||
application's <code>stop</code> and <code>run</code> methods with:
|
||||
<pre>
|
||||
private volatile Thread blinker;
|
||||
|
||||
|
@ -112,7 +112,7 @@ applet's <code>stop</code> and <code>run</code> methods with:
|
|||
Thread.sleep(interval);
|
||||
} catch (InterruptedException e){
|
||||
}
|
||||
repaint();
|
||||
blink();
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2024, 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
|
||||
|
@ -373,8 +373,7 @@ public abstract class HttpURLConnection extends URLConnection {
|
|||
|
||||
/**
|
||||
* Sets whether HTTP redirects (requests with response code 3xx) should
|
||||
* be automatically followed by this class. True by default. Applets
|
||||
* cannot change this variable.
|
||||
* be automatically followed by this class. True by default.
|
||||
* <p>
|
||||
* If there is a security manager, this method first calls
|
||||
* the security manager's {@code checkSetFactory} method
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2024, 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
|
||||
|
@ -36,7 +36,7 @@ import java.util.Iterator;
|
|||
* zero-argument constructor and some number of associated charset
|
||||
* implementation classes. Charset providers may be installed in an instance
|
||||
* of the Java platform as extensions. Providers may also be made available by
|
||||
* adding them to the applet or application class path or by some other
|
||||
* adding them to the application class path or by some other
|
||||
* platform-specific means. Charset providers are looked up via the current
|
||||
* thread's {@link java.lang.Thread#getContextClassLoader() context class
|
||||
* loader}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue