Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to EISOP 3.42-eisop4 from 3.42-eisop3 #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 32 additions & 13 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,21 @@ jobs:
set -ex
if [ -d /tmp/$USER/plume-scripts ]; \
then git -C /tmp/$USER/plume-scripts pull -q > /dev/null 2>&1 ; \
else mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git ; \
else mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git ; \
fi
displayName: plume-scripts
- bash: |
set -ex
if [ -d /tmp/$USER/git-scripts ]; \
then git -C /tmp/$USER/git-scripts pull -q > /dev/null 2>&1 ; \
else mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git ; \
fi
displayName: git-scripts
# This creates ../jdk17u .
# If the depth is too small, the merge will fail.
- bash: |
set -ex
/tmp/$USER/plume-scripts/git-clone-related typetools jdk17u ../jdk17u -q --filter=blob:none
/tmp/$USER/git-scripts/git-clone-related typetools jdk17u ../jdk17u -q --depth 1
displayName: clone-related-jdk17u
- bash: |
set -ex
Expand Down Expand Up @@ -95,7 +102,9 @@ jobs:
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
displayName: test-cftests-all.sh
Expand All @@ -108,9 +117,11 @@ jobs:
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
# test-cftests-all.sh sometimes runs out of memory, but running its component parts in sequence does not.
# - bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
Expand Down Expand Up @@ -140,9 +151,11 @@ jobs:
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
displayName: test-cftests-all.sh
Expand All @@ -155,9 +168,11 @@ jobs:
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
displayName: test-cftests-all.sh
Expand All @@ -170,9 +185,11 @@ jobs:
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-daikon.sh)
displayName: test-daikon.sh
Expand All @@ -184,9 +201,11 @@ jobs:
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-plume-lib.sh)
displayName: test-plume-lib.sh
3 changes: 2 additions & 1 deletion src/java.base/share/classes/java/lang/Thread.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.checkerframework.checker.lock.qual.GuardSatisfied;
import org.checkerframework.checker.lock.qual.ReleasesNoLocks;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.checker.nullness.qual.PolyNull;
import org.checkerframework.dataflow.qual.Pure;
import org.checkerframework.dataflow.qual.SideEffectFree;
import org.checkerframework.framework.qual.AnnotatedFor;
Expand Down Expand Up @@ -1261,7 +1262,7 @@ public static int activeCount() {
* if {@link java.lang.ThreadGroup#checkAccess} determines that
* the current thread cannot access its thread group
*/
public static int enumerate(Thread tarray[]) {
public static int enumerate(@PolyNull Thread[] tarray) {
return currentThread().getThreadGroup().enumerate(tarray);
}

Expand Down
14 changes: 8 additions & 6 deletions src/java.base/share/classes/java/net/NetworkInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.dataflow.qual.Pure;
import org.checkerframework.dataflow.qual.SideEffectFree;
import org.checkerframework.framework.qual.AnnotatedFor;

import java.util.Arrays;
import java.util.Enumeration;
Expand All @@ -49,6 +50,7 @@
*
* @since 1.4
*/
@AnnotatedFor("nullness")
public final class NetworkInterface {
private String name;
private String displayName;
Expand Down Expand Up @@ -225,7 +227,7 @@ public Stream<NetworkInterface> subInterfaces() {
* @return The {@code NetworkInterface} this interface is attached to.
* @since 1.6
*/
public NetworkInterface getParent() {
public @Nullable NetworkInterface getParent() {
return parent;
}

Expand All @@ -252,7 +254,7 @@ public int getIndex() {
* @return a non-empty string representing the display name of this network
* interface, or null if no display name is available.
*/
public String getDisplayName() {
public @Nullable String getDisplayName() {
/* strict TCK conformance */
return "".equals(displayName) ? null : displayName;
}
Expand All @@ -273,7 +275,7 @@ public String getDisplayName() {
* @throws NullPointerException
* If the specified name is {@code null}.
*/
public static NetworkInterface getByName(String name) throws SocketException {
public static @Nullable NetworkInterface getByName(String name) throws SocketException {
if (name == null)
throw new NullPointerException();
return getByName0(name);
Expand All @@ -290,7 +292,7 @@ public static NetworkInterface getByName(String name) throws SocketException {
* @see #getIndex()
* @since 1.7
*/
public static NetworkInterface getByIndex(int index) throws SocketException {
public static @Nullable NetworkInterface getByIndex(int index) throws SocketException {
if (index < 0)
throw new IllegalArgumentException("Interface index can't be negative");
return getByIndex0(index);
Expand Down Expand Up @@ -318,7 +320,7 @@ public static NetworkInterface getByIndex(int index) throws SocketException {
* @throws NullPointerException
* If the specified address is {@code null}.
*/
public static NetworkInterface getByInetAddress(InetAddress addr) throws SocketException {
public static @Nullable NetworkInterface getByInetAddress(InetAddress addr) throws SocketException {
if (addr == null) {
throw new NullPointerException();
}
Expand Down Expand Up @@ -519,7 +521,7 @@ public boolean supportsMulticast() throws SocketException {
* @throws SocketException if an I/O error occurs.
* @since 1.6
*/
public byte[] getHardwareAddress() throws SocketException {
public byte @Nullable [] getHardwareAddress() throws SocketException {
@SuppressWarnings("removal")
SecurityManager sec = System.getSecurityManager();
if (sec != null) {
Expand Down
19 changes: 10 additions & 9 deletions src/java.base/share/classes/java/security/cert/TrustAnchor.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
package java.security.cert;

import org.checkerframework.checker.interning.qual.UsesObjectEquals;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.framework.qual.AnnotatedFor;

import java.io.IOException;
Expand Down Expand Up @@ -64,7 +65,7 @@
* @since 1.4
* @author Sean Mullan
*/
@AnnotatedFor({"interning"})
@AnnotatedFor({"interning", "nullness"})
public @UsesObjectEquals class TrustAnchor {

private final PublicKey pubKey;
Expand Down Expand Up @@ -131,7 +132,7 @@
* @throws NullPointerException if the specified
* {@code X509Certificate} is {@code null}
*/
public TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints)
public TrustAnchor(X509Certificate trustedCert, byte @Nullable [] nameConstraints)
{
if (trustedCert == null)
throw new NullPointerException("the trustedCert parameter must " +
Expand Down Expand Up @@ -171,7 +172,7 @@ public TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints)
* @since 1.5
*/
public TrustAnchor(X500Principal caPrincipal, PublicKey pubKey,
byte[] nameConstraints) {
byte @Nullable [] nameConstraints) {
if ((caPrincipal == null) || (pubKey == null)) {
throw new NullPointerException();
}
Expand Down Expand Up @@ -213,7 +214,7 @@ public TrustAnchor(X500Principal caPrincipal, PublicKey pubKey,
* @throws NullPointerException if the specified {@code caName} or
* {@code pubKey} parameter is {@code null}
*/
public TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints)
public TrustAnchor(String caName, PublicKey pubKey, byte @Nullable [] nameConstraints)
{
if (pubKey == null)
throw new NullPointerException("the pubKey parameter must be " +
Expand All @@ -238,7 +239,7 @@ public TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints)
* @return a trusted {@code X509Certificate} or {@code null}
* if the trust anchor was not specified as a trusted certificate
*/
public final X509Certificate getTrustedCert() {
public final @Nullable X509Certificate getTrustedCert() {
return this.trustedCert;
}

Expand All @@ -250,7 +251,7 @@ public final X509Certificate getTrustedCert() {
* public key and name or X500Principal pair
* @since 1.5
*/
public final X500Principal getCA() {
public final @Nullable X500Principal getCA() {
return this.caPrincipal;
}

Expand All @@ -262,7 +263,7 @@ public final X500Principal getCA() {
* {@code null} if the trust anchor was not specified as a trusted
* public key and name or X500Principal pair
*/
public final String getCAName() {
public final @Nullable String getCAName() {
return this.caName;
}

Expand All @@ -273,7 +274,7 @@ public final String getCAName() {
* if the trust anchor was not specified as a trusted public key and name
* or X500Principal pair
*/
public final PublicKey getCAPublicKey() {
public final @Nullable PublicKey getCAPublicKey() {
return this.pubKey;
}

Expand Down Expand Up @@ -318,7 +319,7 @@ private void setNameConstraints(byte[] bytes) {
* a NameConstraints extension used for checking name constraints,
* or {@code null} if not set.
*/
public final byte [] getNameConstraints() {
public final byte @Nullable [] getNameConstraints() {
return ncBytes == null ? null : ncBytes.clone();
}

Expand Down