提交 a616d60d 编写于 作者: A asaha

Merge

# #
# Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 1996, 2010 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
...@@ -62,6 +62,11 @@ POLICY_BUILD = $(LIBDIR)/security/java.policy ...@@ -62,6 +62,11 @@ POLICY_BUILD = $(LIBDIR)/security/java.policy
CACERTS_SRC = $(CACERTS_FILE) CACERTS_SRC = $(CACERTS_FILE)
CACERTS_BUILD = $(LIBDIR)/security/cacerts CACERTS_BUILD = $(LIBDIR)/security/cacerts
ifndef OPENJDK
BLACKLIST_SRC = $(CLOSED_SHARE_SRC)/lib/security/blacklist
BLACKLIST_BUILD = $(LIBDIR)/security/blacklist
endif
FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class) FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class)
# #
...@@ -69,7 +74,11 @@ FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class) ...@@ -69,7 +74,11 @@ FILES_class = $(FILES_java:%.java=$(CLASSBINDIR)/%.class)
# #
include $(BUILDDIR)/common/Rules.gmk include $(BUILDDIR)/common/Rules.gmk
ifdef OPENJDK
build: properties policy cacerts build: properties policy cacerts
else
build: properties policy cacerts blacklist
endif
install: all install: all
...@@ -79,6 +88,8 @@ policy: classes $(POLICY_BUILD) ...@@ -79,6 +88,8 @@ policy: classes $(POLICY_BUILD)
cacerts: classes $(CACERTS_BUILD) cacerts: classes $(CACERTS_BUILD)
blacklist: classes $(BLACKLIST_BUILD)
$(PROPS_BUILD): $(PROPS_SRC) $(PROPS_BUILD): $(PROPS_SRC)
$(install-file) $(install-file)
...@@ -88,9 +99,12 @@ $(POLICY_BUILD): $(POLICY_SRC) ...@@ -88,9 +99,12 @@ $(POLICY_BUILD): $(POLICY_SRC)
$(CACERTS_BUILD): $(CACERTS_SRC) $(CACERTS_BUILD): $(CACERTS_SRC)
$(install-file) $(install-file)
$(BLACKLIST_BUILD): $(BLACKLIST_SRC)
$(install-file)
clean clobber:: .delete.classlist clean clobber:: .delete.classlist
$(RM) -r $(CLASSBINDIR)/java/security $(RM) -r $(CLASSBINDIR)/java/security
$(RM) $(PROPS_BUILD) $(POLICY_BUILD) $(CACERTS_BUILD) $(RM) $(PROPS_BUILD) $(POLICY_BUILD) $(CACERTS_BUILD) $(BLACKLIST_BUILD)
# Additional Rule for building sun.security.util # Additional Rule for building sun.security.util
$(CLASSBINDIR)/%.class: $(SHARE_SRC)/sun/%.java $(CLASSBINDIR)/%.class: $(SHARE_SRC)/sun/%.java
......
...@@ -60,7 +60,7 @@ import org.xml.sax.helpers.DefaultHandler; ...@@ -60,7 +60,7 @@ import org.xml.sax.helpers.DefaultHandler;
* *
* @author Philip Milne * @author Philip Milne
*/ */
public class XMLDecoder { public class XMLDecoder implements AutoCloseable {
private final DocumentHandler handler = new DocumentHandler(); private final DocumentHandler handler = new DocumentHandler();
private final InputSource input; private final InputSource input;
private Object owner; private Object owner;
......
...@@ -204,7 +204,7 @@ import java.nio.charset.UnsupportedCharsetException; ...@@ -204,7 +204,7 @@ import java.nio.charset.UnsupportedCharsetException;
* *
* @author Philip Milne * @author Philip Milne
*/ */
public class XMLEncoder extends Encoder { public class XMLEncoder extends Encoder implements AutoCloseable {
private final CharsetEncoder encoder; private final CharsetEncoder encoder;
private final String charset; private final String charset;
......
...@@ -36,7 +36,7 @@ package java.io; ...@@ -36,7 +36,7 @@ package java.io;
* @see java.io.ObjectInputStream * @see java.io.ObjectInputStream
* @since JDK1.1 * @since JDK1.1
*/ */
public interface ObjectInput extends DataInput { public interface ObjectInput extends DataInput, AutoCloseable {
/** /**
* Read and return an object. The class that implements this interface * Read and return an object. The class that implements this interface
* defines where the object is "read" from. * defines where the object is "read" from.
......
...@@ -36,7 +36,7 @@ package java.io; ...@@ -36,7 +36,7 @@ package java.io;
* @see java.io.ObjectInputStream * @see java.io.ObjectInputStream
* @since JDK1.1 * @since JDK1.1
*/ */
public interface ObjectOutput extends DataOutput { public interface ObjectOutput extends DataOutput, AutoCloseable {
/** /**
* Write an object to the underlying storage or stream. The * Write an object to the underlying storage or stream. The
* class that implements this interface defines how the object is * class that implements this interface defines how the object is
......
...@@ -343,7 +343,7 @@ import sun.misc.LRUCache; ...@@ -343,7 +343,7 @@ import sun.misc.LRUCache;
* *
* @since 1.5 * @since 1.5
*/ */
public final class Scanner implements Iterator<String> { public final class Scanner implements Iterator<String>, Closeable {
// Internal buffer used to hold input // Internal buffer used to hold input
private CharBuffer buf; private CharBuffer buf;
......
...@@ -107,7 +107,7 @@ import java.util.List; ...@@ -107,7 +107,7 @@ import java.util.List;
* @author Florian Bomers * @author Florian Bomers
*/ */
public interface MidiDevice { public interface MidiDevice extends AutoCloseable {
/** /**
......
...@@ -38,7 +38,7 @@ package javax.sound.midi; ...@@ -38,7 +38,7 @@ package javax.sound.midi;
* *
* @author Kara Kytle * @author Kara Kytle
*/ */
public interface Receiver { public interface Receiver extends AutoCloseable {
//$$fb 2002-04-12: fix for 4662090: Contradiction in Receiver specification //$$fb 2002-04-12: fix for 4662090: Contradiction in Receiver specification
......
...@@ -35,7 +35,7 @@ package javax.sound.midi; ...@@ -35,7 +35,7 @@ package javax.sound.midi;
* *
* @author Kara Kytle * @author Kara Kytle
*/ */
public interface Transmitter { public interface Transmitter extends AutoCloseable {
/** /**
......
...@@ -70,7 +70,7 @@ package javax.sound.sampled; ...@@ -70,7 +70,7 @@ package javax.sound.sampled;
* @see LineEvent * @see LineEvent
* @since 1.3 * @since 1.3
*/ */
public interface Line { public interface Line extends AutoCloseable {
/** /**
* Obtains the <code>Line.Info</code> object describing this * Obtains the <code>Line.Info</code> object describing this
......
此差异已折叠。
...@@ -54,7 +54,11 @@ mkdir UnicodeTest-src UnicodeTest-classes ...@@ -54,7 +54,11 @@ mkdir UnicodeTest-src UnicodeTest-classes
echo "creating test source files" echo "creating test source files"
"$JAVAC" -d . "${TESTSRC}"/UnicodeTest.java "$JAVAC" -d . "${TESTSRC}"/UnicodeTest.java
CLASS_NAME=`"$JAVA" UnicodeTest | sed -e 's@\\r@@g' ` if [ "`uname -s | grep CYGWIN`" != "" ] ; then
CLASS_NAME=`"$JAVA" UnicodeTest | sed -e 's@\\r@@g' `
else
CLASS_NAME=`"$JAVA" UnicodeTest`
fi
if [ "$CLASS_NAME" = "" ] if [ "$CLASS_NAME" = "" ]
then then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册