提交 7c73afd9 编写于 作者: A amurillo

Merge

...@@ -321,9 +321,13 @@ $(JDK_IMAGE_DIR)/jre/lib/ext/meta-index: $(JDKJRE_LIB_TARGETS) ...@@ -321,9 +321,13 @@ $(JDK_IMAGE_DIR)/jre/lib/ext/meta-index: $(JDKJRE_LIB_TARGETS)
################################################################################ ################################################################################
# /man dir # /man dir
#
# All variables in this section are assigned with simple =, without :, to enable
# more selective overriding from the custom version of this file.
#
# Avoid evaluating this whole section on windows for speed and stability # Avoid evaluating this whole section on windows for speed and stability
ifneq ($(OPENJDK_TARGET_OS), windows) ifneq ($(OPENJDK_TARGET_OS), windows)
JRE_MAN_PAGES := \ JRE_MAN_PAGES = \
java.1 \ java.1 \
jjs.1 \ jjs.1 \
keytool.1 \ keytool.1 \
...@@ -374,28 +378,20 @@ ifneq ($(OPENJDK_TARGET_OS), windows) ...@@ -374,28 +378,20 @@ ifneq ($(OPENJDK_TARGET_OS), windows)
wsimport.1 \ wsimport.1 \
xjc.1 xjc.1
ifndef OPENJDK
JDK_MAN_PAGES += \
jvisualvm.1 \
jmc.1 \
#
endif
# This variable is potentially overridden in the closed makefile. # This variable is potentially overridden in the closed makefile.
MAN_SRC_BASEDIR ?= $(JDK_TOPDIR)/src MAN_SRC_BASEDIR ?= $(JDK_TOPDIR)/src
ifeq ($(OPENJDK_TARGET_OS), linux) ifeq ($(OPENJDK_TARGET_OS), linux)
MAN_SRC_DIR := $(MAN_SRC_BASEDIR)/linux/doc MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/linux/doc
MAN1_SUBDIR := man MAN1_SUBDIR = man
endif endif
ifeq ($(OPENJDK_TARGET_OS), solaris) ifeq ($(OPENJDK_TARGET_OS), solaris)
MAN_SRC_DIR := $(MAN_SRC_BASEDIR)/solaris/doc MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/solaris/doc
MAN1_SUBDIR := sun/man/man1 MAN1_SUBDIR = sun/man/man1
JDK_MAN_PAGES := $(filter-out jmc.1, $(JDK_MAN_PAGES))
endif endif
ifeq ($(OPENJDK_TARGET_OS), macosx) ifeq ($(OPENJDK_TARGET_OS), macosx)
MAN_SRC_DIR := $(MAN_SRC_BASEDIR)/bsd/doc MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/bsd/doc
MAN1_SUBDIR := man MAN1_SUBDIR = man
endif endif
$(JRE_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/% $(JRE_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/%
...@@ -470,33 +466,33 @@ ifneq ($(OPENJDK_TARGET_OS), windows) ...@@ -470,33 +466,33 @@ ifneq ($(OPENJDK_TARGET_OS), windows)
endif endif
ifeq ($(OPENJDK_TARGET_OS), linux) ifeq ($(OPENJDK_TARGET_OS), linux)
JRE_MAN_PAGE_LIST := $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \ JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \ $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \
$(JRE_IMAGE_DIR)/man/ja $(JRE_IMAGE_DIR)/man/ja
JDK_MAN_PAGE_LIST := $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \ JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \ $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \
$(JDK_IMAGE_DIR)/man/ja $(JDK_IMAGE_DIR)/man/ja
endif endif
ifeq ($(OPENJDK_TARGET_OS), solaris) ifeq ($(OPENJDK_TARGET_OS), solaris)
JRE_MAN_PAGE_LIST := $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \ JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja/man1/, $(JRE_MAN_PAGES)) \ $(addprefix $(JRE_IMAGE_DIR)/man/ja/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \ $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JRE_MAN_PAGES)) $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JRE_MAN_PAGES))
JDK_MAN_PAGE_LIST := $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \ JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja/man1/, $(JDK_MAN_PAGES)) \ $(addprefix $(JDK_IMAGE_DIR)/man/ja/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \ $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JDK_MAN_PAGES)) $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JDK_MAN_PAGES))
endif endif
ifeq ($(OPENJDK_TARGET_OS), macosx) ifeq ($(OPENJDK_TARGET_OS), macosx)
JRE_MAN_PAGE_LIST := $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \ JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \
$(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \ $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \
$(JRE_IMAGE_DIR)/man/ja $(JRE_IMAGE_DIR)/man/ja
JDK_MAN_PAGE_LIST := $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \ JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \
$(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \ $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \
$(JDK_IMAGE_DIR)/man/ja $(JDK_IMAGE_DIR)/man/ja
endif endif
...@@ -750,6 +746,13 @@ ifneq ($(POST_STRIP_CMD), ) ...@@ -750,6 +746,13 @@ ifneq ($(POST_STRIP_CMD), )
endif endif
################################################################################
# Include the custom makefile right here, after all variables have been defined
# so that they may be overridden, but before the main targets are declared, so
# that overriding has an effect.
-include $(CUSTOM_MAKE_DIR)/Images.gmk
################################################################################ ################################################################################
# Main targets # Main targets
...@@ -800,4 +803,3 @@ endif # Profile ...@@ -800,4 +803,3 @@ endif # Profile
.PHONY: default images jre-image jdk-image .PHONY: default images jre-image jdk-image
-include $(CUSTOM_MAKE_DIR)/Images.gmk
...@@ -150,10 +150,11 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> { ...@@ -150,10 +150,11 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> {
/** /**
* Returns a stream consisting of the results of replacing each element of * Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the * this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping * the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty * {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.) * have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
* *
* <p>This is an <a href="package-summary.html#StreamOps">intermediate * <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>. * operation</a>.
......
...@@ -146,10 +146,11 @@ public interface IntStream extends BaseStream<Integer, IntStream> { ...@@ -146,10 +146,11 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
/** /**
* Returns a stream consisting of the results of replacing each element of * Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the * this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping * the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty * {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.) * have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
* *
* <p>This is an <a href="package-summary.html#StreamOps">intermediate * <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>. * operation</a>.
......
...@@ -151,10 +151,11 @@ public interface LongStream extends BaseStream<Long, LongStream> { ...@@ -151,10 +151,11 @@ public interface LongStream extends BaseStream<Long, LongStream> {
/** /**
* Returns a stream consisting of the results of replacing each element of * Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the * this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping * the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty * {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.) * have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
* *
* <p>This is an <a href="package-summary.html#StreamOps">intermediate * <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>. * operation</a>.
......
...@@ -227,10 +227,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> { ...@@ -227,10 +227,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
/** /**
* Returns a stream consisting of the results of replacing each element of * Returns a stream consisting of the results of replacing each element of
* this stream with the contents of the stream produced by applying the * this stream with the contents of a mapped stream produced by applying
* provided mapping function to each element. (If the result of the mapping * the provided mapping function to each element. Each mapped stream is
* function is {@code null}, this is treated as if the result was an empty * {@link java.util.stream.BaseStream#close() closed} after its contents
* stream.) * have been placed into this stream. (If a mapped stream is {@code null}
* an empty stream is used, instead.)
* *
* <p>This is an <a href="package-summary.html#StreamOps">intermediate * <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>. * operation</a>.
...@@ -270,10 +271,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> { ...@@ -270,10 +271,11 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
/** /**
* Returns an {@code IntStream} consisting of the results of replacing each * Returns an {@code IntStream} consisting of the results of replacing each
* element of this stream with the contents of the stream produced by * element of this stream with the contents of a mapped stream produced by
* applying the provided mapping function to each element. (If the result * applying the provided mapping function to each element. Each mapped
* of the mapping function is {@code null}, this is treated as if the result * stream is {@link java.util.stream.BaseStream#close() closed} after its
* was an empty stream.) * contents have been placed into this stream. (If a mapped stream is
* {@code null} an empty stream is used, instead.)
* *
* <p>This is an <a href="package-summary.html#StreamOps">intermediate * <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>. * operation</a>.
...@@ -288,11 +290,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> { ...@@ -288,11 +290,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
IntStream flatMapToInt(Function<? super T, ? extends IntStream> mapper); IntStream flatMapToInt(Function<? super T, ? extends IntStream> mapper);
/** /**
* Returns a {@code LongStream} consisting of the results of replacing each * Returns an {@code LongStream} consisting of the results of replacing each
* element of this stream with the contents of the stream produced * element of this stream with the contents of a mapped stream produced by
* by applying the provided mapping function to each element. (If the result * applying the provided mapping function to each element. Each mapped
* of the mapping function is {@code null}, this is treated as if the result * stream is {@link java.util.stream.BaseStream#close() closed} after its
* was an empty stream.) * contents have been placed into this stream. (If a mapped stream is
* {@code null} an empty stream is used, instead.)
* *
* <p>This is an <a href="package-summary.html#StreamOps">intermediate * <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>. * operation</a>.
...@@ -307,11 +310,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> { ...@@ -307,11 +310,12 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
LongStream flatMapToLong(Function<? super T, ? extends LongStream> mapper); LongStream flatMapToLong(Function<? super T, ? extends LongStream> mapper);
/** /**
* Returns a {@code DoubleStream} consisting of the results of replacing each * Returns an {@code DoubleStream} consisting of the results of replacing
* element of this stream with the contents of the stream produced * each element of this stream with the contents of a mapped stream produced
* by applying the provided mapping function to each element. (If the result * by applying the provided mapping function to each element. Each mapped
* of the mapping function is {@code null}, this is treated as if the result * stream is {@link java.util.stream.BaseStream#close() closed} after its
* was an empty stream.) * contents have placed been into this stream. (If a mapped stream is
* {@code null} an empty stream is used, instead.)
* *
* <p>This is an <a href="package-summary.html#StreamOps">intermediate * <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>. * operation</a>.
......
/* /*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -446,10 +446,28 @@ public final class OCSPResponse { ...@@ -446,10 +446,28 @@ public final class OCSPResponse {
} }
} else if (responderKeyId != null) { } else if (responderKeyId != null) {
for (X509CertImpl cert : certs) { for (X509CertImpl cert : certs) {
// Match responder's key identifier against the cert's SKID
// This will match if the SKID is encoded using the 160-bit
// SHA-1 hash method as defined in RFC 5280.
KeyIdentifier certKeyId = cert.getSubjectKeyId(); KeyIdentifier certKeyId = cert.getSubjectKeyId();
if (certKeyId != null && responderKeyId.equals(certKeyId)) { if (certKeyId != null && responderKeyId.equals(certKeyId)) {
signerCert = cert; signerCert = cert;
break; break;
} else {
// The certificate does not have a SKID or may have
// been using a different algorithm (ex: see RFC 7093).
// Check if the responder's key identifier matches
// against a newly generated key identifier of the
// cert's public key using the 160-bit SHA-1 method.
try {
certKeyId = new KeyIdentifier(cert.getPublicKey());
} catch (IOException e) {
// ignore
}
if (responderKeyId.equals(certKeyId)) {
signerCert = cert;
break;
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册