# HG changeset patch # User briangoetz # Date 1382999414 14400 # Node ID 0fde5fa9febf73014e763474c683f09f9c572deb # Parent cc5933483c1aa99516e03d9577601c60c9ebdd07# Parent 860f1d21763a409c517b63e8a391cc75a47f54ba Merge diff -r cc5933483c1a -r 0fde5fa9febf .hgtags --- a/.hgtags Fri Oct 11 17:51:08 2013 -0700 +++ b/.hgtags Mon Oct 28 18:30:14 2013 -0400 @@ -236,3 +236,5 @@ 252f872b8a2f81a416f9127e77924ca56a4578b0 jdk8-b108 985abf1cd327169a317d4ff4f318a8162a5cd47d jdk8-b109 41541097533aa3933a018c8c1c426c1871dfd76e jdk8-b110 +af6244ba81b6b8d1bf4ab06587a2067e021e4570 jdk8-b111 +954dd199d6ff3e4cfc42b894c1f611150526eecd jdk8-b112 diff -r cc5933483c1a -r 0fde5fa9febf make/build.properties --- a/make/build.properties Fri Oct 11 17:51:08 2013 -0700 +++ b/make/build.properties Mon Oct 28 18:30:14 2013 -0400 @@ -163,11 +163,11 @@ # sjavac.includes = \ - com/sun/tools/sjavac/ + com/sun/tools/sjavac/ sjavac.tests = \ tools/sjavac - + # # The following files require the latest JDK to be available. diff -r cc5933483c1a -r 0fde5fa9febf make/build.xml --- a/make/build.xml Fri Oct 11 17:51:08 2013 -0700 +++ b/make/build.xml Mon Oct 28 18:30:14 2013 -0400 @@ -89,7 +89,7 @@ build-classes-TOOL build the classes for the tool build-TOOL build the jar file and script for the tool jtreg-TOOL build the tool and run the appropriate tests - findbugs-TOOL run findbugs on the tool's source oode + findbugs-TOOL run findbugs on the tool's source code TOOL build the tool, run the tests, and run findbugs - utility definitions --> @@ -360,7 +360,7 @@ datafile="${build.coverage.dir}/cobertura.ser"/> - + @@ -370,7 +370,7 @@ destdir="${build.dir}/diag-examples/classes" includes="ArgTypeCompilerFactory.java,Example.java,FileManager.java,HTMLWriter.java,RunExamples.java,DocCommentProcessor.java" sourcepath="" - classpath="${dist.lib.dir}/javac.jar" + classpath="${dist.lib.dir}/javac.jar;${dist.lib.dir}/javap.jar" includeAntRuntime="no" debug="${javac.debug}" debuglevel="${javac.debuglevel}"> @@ -379,7 +379,7 @@ diff -r cc5933483c1a -r 0fde5fa9febf makefiles/BuildLangtools.gmk --- a/makefiles/BuildLangtools.gmk Fri Oct 11 17:51:08 2013 -0700 +++ b/makefiles/BuildLangtools.gmk Mon Oct 28 18:30:14 2013 -0400 @@ -32,44 +32,49 @@ # The BOOT_JAVAC setup uses the bootdir compiler to compile the tools # and the bootstrap javac, to be run by the bootdir jvm. -$(eval $(call SetupJavaCompiler,BOOT_JAVAC,\ - JAVAC:=$(JAVAC),\ - SERVER_DIR:=$(SJAVAC_SERVER_DIR),\ - SERVER_JVM:=$(SJAVAC_SERVER_JAVA),\ - FLAGS:=-XDignore.symbol.file=true -g -Xlint:all$(COMMA)-deprecation -Werror)) +$(eval $(call SetupJavaCompiler,BOOT_JAVAC, \ + JAVAC := $(JAVAC), \ + SERVER_DIR := $(SJAVAC_SERVER_DIR), \ + SERVER_JVM := $(SJAVAC_SERVER_JAVA), \ + FLAGS := -XDignore.symbol.file=true -g -Xlint:all$(COMMA)-deprecation -Werror)) # javax.tools.JavaCompilerTool isn't really a suffix but this gets the file copied. -RESOURCE_SUFFIXES:=.gif .xml .css .js javax.tools.JavaCompilerTool +RESOURCE_SUFFIXES := .gif .xml .css .js javax.tools.JavaCompilerTool # Now setup the compilation of the properties compilation tool. You can depend # upon $(BUILD_TOOLS) to trigger a compilation of the tools. Note that we # add src/share/classes to the sourcepath. This is necessary since the GenStubs # program needs to be linked and run towards the new javac sources. -$(eval $(call SetupJavaCompilation,BUILD_TOOLS,\ - SETUP:=BOOT_JAVAC,\ - DISABLE_SJAVAC:=true,\ - ADD_JAVAC_FLAGS:=-Xprefer:source,\ - SRC:=$(LANGTOOLS_TOPDIR)/make/tools $(LANGTOOLS_TOPDIR)/src/share/classes,\ - INCLUDES:=compileproperties genstubs,\ - BIN:=$(LANGTOOLS_OUTPUTDIR)/btclasses)) +$(eval $(call SetupJavaCompilation,BUILD_TOOLS, \ + SETUP := BOOT_JAVAC, \ + DISABLE_SJAVAC := true, \ + ADD_JAVAC_FLAGS := -Xprefer:source, \ + SRC := $(LANGTOOLS_TOPDIR)/make/tools $(LANGTOOLS_TOPDIR)/src/share/classes, \ + INCLUDES := compileproperties genstubs, \ + BIN := $(LANGTOOLS_OUTPUTDIR)/btclasses)) # The compileprops tools compiles a properties file into a resource bundle. -TOOL_COMPILEPROPS_CMD:=$(JAVA) -cp $(LANGTOOLS_OUTPUTDIR)/btclasses compileproperties.CompileProperties -quiet +TOOL_COMPILEPROPS_CMD := $(JAVA) -cp $(LANGTOOLS_OUTPUTDIR)/btclasses compileproperties.CompileProperties -quiet + # Lookup the properties that need to be compiled into resource bundles. -PROPSOURCES:=$(shell $(FIND) $(LANGTOOLS_TOPDIR)/src/share/classes -name "*.properties") +PROPSOURCES := $(shell $(FIND) $(LANGTOOLS_TOPDIR)/src/share/classes -name "*.properties") + # Strip away prefix and suffix, leaving for example only: "com/sun/tools/javac/resources/javac_zh_CN" -PROPPATHS:=$(patsubst $(LANGTOOLS_TOPDIR)/src/share/classes/%.properties,%,$(PROPSOURCES)) +PROPPATHS := $(patsubst $(LANGTOOLS_TOPDIR)/src/share/classes/%.properties, %, $(PROPSOURCES)) + # Generate the list of java files to be created. -PROPJAVAS:=$(patsubst %,$(LANGTOOLS_OUTPUTDIR)/gensrc/%.java,$(PROPPATHS)) +PROPJAVAS := $(patsubst %, $(LANGTOOLS_OUTPUTDIR)/gensrc/%.java, $(PROPPATHS)) + # Generate the package dirs for the tobe generated java files. -PROPDIRS:=$(dir $(PROPJAVAS)) +PROPDIRS := $(dir $(PROPJAVAS)) + # Now generate a sequence of "-compile ...javac_zh_CN.properties ...javac_zh_CN.java java.util.ListResourceBundle" # suitable to be fed into the CompileProperties command. -PROPCMDLINE:=$(subst _SPACE_,$(SPACE),$(join $(addprefix -compile_SPACE_,$(PROPSOURCES)), \ - $(addsuffix _SPACE_java.util.ListResourceBundle,$(addprefix _SPACE_$(LANGTOOLS_OUTPUTDIR)/gensrc/,$(addsuffix .java,$(PROPPATHS)))))) +PROPCMDLINE := $(subst _SPACE_, $(SPACE), $(join $(addprefix -compile_SPACE_, $(PROPSOURCES)), \ + $(addsuffix _SPACE_java.util.ListResourceBundle, $(addprefix _SPACE_$(LANGTOOLS_OUTPUTDIR)/gensrc/, $(addsuffix .java, $(PROPPATHS)))))) # Now setup the rule for the generation of the resource bundles. -$(LANGTOOLS_OUTPUTDIR)/gensrc/_the_props.d : $(PROPSOURCES) $(BUILD_TOOLS) +$(LANGTOOLS_OUTPUTDIR)/gensrc/_the_props.d: $(PROPSOURCES) $(BUILD_TOOLS) $(RM) -r $(@D)/* $(MKDIR) -p $(@D) $(PROPDIRS) $(PRINTF) "jdk=$(JDK_VERSION)\nfull=$(FULL_VERSION)\nrelease=$(RELEASE)\n" > $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javah/resources/version.properties @@ -78,115 +83,119 @@ $(PRINTF) "jdk=$(JDK_VERSION)\nfull=$(FULL_VERSION)\nrelease=$(RELEASE)\n" > $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/jdeps/resources/version.properties $(ECHO) Compiling $(words $(PROPSOURCES) v1 v2 v3) properties into resource bundles $(TOOL_COMPILEPROPS_CMD) $(PROPCMDLINE) \ - -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javah/resources/version.properties \ - $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javah/resources/version.java \ - java.util.ListResourceBundle \ - -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javap/resources/version.properties \ - $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javap/resources/version.java \ - java.util.ListResourceBundle \ - -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javac/resources/version.properties \ - $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javac/resources/version.java \ - java.util.ListResourceBundle \ - -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/jdeps/resources/version.properties \ - $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/jdeps/resources/version.java \ - java.util.ListResourceBundle - $(ECHO) PROPS_ARE_CREATED=yes > $@ + -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javah/resources/version.properties \ + $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javah/resources/version.java \ + java.util.ListResourceBundle \ + -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javap/resources/version.properties \ + $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javap/resources/version.java \ + java.util.ListResourceBundle \ + -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javac/resources/version.properties \ + $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/javac/resources/version.java \ + java.util.ListResourceBundle \ + -compile $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/jdeps/resources/version.properties \ + $(LANGTOOLS_OUTPUTDIR)/gensrc/com/sun/tools/jdeps/resources/version.java \ + java.util.ListResourceBundle + $(ECHO) PROPS_ARE_CREATED = yes > $@ # Trigger the generation of the resource bundles. After the resource bundles have # been compiled, then the makefile will restart and the newly created java files # will become part of the build further along in the makefile. -include $(LANGTOOLS_OUTPUTDIR)/gensrc/_the_props.d -ifeq ($(PROPS_ARE_CREATED),yes) - # Setup the rules to build a dist/bootstrap/lib/javac.jar, ie a smaller intermediate javac - # that can be compiled with an old javac. The intermediate javac is then used - # to compile javac again and to build the complete new jdk. - $(eval $(call SetupJavaCompilation,BUILD_BOOTSTRAP_LANGTOOLS,\ - SETUP:=BOOT_JAVAC,\ - DISABLE_SJAVAC:=true,\ - SRC:=$(LANGTOOLS_TOPDIR)/src/share/classes $(LANGTOOLS_OUTPUTDIR)/gensrc,\ - EXCLUDES:=com/sun/tools/javac/nio,\ - COPY:=$(RESOURCE_SUFFIXES),\ - BIN:=$(LANGTOOLS_OUTPUTDIR)/btclasses/bootstrap)) +ifeq ($(PROPS_ARE_CREATED), yes) + # Setup the rules to build a dist/bootstrap/lib/javac.jar, ie a smaller intermediate javac + # that can be compiled with an old javac. The intermediate javac is then used + # to compile javac again and to build the complete new jdk. + $(eval $(call SetupJavaCompilation,BUILD_BOOTSTRAP_LANGTOOLS, \ + SETUP := BOOT_JAVAC, \ + DISABLE_SJAVAC := true, \ + SRC := $(LANGTOOLS_TOPDIR)/src/share/classes $(LANGTOOLS_OUTPUTDIR)/gensrc, \ + EXCLUDES := com/sun/tools/javac/nio, \ + COPY := $(RESOURCE_SUFFIXES), \ + BIN := $(LANGTOOLS_OUTPUTDIR)/btclasses/bootstrap)) + + $(eval $(call SetupArchive,ARCHIVE_BOOTSTRAP_JAVAC, $(BUILD_BOOTSTRAP_LANGTOOLS), \ + SRCS := $(LANGTOOLS_OUTPUTDIR)/btclasses/bootstrap, \ + JAR := $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar, \ + SUFFIXES := .class $(RESOURCE_SUFFIXES))) - $(eval $(call SetupArchive,ARCHIVE_BOOTSTRAP_JAVAC,$(BUILD_BOOTSTRAP_LANGTOOLS),\ - SRCS:=$(LANGTOOLS_OUTPUTDIR)/btclasses/bootstrap,\ - JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar,\ - SUFFIXES:=.class $(RESOURCE_SUFFIXES))) + # GenStubs is used to bootstrap any dependencies from javac to the new JDK that is not + # yet built. It is currently not needed but might be again in the future. The following + # exercises the functionality to verify that it works. + TOOL_GENSTUBS_CMD = $(JAVA) \ + "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \ + -classpath $(LANGTOOLS_OUTPUTDIR)/btclasses \ + genstubs.GenStubs - # GenStubs is used to bootstrap any dependencies from javac to the new JDK that is not - # yet built. It is currently not needed but might be again in the future. The following - # exercises the functionality to verify that it works. - TOOL_GENSTUBS_CMD=$(JAVA) \ - "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \ - -classpath $(LANGTOOLS_OUTPUTDIR)/btclasses \ - genstubs.GenStubs - # We fetch source from the JDK... - JDKS=$(JDK_TOPDIR)/src/share/classes - # Build the list of classes to generate stubs from. java/util/function/Predicate.java isn't - # currently needed, but is used as a demo for now. - STUBSOURCES:=$(shell $(FIND) $(JDKS) -name "*.java" | $(GREP) \ - -e "$(JDKS)/java/util/function/Predicate.java") - # Rewrite the file names into class names because the GenStubs tool require this. - STUBCLASSES:=$(subst /,.,$(patsubst $(JDKS)/%.java,%,$(STUBSOURCES))) + # We fetch source from the JDK... + JDKS = $(JDK_TOPDIR)/src/share/classes + + # Build the list of classes to generate stubs from. java/util/function/Predicate.java isn't + # currently needed, but is used as a demo for now. + + STUBSOURCES := $(shell $(FIND) $(JDKS) -name "*.java" | $(GREP) \ + -e "$(JDKS)/java/util/function/Predicate.java") + + # Rewrite the file names into class names because the GenStubs tool require this. + STUBCLASSES := $(subst /,., $(patsubst $(JDKS)/%.java, %, $(STUBSOURCES))) - # Now setup the build recipe for genstubs. - $(LANGTOOLS_OUTPUTDIR)/genstubs/_the_stubs.d : $(STUBSOURCES) $(BUILD_TOOLS) \ - $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \ - $(LANGTOOLS_OUTPUTDIR)/gensrc/_the_props.d - $(MKDIR) -p $(@D) - $(MKDIR) -p $(LANGTOOLS_OUTPUTDIR)/tmpstubs - $(ECHO) $(LOG_INFO) Generating stubs from JDK sources. - ($(TOOL_GENSTUBS_CMD) -s $(LANGTOOLS_OUTPUTDIR)/tmpstubs -sourcepath $(JDKS) $(STUBCLASSES) && $(ECHO) STUBS_ARE_CREATED=yes > $@) - if $(DIFF) -x "_the*" -rq $(LANGTOOLS_OUTPUTDIR)/tmpstubs $(LANGTOOLS_OUTPUTDIR)/genstubs > /dev/null 2>&1; then \ - $(ECHO) $(LOG_INFO) No changes in the stubs!; \ - $(RM) -r $(LANGTOOLS_OUTPUTDIR)/tmpstubs; \ - else \ - $(ECHO) $(LOG_INFO) Changes in stubs detected!; \ - $(RM) -r $(@D); \ - $(MV) $(LANGTOOLS_OUTPUTDIR)/tmpstubs $(@D); \ - fi - $(ECHO) STUBS_ARE_CREATED=yes > $@ + # Now setup the build recipe for genstubs. + $(LANGTOOLS_OUTPUTDIR)/genstubs/_the_stubs.d: $(STUBSOURCES) $(BUILD_TOOLS) \ + $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \ + $(LANGTOOLS_OUTPUTDIR)/gensrc/_the_props.d + $(MKDIR) -p $(@D) + $(MKDIR) -p $(LANGTOOLS_OUTPUTDIR)/tmpstubs + $(ECHO) $(LOG_INFO) Generating stubs from JDK sources. + ($(TOOL_GENSTUBS_CMD) -s $(LANGTOOLS_OUTPUTDIR)/tmpstubs -sourcepath $(JDKS) $(STUBCLASSES) && $(ECHO) STUBS_ARE_CREATED = yes > $@) + if $(DIFF) -x "_the*" -rq $(LANGTOOLS_OUTPUTDIR)/tmpstubs $(LANGTOOLS_OUTPUTDIR)/genstubs > /dev/null 2>&1; then \ + $(ECHO) $(LOG_INFO) No changes in the stubs!; \ + $(RM) -r $(LANGTOOLS_OUTPUTDIR)/tmpstubs; \ + else \ + $(ECHO) $(LOG_INFO) Changes in stubs detected!; \ + $(RM) -r $(@D); \ + $(MV) $(LANGTOOLS_OUTPUTDIR)/tmpstubs $(@D); \ + fi + $(ECHO) STUBS_ARE_CREATED = yes > $@ - # Trigger a generation of the genstubs java source code and a restart - # of the makefile to make sure that the following build setup use the - # newly created java files. - -include $(LANGTOOLS_OUTPUTDIR)/genstubs/_the_stubs.d + # Trigger a generation of the genstubs java source code and a restart + # of the makefile to make sure that the following build setup use the + # newly created java files. + -include $(LANGTOOLS_OUTPUTDIR)/genstubs/_the_stubs.d - ifeq ($(STUBS_ARE_CREATED),yes) - # Setup a compiler configuration using the intermediate javac in dist/bootstrap/lib/javac.jar - # that generates code for the new jdk that is being built. - # The code compiled by this compiler setup, cannot necessarily be run with the bootstrap jvm. - $(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE,\ - JVM:=$(JAVA),\ - JAVAC:="-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \ - -cp $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \ - com.sun.tools.javac.Main,\ - FLAGS:=-XDignore.symbol.file=true -Xlint:all$(COMMA)-deprecation -Werror,\ - SERVER_DIR:=$(SJAVAC_SERVER_DIR),\ - SERVER_JVM:=$(SJAVAC_SERVER_JAVA))) + ifeq ($(STUBS_ARE_CREATED), yes) + # Setup a compiler configuration using the intermediate javac in dist/bootstrap/lib/javac.jar + # that generates code for the new jdk that is being built. + # The code compiled by this compiler setup, cannot necessarily be run with the bootstrap jvm. + $(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE, \ + JVM := $(JAVA), \ + JAVAC := "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \ + -cp $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \ + com.sun.tools.javac.Main, \ + FLAGS := -XDignore.symbol.file=true -Xlint:all$(COMMA)-deprecation -Werror, \ + SERVER_DIR := $(SJAVAC_SERVER_DIR), \ + SERVER_JVM := $(SJAVAC_SERVER_JAVA))) - $(eval $(call SetupJavaCompilation,BUILD_FULL_JAVAC,\ - SETUP:=GENERATE_NEWBYTECODE,\ - SRC:=$(LANGTOOLS_TOPDIR)/src/share/classes $(LANGTOOLS_OUTPUTDIR)/gensrc \ - $(LANGTOOLS_OUTPUTDIR)/genstubs,\ - EXCLUDES:=java/util java/io java/nio,\ - COPY:=$(RESOURCE_SUFFIXES),\ - BIN:=$(LANGTOOLS_OUTPUTDIR)/classes)) + $(eval $(call SetupJavaCompilation,BUILD_FULL_JAVAC, \ + SETUP := GENERATE_NEWBYTECODE, \ + SRC := $(LANGTOOLS_TOPDIR)/src/share/classes $(LANGTOOLS_OUTPUTDIR)/gensrc \ + $(LANGTOOLS_OUTPUTDIR)/genstubs, \ + EXCLUDES := java/util java/io java/nio, \ + COPY := $(RESOURCE_SUFFIXES), \ + BIN := $(LANGTOOLS_OUTPUTDIR)/classes)) - $(eval $(call SetupArchive,ARCHIVE_FULL_JAVAC,$(BUILD_FULL_JAVAC),\ - SETUP:=GENERATE_NEWBYTECODE,\ - SRCS:=$(LANGTOOLS_OUTPUTDIR)/classes,\ - SUFFIXES:=.class $(RESOURCE_SUFFIXES),\ - JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/lib/classes.jar)) + $(eval $(call SetupArchive,ARCHIVE_FULL_JAVAC, $(BUILD_FULL_JAVAC), \ + SETUP := GENERATE_NEWBYTECODE, \ + SRCS := $(LANGTOOLS_OUTPUTDIR)/classes, \ + SUFFIXES := .class $(RESOURCE_SUFFIXES), \ + JAR := $(LANGTOOLS_OUTPUTDIR)/dist/lib/classes.jar)) - $(eval $(call SetupZipArchive,ZIP_FULL_JAVAC_SOURCE,\ - SRC:=$(LANGTOOLS_TOPDIR)/src/share/classes $(LANGTOOLS_OUTPUTDIR)/gensrc,\ - ZIP:=$(LANGTOOLS_OUTPUTDIR)/dist/lib/src.zip)) + $(eval $(call SetupZipArchive,ZIP_FULL_JAVAC_SOURCE, \ + SRC := $(LANGTOOLS_TOPDIR)/src/share/classes $(LANGTOOLS_OUTPUTDIR)/gensrc, \ + ZIP := $(LANGTOOLS_OUTPUTDIR)/dist/lib/src.zip)) - all: $(LANGTOOLS_OUTPUTDIR)/dist/lib/classes.jar \ - $(LANGTOOLS_OUTPUTDIR)/dist/lib/src.zip \ - $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar + all: $(LANGTOOLS_OUTPUTDIR)/dist/lib/classes.jar \ + $(LANGTOOLS_OUTPUTDIR)/dist/lib/src.zip \ + $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar - endif + endif endif diff -r cc5933483c1a -r 0fde5fa9febf makefiles/Makefile --- a/makefiles/Makefile Fri Oct 11 17:51:08 2013 -0700 +++ b/makefiles/Makefile Mon Oct 28 18:30:14 2013 -0400 @@ -24,19 +24,19 @@ # # Locate this Makefile -ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),) - makefile_path:=$(CURDIR)/$(lastword $(MAKEFILE_LIST)) +ifeq ($(filter /%, $(lastword $(MAKEFILE_LIST))), ) + makefile_path := $(CURDIR)/$(lastword $(MAKEFILE_LIST)) else - makefile_path:=$(lastword $(MAKEFILE_LIST)) + makefile_path := $(lastword $(MAKEFILE_LIST)) endif -repo_dir:=$(patsubst %/makefiles/Makefile,%,$(makefile_path)) +repo_dir := $(patsubst %/makefiles/Makefile, %, $(makefile_path)) # What is the name of this subsystem (langtools, corba, etc)? -subsystem_name:=$(notdir $(repo_dir)) +subsystem_name := $(notdir $(repo_dir)) # Try to locate top-level makefile -top_level_makefile:=$(repo_dir)/../common/makefiles/Makefile -ifneq ($(wildcard $(top_level_makefile)),) +top_level_makefile := $(repo_dir)/../common/makefiles/Makefile +ifneq ($(wildcard $(top_level_makefile)), ) $(info Will run $(subsystem_name) target on top-level Makefile) $(info WARNING: This is a non-recommended way of building!) $(info ===================================================) diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/javadoc/Tag.java --- a/src/share/classes/com/sun/javadoc/Tag.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/javadoc/Tag.java Mon Oct 28 18:30:14 2013 -0400 @@ -72,7 +72,7 @@ * kind() == name(); * the following table lists those cases where there is more * than one tag of a given kind: - *

+ * * * * diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/javadoc/package-info.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/com/sun/javadoc/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,148 @@ +/* + * Copyright (c) 1998, 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** +The Doclet API (also called the Javadoc API) provides a mechanism +for clients to inspect the source-level structure of programs and +libraries, including javadoc comments embedded in the source. +This is useful for documentation, program checking, automatic +code generation and many other tools. +

+ +Doclets are invoked by javadoc and use this API to write out +program information to files. For example, the standard doclet is called +by default and writes out documentation to HTML files. +

+ +The invocation is defined by the abstract {@link com.sun.javadoc.Doclet} class +-- the entry point is the {@link com.sun.javadoc.Doclet#start(RootDoc) start} method: +

+    public static boolean start(RootDoc root)
+
+The {@link com.sun.javadoc.RootDoc} instance holds the root of the program structure +information. From this root all other program structure +information can be extracted. +

+ + +

Terminology

+ + +When calling javadoc, you pass in package names and source file names -- +these are called the specified packages and classes. +You also pass in Javadoc options; the access control Javadoc options +(-public, -protected, -package, +and -private) filter program elements, producing a +result set, called the included set, or "documented" set. +(The unfiltered set is also available through +{@link com.sun.javadoc.PackageDoc#allClasses(boolean) allClasses(false)}.) +

+ + +Throughout this API, the term class is normally a +shorthand for "class or interface", as in: {@link com.sun.javadoc.ClassDoc}, +{@link com.sun.javadoc.PackageDoc#allClasses() allClasses()}, and +{@link com.sun.javadoc.PackageDoc#findClass(String) findClass(String)}. +In only a couple of other places, it means "class, as opposed to interface", +as in: {@link com.sun.javadoc.Doc#isClass()}. +In the second sense, this API calls out four kinds of classes: +{@linkplain com.sun.javadoc.Doc#isOrdinaryClass() ordinary classes}, +{@linkplain com.sun.javadoc.Doc#isEnum() enums}, +{@linkplain com.sun.javadoc.Doc#isError() errors} and +{@linkplain com.sun.javadoc.Doc#isException() exceptions}. +Throughout the API, the detailed description of each program element +describes explicitly which meaning is being used. +

+ + +A qualified class or interface name is one that has its package +name prepended to it, such as java.lang.String. A non-qualified +name has no package name, such as String. +

+ + +

Example

+ +The following is an example doclet that +displays information in the @param tags of the processed +classes: +
+import com.sun.javadoc.*;
+
+public class ListParams extends Doclet {
+
+    public static boolean start(RootDoc root) {
+        ClassDoc[] classes = root.classes();
+        for (int i = 0; i < classes.length; ++i) {
+            ClassDoc cd = classes[i];
+            printMembers(cd.constructors());
+            printMembers(cd.methods());
+        }
+        return true;
+    }
+
+    static void printMembers(ExecutableMemberDoc[] mems) {
+        for (int i = 0; i < mems.length; ++i) {
+            ParamTag[] params = mems[i].paramTags();
+            System.out.println(mems[i].qualifiedName());
+            for (int j = 0; j < params.length; ++j) {
+                System.out.println("   " + params[j].parameterName()
+                    + " - " + params[j].parameterComment());
+            }
+        }
+    }
+}
+
+Interfaces and methods from the Javadoc API are marked in +red. +{@link com.sun.javadoc.Doclet Doclet} is an abstract class that specifies +the invocation interface for doclets, +{@link com.sun.javadoc.Doclet Doclet} holds class or interface information, +{@link com.sun.javadoc.ExecutableMemberDoc} is a +superinterface of {@link com.sun.javadoc.MethodDoc} and +{@link com.sun.javadoc.ConstructorDoc}, +and {@link com.sun.javadoc.ParamTag} holds information +from "@param" tags. +

+This doclet when invoked with a command line like: +

+    javadoc -doclet ListParams -sourcepath <source-location> java.util
+
+producing output like: +
+    ...
+    java.util.ArrayList.add
+       index - index at which the specified element is to be inserted.
+       element - element to be inserted.
+    java.util.ArrayList.remove
+       index - the index of the element to removed.
+    ...
+
+
+@see com.sun.javadoc.Doclet +@see com.sun.javadoc.RootDoc +*/ +@jdk.Exported +package com.sun.javadoc; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/javadoc/package.html --- a/src/share/classes/com/sun/javadoc/package.html Fri Oct 11 17:51:08 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,152 +0,0 @@ - - -Doclet API Package - - - - -The Doclet API (also called the Javadoc API) provides a mechanism -for clients to inspect the source-level structure of programs and -libraries, including javadoc comments embedded in the source. -This is useful for documentation, program checking, automatic -code generation and many other tools. -

- -Doclets are invoked by javadoc and use this API to write out -program information to files. For example, the standard doclet is called -by default and writes out documentation to HTML files. -

- -The invocation is defined by the abstract {@link com.sun.javadoc.Doclet} class --- the entry point is the {@link com.sun.javadoc.Doclet#start(RootDoc) start} method: -

-    public static boolean start(RootDoc root)
-
-The {@link com.sun.javadoc.RootDoc} instance holds the root of the program structure -information. From this root all other program structure -information can be extracted. -

- - -

Terminology

- - -When calling javadoc, you pass in package names and source file names -- -these are called the specified packages and classes. -You also pass in Javadoc options; the access control Javadoc options -(-public, -protected, -package, -and -private) filter program elements, producing a -result set, called the included set, or "documented" set. -(The unfiltered set is also available through -{@link com.sun.javadoc.PackageDoc#allClasses(boolean) allClasses(false)}.) -

- - -Throughout this API, the term class is normally a -shorthand for "class or interface", as in: {@link com.sun.javadoc.ClassDoc}, -{@link com.sun.javadoc.PackageDoc#allClasses() allClasses()}, and -{@link com.sun.javadoc.PackageDoc#findClass(String) findClass(String)}. -In only a couple of other places, it means "class, as opposed to interface", -as in: {@link com.sun.javadoc.Doc#isClass()}. -In the second sense, this API calls out four kinds of classes: -{@linkplain com.sun.javadoc.Doc#isOrdinaryClass() ordinary classes}, -{@linkplain com.sun.javadoc.Doc#isEnum() enums}, -{@linkplain com.sun.javadoc.Doc#isError() errors} and -{@linkplain com.sun.javadoc.Doc#isException() exceptions}. -Throughout the API, the detailed description of each program element -describes explicitly which meaning is being used. -

- - -A qualified class or interface name is one that has its package -name prepended to it, such as java.lang.String. A non-qualified -name has no package name, such as String. -

- - -

Example

- -The following is an example doclet that -displays information in the @param tags of the processed -classes: -
-import com.sun.javadoc.*;
-
-public class ListParams extends Doclet {
-
-    public static boolean start(RootDoc root) {
-        ClassDoc[] classes = root.classes();
-        for (int i = 0; i < classes.length; ++i) {
-            ClassDoc cd = classes[i];
-            printMembers(cd.constructors());
-            printMembers(cd.methods());
-        }
-        return true;
-    }
-
-    static void printMembers(ExecutableMemberDoc[] mems) {
-        for (int i = 0; i < mems.length; ++i) {
-            ParamTag[] params = mems[i].paramTags();
-            System.out.println(mems[i].qualifiedName());
-            for (int j = 0; j < params.length; ++j) {
-                System.out.println("   " + params[j].parameterName()
-                    + " - " + params[j].parameterComment());
-            }
-        }
-    }        
-}
-
-Interfaces and methods from the Javadoc API are marked in -red. -{@link com.sun.javadoc.Doclet Doclet} is an abstract class that specifies -the invocation interface for doclets, -{@link com.sun.javadoc.Doclet Doclet} holds class or interface information, -{@link com.sun.javadoc.ExecutableMemberDoc} is a -superinterface of {@link com.sun.javadoc.MethodDoc} and -{@link com.sun.javadoc.ConstructorDoc}, -and {@link com.sun.javadoc.ParamTag} holds information -from "@param" tags. -

-This doclet when invoked with a command line like: -

-    javadoc -doclet ListParams -sourcepath <source-location> java.util
-
-producing output like: -
-    ...
-    java.util.ArrayList.add
-       index - index at which the specified element is to be inserted.
-       element - element to be inserted.
-    java.util.ArrayList.remove
-       index - the index of the element to removed.
-    ...
-
-
-@see com.sun.javadoc.Doclet -@see com.sun.javadoc.RootDoc - - diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/AttributeTree.java --- a/src/share/classes/com/sun/source/doctree/AttributeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/AttributeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -33,9 +33,9 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface AttributeTree extends DocTree { - @jdk.Supported + @jdk.Exported enum ValueKind { EMPTY, UNQUOTED, SINGLE, DOUBLE }; Name getName(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/AuthorTree.java --- a/src/share/classes/com/sun/source/doctree/AuthorTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/AuthorTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface AuthorTree extends BlockTagTree { List getName(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/BlockTagTree.java --- a/src/share/classes/com/sun/source/doctree/BlockTagTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/BlockTagTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -31,7 +31,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface BlockTagTree extends DocTree { String getTagName(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/CommentTree.java --- a/src/share/classes/com/sun/source/doctree/CommentTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/CommentTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -33,7 +33,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface CommentTree extends DocTree { String getBody(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/DeprecatedTree.java --- a/src/share/classes/com/sun/source/doctree/DeprecatedTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/DeprecatedTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface DeprecatedTree extends BlockTagTree { List getBody(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/DocCommentTree.java --- a/src/share/classes/com/sun/source/doctree/DocCommentTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/DocCommentTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface DocCommentTree extends DocTree { List getFirstSentence(); List getBody(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/DocRootTree.java --- a/src/share/classes/com/sun/source/doctree/DocRootTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/DocRootTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -33,5 +33,5 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface DocRootTree extends InlineTagTree { } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/DocTree.java --- a/src/share/classes/com/sun/source/doctree/DocTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/DocTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -30,9 +30,9 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface DocTree { - @jdk.Supported + @jdk.Exported enum Kind { /** * Used for instances of {@link AttributeTree} diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/DocTreeVisitor.java --- a/src/share/classes/com/sun/source/doctree/DocTreeVisitor.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/DocTreeVisitor.java Mon Oct 28 18:30:14 2013 -0400 @@ -54,7 +54,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface DocTreeVisitor { R visitAttribute(AttributeTree node, P p); R visitAuthor(AuthorTree node, P p); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/EndElementTree.java --- a/src/share/classes/com/sun/source/doctree/EndElementTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/EndElementTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface EndElementTree extends DocTree { Name getName(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/EntityTree.java --- a/src/share/classes/com/sun/source/doctree/EntityTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/EntityTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,7 +36,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface EntityTree extends DocTree { Name getName(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/ErroneousTree.java --- a/src/share/classes/com/sun/source/doctree/ErroneousTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/ErroneousTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -32,7 +32,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface ErroneousTree extends TextTree { /** * Gets a diagnostic object giving details about diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/IdentifierTree.java --- a/src/share/classes/com/sun/source/doctree/IdentifierTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/IdentifierTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface IdentifierTree extends DocTree { Name getName(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/InheritDocTree.java --- a/src/share/classes/com/sun/source/doctree/InheritDocTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/InheritDocTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -34,5 +34,5 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface InheritDocTree extends InlineTagTree { } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/InlineTagTree.java --- a/src/share/classes/com/sun/source/doctree/InlineTagTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/InlineTagTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -31,7 +31,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface InlineTagTree extends DocTree { String getTagName(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/LinkTree.java --- a/src/share/classes/com/sun/source/doctree/LinkTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/LinkTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,7 +36,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface LinkTree extends InlineTagTree { ReferenceTree getReference(); List getLabel(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/LiteralTree.java --- a/src/share/classes/com/sun/source/doctree/LiteralTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/LiteralTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -34,7 +34,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface LiteralTree extends InlineTagTree { TextTree getBody(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/ParamTree.java --- a/src/share/classes/com/sun/source/doctree/ParamTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/ParamTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface ParamTree extends BlockTagTree { boolean isTypeParameter(); IdentifierTree getName(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/ReferenceTree.java --- a/src/share/classes/com/sun/source/doctree/ReferenceTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/ReferenceTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -33,7 +33,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface ReferenceTree extends DocTree { String getSignature(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/ReturnTree.java --- a/src/share/classes/com/sun/source/doctree/ReturnTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/ReturnTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface ReturnTree extends BlockTagTree { List getDescription(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/SeeTree.java --- a/src/share/classes/com/sun/source/doctree/SeeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/SeeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -38,7 +38,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface SeeTree extends BlockTagTree { List getReference(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/SerialDataTree.java --- a/src/share/classes/com/sun/source/doctree/SerialDataTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/SerialDataTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface SerialDataTree extends BlockTagTree { List getDescription(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/SerialFieldTree.java --- a/src/share/classes/com/sun/source/doctree/SerialFieldTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/SerialFieldTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface SerialFieldTree extends BlockTagTree { IdentifierTree getName(); ReferenceTree getType(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/SerialTree.java --- a/src/share/classes/com/sun/source/doctree/SerialTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/SerialTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface SerialTree extends BlockTagTree { List getDescription(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/SinceTree.java --- a/src/share/classes/com/sun/source/doctree/SinceTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/SinceTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface SinceTree extends BlockTagTree { List getBody(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/StartElementTree.java --- a/src/share/classes/com/sun/source/doctree/StartElementTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/StartElementTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,7 +36,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface StartElementTree extends DocTree { Name getName(); List getAttributes(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/TextTree.java --- a/src/share/classes/com/sun/source/doctree/TextTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/TextTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -30,7 +30,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface TextTree extends DocTree { String getBody(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/ThrowsTree.java --- a/src/share/classes/com/sun/source/doctree/ThrowsTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/ThrowsTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -38,7 +38,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface ThrowsTree extends BlockTagTree { ReferenceTree getExceptionName(); List getDescription(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/UnknownBlockTagTree.java --- a/src/share/classes/com/sun/source/doctree/UnknownBlockTagTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/UnknownBlockTagTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * @since 1.8 * */ -@jdk.Supported +@jdk.Exported public interface UnknownBlockTagTree extends BlockTagTree { List getContent(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/UnknownInlineTagTree.java --- a/src/share/classes/com/sun/source/doctree/UnknownInlineTagTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/UnknownInlineTagTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * @since 1.8 * */ -@jdk.Supported +@jdk.Exported public interface UnknownInlineTagTree extends InlineTagTree { List getContent(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/ValueTree.java --- a/src/share/classes/com/sun/source/doctree/ValueTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/ValueTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -33,7 +33,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface ValueTree extends InlineTagTree { ReferenceTree getReference(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/VersionTree.java --- a/src/share/classes/com/sun/source/doctree/VersionTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/VersionTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,7 +36,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface VersionTree extends BlockTagTree { List getBody(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/doctree/package-info.java --- a/src/share/classes/com/sun/source/doctree/package-info.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/doctree/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -31,5 +31,5 @@ * @since 1.8 * @see http://download.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#javadoctags */ -@jdk.Supported +@jdk.Exported package com.sun.source.doctree; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/AnnotatedTypeTree.java --- a/src/share/classes/com/sun/source/tree/AnnotatedTypeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/AnnotatedTypeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Mahmood Ali * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface AnnotatedTypeTree extends ExpressionTree { List getAnnotations(); ExpressionTree getUnderlyingType(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/AnnotationTree.java --- a/src/share/classes/com/sun/source/tree/AnnotationTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/AnnotationTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -42,7 +42,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface AnnotationTree extends ExpressionTree { Tree getAnnotationType(); List getArguments(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ArrayAccessTree.java --- a/src/share/classes/com/sun/source/tree/ArrayAccessTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ArrayAccessTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ArrayAccessTree extends ExpressionTree { ExpressionTree getExpression(); ExpressionTree getIndex(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ArrayTypeTree.java --- a/src/share/classes/com/sun/source/tree/ArrayTypeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ArrayTypeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ArrayTypeTree extends Tree { Tree getType(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/AssertTree.java --- a/src/share/classes/com/sun/source/tree/AssertTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/AssertTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface AssertTree extends StatementTree { ExpressionTree getCondition(); ExpressionTree getDetail(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/AssignmentTree.java --- a/src/share/classes/com/sun/source/tree/AssignmentTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/AssignmentTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface AssignmentTree extends ExpressionTree { ExpressionTree getVariable(); ExpressionTree getExpression(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/BinaryTree.java --- a/src/share/classes/com/sun/source/tree/BinaryTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/BinaryTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface BinaryTree extends ExpressionTree { ExpressionTree getLeftOperand(); ExpressionTree getRightOperand(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/BlockTree.java --- a/src/share/classes/com/sun/source/tree/BlockTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/BlockTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -45,7 +45,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface BlockTree extends StatementTree { boolean isStatic(); List getStatements(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/BreakTree.java --- a/src/share/classes/com/sun/source/tree/BreakTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/BreakTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -43,7 +43,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface BreakTree extends StatementTree { Name getLabel(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/CaseTree.java --- a/src/share/classes/com/sun/source/tree/CaseTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/CaseTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -45,7 +45,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface CaseTree extends Tree { /** * @return null if and only if this Case is {@code default:} diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/CatchTree.java --- a/src/share/classes/com/sun/source/tree/CatchTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/CatchTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface CatchTree extends Tree { VariableTree getParameter(); BlockTree getBlock(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ClassTree.java --- a/src/share/classes/com/sun/source/tree/ClassTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ClassTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -48,7 +48,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ClassTree extends StatementTree { ModifiersTree getModifiers(); Name getSimpleName(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/CompilationUnitTree.java --- a/src/share/classes/com/sun/source/tree/CompilationUnitTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/CompilationUnitTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -37,7 +37,7 @@ * @author Peter von der Ahé * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface CompilationUnitTree extends Tree { List getPackageAnnotations(); ExpressionTree getPackageName(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/CompoundAssignmentTree.java --- a/src/share/classes/com/sun/source/tree/CompoundAssignmentTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/CompoundAssignmentTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface CompoundAssignmentTree extends ExpressionTree { ExpressionTree getVariable(); ExpressionTree getExpression(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ConditionalExpressionTree.java --- a/src/share/classes/com/sun/source/tree/ConditionalExpressionTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ConditionalExpressionTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ConditionalExpressionTree extends ExpressionTree { ExpressionTree getCondition(); ExpressionTree getTrueExpression(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ContinueTree.java --- a/src/share/classes/com/sun/source/tree/ContinueTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ContinueTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -42,7 +42,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ContinueTree extends StatementTree { Name getLabel(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/DoWhileLoopTree.java --- a/src/share/classes/com/sun/source/tree/DoWhileLoopTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/DoWhileLoopTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface DoWhileLoopTree extends StatementTree { ExpressionTree getCondition(); StatementTree getStatement(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/EmptyStatementTree.java --- a/src/share/classes/com/sun/source/tree/EmptyStatementTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/EmptyStatementTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,5 +39,5 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface EmptyStatementTree extends StatementTree {} diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/EnhancedForLoopTree.java --- a/src/share/classes/com/sun/source/tree/EnhancedForLoopTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/EnhancedForLoopTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface EnhancedForLoopTree extends StatementTree { VariableTree getVariable(); ExpressionTree getExpression(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ErroneousTree.java --- a/src/share/classes/com/sun/source/tree/ErroneousTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ErroneousTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -34,7 +34,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ErroneousTree extends ExpressionTree { List getErrorTrees(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ExpressionStatementTree.java --- a/src/share/classes/com/sun/source/tree/ExpressionStatementTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ExpressionStatementTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ExpressionStatementTree extends StatementTree { ExpressionTree getExpression(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ExpressionTree.java --- a/src/share/classes/com/sun/source/tree/ExpressionTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ExpressionTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,5 +35,5 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ExpressionTree extends Tree {} diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ForLoopTree.java --- a/src/share/classes/com/sun/source/tree/ForLoopTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ForLoopTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -42,7 +42,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ForLoopTree extends StatementTree { List getInitializer(); ExpressionTree getCondition(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/IdentifierTree.java --- a/src/share/classes/com/sun/source/tree/IdentifierTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/IdentifierTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface IdentifierTree extends ExpressionTree { Name getName(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/IfTree.java --- a/src/share/classes/com/sun/source/tree/IfTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/IfTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -45,7 +45,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface IfTree extends StatementTree { ExpressionTree getCondition(); StatementTree getThenStatement(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ImportTree.java --- a/src/share/classes/com/sun/source/tree/ImportTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ImportTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ImportTree extends Tree { boolean isStatic(); /** diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/InstanceOfTree.java --- a/src/share/classes/com/sun/source/tree/InstanceOfTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/InstanceOfTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface InstanceOfTree extends ExpressionTree { ExpressionTree getExpression(); Tree getType(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/IntersectionTypeTree.java --- a/src/share/classes/com/sun/source/tree/IntersectionTypeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/IntersectionTypeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -34,7 +34,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface IntersectionTypeTree extends Tree { List getBounds(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/LabeledStatementTree.java --- a/src/share/classes/com/sun/source/tree/LabeledStatementTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/LabeledStatementTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface LabeledStatementTree extends StatementTree { Name getLabel(); StatementTree getStatement(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/LambdaExpressionTree.java --- a/src/share/classes/com/sun/source/tree/LambdaExpressionTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/LambdaExpressionTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -37,14 +37,14 @@ * (x,y)-> { return x + y; } * } */ -@jdk.Supported +@jdk.Exported public interface LambdaExpressionTree extends ExpressionTree { /** * Lambda expressions come in two forms: (i) expression lambdas, whose body * is an expression, and (ii) statement lambdas, whose body is a block */ - @jdk.Supported + @jdk.Exported public enum BodyKind { /** enum constant for expression lambdas */ EXPRESSION, diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/LineMap.java --- a/src/share/classes/com/sun/source/tree/LineMap.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/LineMap.java Mon Oct 28 18:30:14 2013 -0400 @@ -31,7 +31,7 @@ * * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface LineMap { /** * Find the start position of a line. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/LiteralTree.java --- a/src/share/classes/com/sun/source/tree/LiteralTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/LiteralTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface LiteralTree extends ExpressionTree { Object getValue(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/MemberReferenceTree.java --- a/src/share/classes/com/sun/source/tree/MemberReferenceTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/MemberReferenceTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,14 +39,14 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface MemberReferenceTree extends ExpressionTree { /** * There are two kinds of member references: (i) method references and * (ii) constructor references */ - @jdk.Supported + @jdk.Exported public enum ReferenceMode { /** enum constant for method references */ INVOKE, diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/MemberSelectTree.java --- a/src/share/classes/com/sun/source/tree/MemberSelectTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/MemberSelectTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface MemberSelectTree extends ExpressionTree { ExpressionTree getExpression(); Name getIdentifier(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/MethodInvocationTree.java --- a/src/share/classes/com/sun/source/tree/MethodInvocationTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/MethodInvocationTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -43,7 +43,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface MethodInvocationTree extends ExpressionTree { List getTypeArguments(); ExpressionTree getMethodSelect(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/MethodTree.java --- a/src/share/classes/com/sun/source/tree/MethodTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/MethodTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -46,7 +46,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface MethodTree extends Tree { ModifiersTree getModifiers(); Name getName(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ModifiersTree.java --- a/src/share/classes/com/sun/source/tree/ModifiersTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ModifiersTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -45,7 +45,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ModifiersTree extends Tree { Set getFlags(); List getAnnotations(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/NewArrayTree.java --- a/src/share/classes/com/sun/source/tree/NewArrayTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/NewArrayTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -25,7 +25,7 @@ package com.sun.source.tree; -import com.sun.tools.javac.util.List; +import java.util.List; /** * A tree node for an expression to create a new instance of an array. @@ -43,7 +43,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface NewArrayTree extends ExpressionTree { Tree getType(); List getDimensions(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/NewClassTree.java --- a/src/share/classes/com/sun/source/tree/NewClassTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/NewClassTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -48,7 +48,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface NewClassTree extends ExpressionTree { ExpressionTree getEnclosingExpression(); List getTypeArguments(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ParameterizedTypeTree.java --- a/src/share/classes/com/sun/source/tree/ParameterizedTypeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ParameterizedTypeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ParameterizedTypeTree extends Tree { Tree getType(); List getTypeArguments(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ParenthesizedTree.java --- a/src/share/classes/com/sun/source/tree/ParenthesizedTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ParenthesizedTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ParenthesizedTree extends ExpressionTree { ExpressionTree getExpression(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/PrimitiveTypeTree.java --- a/src/share/classes/com/sun/source/tree/PrimitiveTypeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/PrimitiveTypeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface PrimitiveTypeTree extends Tree { TypeKind getPrimitiveTypeKind(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ReturnTree.java --- a/src/share/classes/com/sun/source/tree/ReturnTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ReturnTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ReturnTree extends StatementTree { ExpressionTree getExpression(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/Scope.java --- a/src/share/classes/com/sun/source/tree/Scope.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/Scope.java Mon Oct 28 18:30:14 2013 -0400 @@ -48,7 +48,7 @@ * * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface Scope { /** * Returns the enclosing scope. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/StatementTree.java --- a/src/share/classes/com/sun/source/tree/StatementTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/StatementTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,5 +35,5 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface StatementTree extends Tree {} diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/SwitchTree.java --- a/src/share/classes/com/sun/source/tree/SwitchTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/SwitchTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -43,7 +43,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface SwitchTree extends StatementTree { ExpressionTree getExpression(); List getCases(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/SynchronizedTree.java --- a/src/share/classes/com/sun/source/tree/SynchronizedTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/SynchronizedTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -40,7 +40,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface SynchronizedTree extends StatementTree { ExpressionTree getExpression(); BlockTree getBlock(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/ThrowTree.java --- a/src/share/classes/com/sun/source/tree/ThrowTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/ThrowTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface ThrowTree extends StatementTree { ExpressionTree getExpression(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/Tree.java --- a/src/share/classes/com/sun/source/tree/Tree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/Tree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,13 +39,13 @@ * * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface Tree { /** * Enumerates all kinds of trees. */ - @jdk.Supported + @jdk.Exported public enum Kind { ANNOTATED_TYPE(AnnotatedTypeTree.class), diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/TreeVisitor.java --- a/src/share/classes/com/sun/source/tree/TreeVisitor.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/TreeVisitor.java Mon Oct 28 18:30:14 2013 -0400 @@ -56,7 +56,7 @@ * * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface TreeVisitor { R visitAnnotatedType(AnnotatedTypeTree node, P p); R visitAnnotation(AnnotationTree node, P p); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/TryTree.java --- a/src/share/classes/com/sun/source/tree/TryTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/TryTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -45,7 +45,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface TryTree extends StatementTree { BlockTree getBlock(); List getCatches(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/TypeCastTree.java --- a/src/share/classes/com/sun/source/tree/TypeCastTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/TypeCastTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -39,7 +39,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface TypeCastTree extends ExpressionTree { Tree getType(); ExpressionTree getExpression(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/TypeParameterTree.java --- a/src/share/classes/com/sun/source/tree/TypeParameterTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/TypeParameterTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -46,7 +46,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface TypeParameterTree extends Tree { Name getName(); List getBounds(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/UnaryTree.java --- a/src/share/classes/com/sun/source/tree/UnaryTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/UnaryTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -42,7 +42,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface UnaryTree extends ExpressionTree { ExpressionTree getExpression(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/UnionTypeTree.java --- a/src/share/classes/com/sun/source/tree/UnionTypeTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/UnionTypeTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -34,7 +34,7 @@ * * @since 1.7 */ -@jdk.Supported +@jdk.Exported public interface UnionTypeTree extends Tree { List getTypeAlternatives(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/VariableTree.java --- a/src/share/classes/com/sun/source/tree/VariableTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/VariableTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -42,7 +42,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface VariableTree extends StatementTree { ModifiersTree getModifiers(); Name getName(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/WhileLoopTree.java --- a/src/share/classes/com/sun/source/tree/WhileLoopTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/WhileLoopTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,7 +41,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface WhileLoopTree extends StatementTree { ExpressionTree getCondition(); StatementTree getStatement(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/WildcardTree.java --- a/src/share/classes/com/sun/source/tree/WildcardTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/WildcardTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -44,7 +44,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface WildcardTree extends Tree { Tree getBound(); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/tree/package-info.java --- a/src/share/classes/com/sun/source/tree/package-info.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/tree/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -31,5 +31,5 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported package com.sun.source.tree; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/DocSourcePositions.java --- a/src/share/classes/com/sun/source/util/DocSourcePositions.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/DocSourcePositions.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,7 +36,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface DocSourcePositions extends SourcePositions { /** diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/DocTreePath.java --- a/src/share/classes/com/sun/source/util/DocTreePath.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/DocTreePath.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public class DocTreePath implements Iterable { /** * Gets a documentation tree path for a tree node within a compilation unit. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/DocTreePathScanner.java --- a/src/share/classes/com/sun/source/util/DocTreePathScanner.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/DocTreePathScanner.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,7 +36,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public class DocTreePathScanner extends DocTreeScanner { /** * Scan a tree from a position identified by a TreePath. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/DocTreeScanner.java --- a/src/share/classes/com/sun/source/util/DocTreeScanner.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/DocTreeScanner.java Mon Oct 28 18:30:14 2013 -0400 @@ -67,7 +67,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public class DocTreeScanner implements DocTreeVisitor { /** diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/DocTrees.java --- a/src/share/classes/com/sun/source/util/DocTrees.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/DocTrees.java Mon Oct 28 18:30:14 2013 -0400 @@ -37,7 +37,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public abstract class DocTrees extends Trees { /** * Gets a DocTrees object for a given CompilationTask. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/JavacTask.java --- a/src/share/classes/com/sun/source/util/JavacTask.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/JavacTask.java Mon Oct 28 18:30:14 2013 -0400 @@ -48,7 +48,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public abstract class JavacTask implements CompilationTask { /** diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/Plugin.java --- a/src/share/classes/com/sun/source/util/Plugin.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/Plugin.java Mon Oct 28 18:30:14 2013 -0400 @@ -48,7 +48,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public interface Plugin { /** * Get the user-friendly name of this plug-in. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java --- a/src/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java Mon Oct 28 18:30:14 2013 -0400 @@ -32,7 +32,7 @@ * * @since 1.8 */ -@jdk.Supported +@jdk.Exported public class SimpleDocTreeVisitor implements DocTreeVisitor { protected final R DEFAULT_VALUE; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/SimpleTreeVisitor.java --- a/src/share/classes/com/sun/source/util/SimpleTreeVisitor.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/SimpleTreeVisitor.java Mon Oct 28 18:30:14 2013 -0400 @@ -33,7 +33,7 @@ * @author Peter von der Ahé * @since 1.6 */ -@jdk.Supported +@jdk.Exported public class SimpleTreeVisitor implements TreeVisitor { protected final R DEFAULT_VALUE; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/SourcePositions.java --- a/src/share/classes/com/sun/source/util/SourcePositions.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/SourcePositions.java Mon Oct 28 18:30:14 2013 -0400 @@ -35,7 +35,7 @@ * @author Peter von der Ahé * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface SourcePositions { /** diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/TaskEvent.java --- a/src/share/classes/com/sun/source/util/TaskEvent.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/TaskEvent.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,14 +36,14 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public final class TaskEvent { /** * Kind of task event. * @since 1.6 */ - @jdk.Supported + @jdk.Exported public enum Kind { /** * For events related to the parsing of a file. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/TaskListener.java --- a/src/share/classes/com/sun/source/util/TaskListener.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/TaskListener.java Mon Oct 28 18:30:14 2013 -0400 @@ -32,7 +32,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public interface TaskListener { public void started(TaskEvent e); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/TreePath.java --- a/src/share/classes/com/sun/source/util/TreePath.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/TreePath.java Mon Oct 28 18:30:14 2013 -0400 @@ -36,7 +36,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public class TreePath implements Iterable { /** * Gets a tree path for a tree node within a compilation unit. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/TreePathScanner.java --- a/src/share/classes/com/sun/source/util/TreePathScanner.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/TreePathScanner.java Mon Oct 28 18:30:14 2013 -0400 @@ -38,7 +38,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public class TreePathScanner extends TreeScanner { /** diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/TreeScanner.java --- a/src/share/classes/com/sun/source/util/TreeScanner.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/TreeScanner.java Mon Oct 28 18:30:14 2013 -0400 @@ -68,7 +68,7 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported public class TreeScanner implements TreeVisitor { /** Scan a single node. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/Trees.java --- a/src/share/classes/com/sun/source/util/Trees.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/Trees.java Mon Oct 28 18:30:14 2013 -0400 @@ -51,7 +51,7 @@ * * @author Peter von der Ahé */ -@jdk.Supported +@jdk.Exported public abstract class Trees { /** * Gets a Trees object for a given CompilationTask. diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/source/util/package-info.java --- a/src/share/classes/com/sun/source/util/package-info.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/source/util/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -30,5 +30,5 @@ * @author Jonathan Gibbons * @since 1.6 */ -@jdk.Supported +@jdk.Exported package com.sun.source.util; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/classfile/package-info.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/com/sun/tools/classfile/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2007, 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** + A minimalist library to read and write class files into objects closely + based on the corresponding definitions in + The Java™ Virtual Machine Specification (JVMS). + +

This is NOT part of any supported API. + If you write code that depends on this, you do so at your own risk. + This code and its internal interfaces are subject to change or + deletion without notice. +*/ +@jdk.Exported(false) +package com.sun.tools.classfile; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/classfile/package.html --- a/src/share/classes/com/sun/tools/classfile/package.html Fri Oct 11 17:51:08 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ - - - - - - - - A minimalist library to read and write class files into objects closely - based on the corresponding definitions in - The Java™ Virtual Machine Specification (JVMS). - - diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -101,10 +101,10 @@ Content tdSummary) { ExecutableMemberDoc emd = (ExecutableMemberDoc)member; String name = emd.name(); - Content strong = HtmlTree.SPAN(HtmlStyle.strong, + Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, writer.getDocLink(context, cd, (MemberDoc) emd, name, false)); - Content code = HtmlTree.CODE(strong); + Content code = HtmlTree.CODE(memberLink); addParameters(emd, false, code, name.length() - 1); tdSummary.addContent(code); } @@ -305,6 +305,6 @@ buf.append(t.dimension()); } buf.append(")"); - return foundTypeVariable ? buf.toString() : null; + return foundTypeVariable ? writer.getName(buf.toString()) : null; } } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -89,10 +89,11 @@ * @param memberlist List of members for the unicode character * @param contentTree the content tree to which the information will be added */ - protected void addContents(Character unicode, List memberlist, + protected void addContents(Character uc, List memberlist, Content contentTree) { - contentTree.addContent(getMarkerAnchor("_" + unicode + "_")); - Content headContent = new StringContent(unicode.toString()); + String unicode = uc.toString(); + contentTree.addContent(getMarkerAnchorForIndex(unicode)); + Content headContent = new StringContent(unicode); Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, false, HtmlStyle.title, headContent); contentTree.addContent(heading); @@ -175,7 +176,7 @@ String name = (member instanceof ExecutableMemberDoc)? member.name() + ((ExecutableMemberDoc)member).flatSignature() : member.name(); - Content span = HtmlTree.SPAN(HtmlStyle.strong, + Content span = HtmlTree.SPAN(HtmlStyle.memberNameLink, getDocLink(LinkInfoImpl.Kind.INDEX, member, name)); Content dt = HtmlTree.DT(span); dt.addContent(" - "); @@ -197,7 +198,7 @@ */ protected void addComment(ProgramElementDoc element, Content contentTree) { Tag[] tags; - Content span = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); + Content span = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); HtmlTree div = new HtmlTree(HtmlTag.DIV); div.addStyle(HtmlStyle.block); if (Util.isDeprecated(element)) { @@ -253,4 +254,24 @@ addPreQualifiedClassLink(LinkInfoImpl.Kind.INDEX, containing, false, contentTree); } + + /** + * Get the marker anchor which will be added to the index documentation tree. + * + * @param anchorNameForIndex the anchor name attribute for index page + * @return a content tree for the marker anchor + */ + public Content getMarkerAnchorForIndex(String anchorNameForIndex) { + return getMarkerAnchor(getNameForIndex(anchorNameForIndex), null); + } + + /** + * Generate a valid HTML name for member index page. + * + * @param unicode the string that needs to be converted to valid HTML name. + * @return a valid HTML name string. + */ + public String getNameForIndex(String unicode) { + return "I:" + getName(unicode); + } } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -413,7 +413,7 @@ protected void addDeprecatedAPI(List deprmembers, String headingKey, String tableSummary, String[] tableHeader, Content contentTree) { if (deprmembers.size() > 0) { - Content table = HtmlTree.TABLE(0, 3, 0, tableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.deprecatedSummary, 0, 3, 0, tableSummary, writer.getTableCaption(configuration.getResource(headingKey))); table.addContent(writer.getSummaryTableHeader(tableHeader, "col")); Content tbody = new HtmlTree(HtmlTag.TBODY); @@ -453,7 +453,7 @@ List members = mems; boolean printedUseTableHeader = false; if (members.size() > 0) { - Content table = HtmlTree.TABLE(0, 3, 0, tableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.useSummary, 0, 3, 0, tableSummary, writer.getTableCaption(heading)); Content tbody = new HtmlTree(HtmlTag.TBODY); Iterator it = members.iterator(); @@ -480,7 +480,7 @@ if (cd != null && !(pgmdoc instanceof ConstructorDoc) && !(pgmdoc instanceof ClassDoc)) { HtmlTree name = new HtmlTree(HtmlTag.SPAN); - name.addStyle(HtmlStyle.strong); + name.addStyle(HtmlStyle.typeNameLabel); name.addContent(cd.name() + "."); tdLast.addContent(name); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -88,7 +88,7 @@ Content memberDetailsTree) { if (!writer.printedAnnotationFieldHeading) { memberDetailsTree.addContent(writer.getMarkerAnchor( - "annotation_type_field_detail")); + SectionName.ANNOTATION_TYPE_FIELD_DETAIL)); Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, writer.fieldDetailsLabel); memberDetailsTree.addContent(heading); @@ -217,7 +217,7 @@ */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { memberTree.addContent(writer.getMarkerAnchor( - "annotation_type_field_summary")); + SectionName.ANNOTATION_TYPE_FIELD_SUMMARY)); } /** @@ -237,9 +237,9 @@ */ protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, Content tdSummary) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, + Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, writer.getDocLink(context, (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(strong); + Content code = HtmlTree.CODE(memberLink); tdSummary.addContent(code); } @@ -272,7 +272,8 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink("annotation_type_field_summary", + return writer.getHyperLink( + SectionName.ANNOTATION_TYPE_FIELD_SUMMARY, writer.getResource("doclet.navField")); } else { return writer.getResource("doclet.navField"); @@ -284,7 +285,8 @@ */ protected void addNavDetailLink(boolean link, Content liNav) { if (link) { - liNav.addContent(writer.getHyperLink("annotation_type_field_detail", + liNav.addContent(writer.getHyperLink( + SectionName.ANNOTATION_TYPE_FIELD_DETAIL, writer.getResource("doclet.navField"))); } else { liNav.addContent(writer.getResource("doclet.navField")); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -133,7 +133,7 @@ */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { memberTree.addContent(writer.getMarkerAnchor( - "annotation_type_optional_element_summary")); + SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY)); } /** @@ -141,7 +141,8 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink("annotation_type_optional_element_summary", + return writer.getHyperLink( + SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY, writer.getResource("doclet.navAnnotationTypeOptionalMember")); } else { return writer.getResource("doclet.navAnnotationTypeOptionalMember"); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -89,7 +89,7 @@ Content memberDetailsTree) { if (!writer.printedAnnotationHeading) { memberDetailsTree.addContent(writer.getMarkerAnchor( - "annotation_type_element_detail")); + SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL)); Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, writer.annotationTypeDetailsLabel); memberDetailsTree.addContent(heading); @@ -219,7 +219,7 @@ */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { memberTree.addContent(writer.getMarkerAnchor( - "annotation_type_required_element_summary")); + SectionName.ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY)); } /** @@ -239,9 +239,9 @@ */ protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, Content tdSummary) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, + Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, writer.getDocLink(context, (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(strong); + Content code = HtmlTree.CODE(memberLink); tdSummary.addContent(code); } @@ -274,7 +274,8 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink("annotation_type_required_element_summary", + return writer.getHyperLink( + SectionName.ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY, writer.getResource("doclet.navAnnotationTypeRequiredMember")); } else { return writer.getResource("doclet.navAnnotationTypeRequiredMember"); @@ -286,7 +287,8 @@ */ protected void addNavDetailLink(boolean link, Content liNav) { if (link) { - liNav.addContent(writer.getHyperLink("annotation_type_element_detail", + liNav.addContent(writer.getHyperLink( + SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL, writer.getResource("doclet.navAnnotationTypeMember"))); } else { liNav.addContent(writer.getResource("doclet.navAnnotationTypeMember")); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -227,7 +227,7 @@ addSrcLink(annotationType, annotationName, pre); pre.addContent(parameterLinks); } else { - Content span = HtmlTree.SPAN(HtmlStyle.strong, annotationName); + Content span = HtmlTree.SPAN(HtmlStyle.memberNameLabel, annotationName); span.addContent(parameterLinks); pre.addContent(span); } @@ -262,8 +262,8 @@ annotationInfoTree.addContent(hr); Tag[] deprs = annotationType.tags("deprecated"); if (Util.isDeprecated(annotationType)) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); - Content div = HtmlTree.DIV(HtmlStyle.block, strong); + Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); + Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); if (commentTags.length > 0) { diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -263,7 +263,7 @@ * @param contentTree the content tree to which the packages list will be added */ protected void addPackageList(Content contentTree) throws IOException { - Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.useSummary, 0, 3, 0, useTableSummary, getTableCaption(configuration.getResource( "doclet.ClassUse_Packages.that.use.0", getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.CLASS_USE_HEADER, classdoc @@ -298,7 +298,7 @@ pkgToPackageAnnotations.isEmpty()) { return; } - Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.useSummary, 0, 3, 0, useTableSummary, getTableCaption(configuration.getResource( "doclet.ClassUse_PackageAnnotation", getLink(new LinkInfoImpl(configuration, diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -254,7 +254,7 @@ addSrcLink(classDoc, className, pre); pre.addContent(parameterLinks); } else { - Content span = HtmlTree.SPAN(HtmlStyle.strong, className); + Content span = HtmlTree.SPAN(HtmlStyle.typeNameLabel, className); span.addContent(parameterLinks); pre.addContent(span); } @@ -547,8 +547,8 @@ classInfoTree.addContent(hr); Tag[] deprs = classDoc.tags("deprecated"); if (Util.isDeprecated(classDoc)) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); - Content div = HtmlTree.DIV(HtmlStyle.block, strong); + Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); + Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); if (commentTags.length > 0) { diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -284,7 +284,7 @@ setTopFile(root); if (root instanceof RootDocImpl) { - ((RootDocImpl) root).initDocLint(doclintOpts); + ((RootDocImpl) root).initDocLint(doclintOpts, tagletManager.getCustomTagNames()); } } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -107,7 +107,8 @@ //add link to summary Content link; if (packageName.length() == 0) { - link = getHyperLink(DocLink.fragment(DocletConstants.UNNAMED_PACKAGE_ANCHOR), + link = getHyperLink(getDocLink( + SectionName.UNNAMED_PACKAGE_ANCHOR), defaultPackageLabel, "", ""); } else { Content packageNameContent = getPackageLabel(parsedPackageName); @@ -153,7 +154,7 @@ Content pkgNameContent; if (parsedPackageName.length() == 0) { summariesTree.addContent(getMarkerAnchor( - DocletConstants.UNNAMED_PACKAGE_ANCHOR)); + SectionName.UNNAMED_PACKAGE_ANCHOR)); pkgNameContent = defaultPackageLabel; } else { summariesTree.addContent(getMarkerAnchor( @@ -207,7 +208,7 @@ * @return the table caption and header */ protected Content getClassName(Content classStr) { - Content table = HtmlTree.TABLE(0, 3, 0, constantsTableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.constantsSummary, 0, 3, 0, constantsTableSummary, getTableCaption(classStr)); table.addContent(getSummaryTableHeader(constantsTableHeader, "col")); return table; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -97,7 +97,8 @@ Content memberDetailsTree) { memberDetailsTree.addContent(HtmlConstants.START_OF_CONSTRUCTOR_DETAILS); Content constructorDetailsTree = writer.getMemberTreeHeader(); - constructorDetailsTree.addContent(writer.getMarkerAnchor("constructor_detail")); + constructorDetailsTree.addContent(writer.getMarkerAnchor( + SectionName.CONSTRUCTOR_DETAIL)); Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, writer.constructorDetailsLabel); constructorDetailsTree.addContent(heading); @@ -256,7 +257,8 @@ * {@inheritDoc} */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor("constructor_summary")); + memberTree.addContent(writer.getMarkerAnchor( + SectionName.CONSTRUCTOR_SUMMARY)); } /** @@ -280,7 +282,7 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink("constructor_summary", + return writer.getHyperLink(SectionName.CONSTRUCTOR_SUMMARY, writer.getResource("doclet.navConstructor")); } else { return writer.getResource("doclet.navConstructor"); @@ -292,7 +294,8 @@ */ protected void addNavDetailLink(boolean link, Content liNav) { if (link) { - liNav.addContent(writer.getHyperLink("constructor_detail", + liNav.addContent(writer.getHyperLink( + SectionName.CONSTRUCTOR_DETAIL, writer.getResource("doclet.navConstructor"))); } else { liNav.addContent(writer.getResource("doclet.navConstructor")); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -48,8 +48,8 @@ private static final String[] ANCHORS = new String[] { "package", "interface", "class", "enum", "exception", "error", - "annotation_type", "field", "method", "constructor", "enum_constant", - "annotation_type_member" + "annotation.type", "field", "method", "constructor", "enum.constant", + "annotation.type.member" }; private static final String[] HEADING_KEYS = new String[] { diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -73,7 +73,8 @@ Content memberDetailsTree) { memberDetailsTree.addContent(HtmlConstants.START_OF_ENUM_CONSTANT_DETAILS); Content enumConstantsDetailsTree = writer.getMemberTreeHeader(); - enumConstantsDetailsTree.addContent(writer.getMarkerAnchor("enum_constant_detail")); + enumConstantsDetailsTree.addContent(writer.getMarkerAnchor( + SectionName.ENUM_CONSTANT_DETAIL)); Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, writer.enumConstantsDetailsLabel); enumConstantsDetailsTree.addContent(heading); @@ -202,7 +203,8 @@ * {@inheritDoc} */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor("enum_constant_summary")); + memberTree.addContent(writer.getMarkerAnchor( + SectionName.ENUM_CONSTANT_SUMMARY)); } /** @@ -222,9 +224,9 @@ */ protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, Content tdSummary) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, + Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, writer.getDocLink(context, (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(strong); + Content code = HtmlTree.CODE(memberLink); tdSummary.addContent(code); } @@ -263,11 +265,14 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink((cd == null)? - "enum_constant_summary": - "enum_constants_inherited_from_class_" + - configuration.getClassName(cd), - writer.getResource("doclet.navEnum")); + if (cd == null) { + return writer.getHyperLink(SectionName.ENUM_CONSTANT_SUMMARY, + writer.getResource("doclet.navEnum")); + } else { + return writer.getHyperLink( + SectionName.ENUM_CONSTANTS_INHERITANCE, + configuration.getClassName(cd), writer.getResource("doclet.navEnum")); + } } else { return writer.getResource("doclet.navEnum"); } @@ -278,7 +283,8 @@ */ protected void addNavDetailLink(boolean link, Content liNav) { if (link) { - liNav.addContent(writer.getHyperLink("enum_constant_detail", + liNav.addContent(writer.getHyperLink( + SectionName.ENUM_CONSTANT_DETAIL, writer.getResource("doclet.navEnum"))); } else { liNav.addContent(writer.getResource("doclet.navEnum")); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -74,7 +74,8 @@ Content memberDetailsTree) { memberDetailsTree.addContent(HtmlConstants.START_OF_FIELD_DETAILS); Content fieldDetailsTree = writer.getMemberTreeHeader(); - fieldDetailsTree.addContent(writer.getMarkerAnchor("field_detail")); + fieldDetailsTree.addContent(writer.getMarkerAnchor( + SectionName.FIELD_DETAIL)); Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, writer.fieldDetailsLabel); fieldDetailsTree.addContent(heading); @@ -139,11 +140,11 @@ holder.typeName() : holder.qualifiedTypeName(), false); Content codeLink = HtmlTree.CODE(link); - Content strong = HtmlTree.SPAN(HtmlStyle.strong, holder.isClass()? + Content descfrmLabel = HtmlTree.SPAN(HtmlStyle.descfrmTypeLabel, holder.isClass()? writer.descfrmClassLabel : writer.descfrmInterfaceLabel); - strong.addContent(writer.getSpace()); - strong.addContent(codeLink); - fieldDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, strong)); + descfrmLabel.addContent(writer.getSpace()); + descfrmLabel.addContent(codeLink); + fieldDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, descfrmLabel)); writer.addInlineComment(field, fieldDocTree); } } @@ -224,7 +225,8 @@ * {@inheritDoc} */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor("field_summary")); + memberTree.addContent(writer.getMarkerAnchor( + SectionName.FIELD_SUMMARY)); } /** @@ -232,7 +234,7 @@ */ public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { inheritedTree.addContent(writer.getMarkerAnchor( - "fields_inherited_from_class_" + configuration.getClassName(cd))); + SectionName.FIELDS_INHERITANCE, configuration.getClassName(cd))); } /** @@ -256,9 +258,9 @@ */ protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, Content tdSummary) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, + Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, writer.getDocLink(context, cd , (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(strong); + Content code = HtmlTree.CODE(memberLink); tdSummary.addContent(code); } @@ -293,11 +295,15 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink((cd == null)? - "field_summary": - "fields_inherited_from_class_" + - configuration.getClassName(cd), - writer.getResource("doclet.navField")); + if (cd == null) { + return writer.getHyperLink( + SectionName.FIELD_SUMMARY, + writer.getResource("doclet.navField")); + } else { + return writer.getHyperLink( + SectionName.FIELDS_INHERITANCE, + configuration.getClassName(cd), writer.getResource("doclet.navField")); + } } else { return writer.getResource("doclet.navField"); } @@ -308,7 +314,8 @@ */ protected void addNavDetailLink(boolean link, Content liNav) { if (link) { - liNav.addContent(writer.getHyperLink("field_detail", + liNav.addContent(writer.getHyperLink( + SectionName.FIELD_DETAIL, writer.getResource("doclet.navField"))); } else { liNav.addContent(writer.getResource("doclet.navField")); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -316,7 +316,7 @@ liConst.addContent(constPara); ul.addContent(liConst); Content divContent = HtmlTree.DIV(HtmlStyle.contentContainer, ul); - Content line30 = HtmlTree.SPAN(HtmlStyle.italic, getResource("doclet.Help_line_30")); + Content line30 = HtmlTree.SPAN(HtmlStyle.emphasizedPhrase, getResource("doclet.Help_line_30")); divContent.addContent(line30); contentTree.addContent(divContent); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java Mon Oct 28 18:30:14 2013 -0400 @@ -194,6 +194,10 @@ .getClassBuilder(curr, prev, next, classtree); classBuilder.build(); } + } catch (IOException e) { + throw new DocletAbortException(e); + } catch (DocletAbortException de) { + throw de; } catch (Exception e) { e.printStackTrace(); throw new DocletAbortException(e); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -356,7 +356,7 @@ if(classes.length > 0) { Arrays.sort(classes); Content caption = getTableCaption(new RawHtml(label)); - Content table = HtmlTree.TABLE(HtmlStyle.packageSummary, 0, 3, 0, + Content table = HtmlTree.TABLE(HtmlStyle.typeSummary, 0, 3, 0, tableSummary, caption); table.addContent(getSummaryTableHeader(tableHeader, "col")); Content tbody = new HtmlTree(HtmlTag.TBODY); @@ -391,8 +391,7 @@ tbody.addContent(tr); } table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - summaryContentTree.addContent(li); + summaryContentTree.addContent(table); } } @@ -509,28 +508,28 @@ body.addContent(HtmlConstants.START_OF_TOP_NAVBAR); navDiv.addStyle(HtmlStyle.topNav); allClassesId += "navbar_top"; - Content a = getMarkerAnchor("navbar_top"); + Content a = getMarkerAnchor(SectionName.NAVBAR_TOP); //WCAG - Hyperlinks should contain text or an image with alt text - for AT tools navDiv.addContent(a); Content skipLinkContent = HtmlTree.DIV(HtmlStyle.skipNav, getHyperLink( - DocLink.fragment("skip-navbar_top"), skipNavLinks, + getDocLink(SectionName.SKIP_NAVBAR_TOP), skipNavLinks, skipNavLinks.toString(), "")); navDiv.addContent(skipLinkContent); } else { body.addContent(HtmlConstants.START_OF_BOTTOM_NAVBAR); navDiv.addStyle(HtmlStyle.bottomNav); allClassesId += "navbar_bottom"; - Content a = getMarkerAnchor("navbar_bottom"); + Content a = getMarkerAnchor(SectionName.NAVBAR_BOTTOM); navDiv.addContent(a); Content skipLinkContent = HtmlTree.DIV(HtmlStyle.skipNav, getHyperLink( - DocLink.fragment("skip-navbar_bottom"), skipNavLinks, + getDocLink(SectionName.SKIP_NAVBAR_BOTTOM), skipNavLinks, skipNavLinks.toString(), "")); navDiv.addContent(skipLinkContent); } if (header) { - navDiv.addContent(getMarkerAnchor("navbar_top_firstrow")); + navDiv.addContent(getMarkerAnchor(SectionName.NAVBAR_TOP_FIRSTROW)); } else { - navDiv.addContent(getMarkerAnchor("navbar_bottom_firstrow")); + navDiv.addContent(getMarkerAnchor(SectionName.NAVBAR_BOTTOM_FIRSTROW)); } HtmlTree navList = new HtmlTree(HtmlTag.UL); navList.addStyle(HtmlStyle.navList); @@ -577,11 +576,11 @@ subDiv.addContent(getAllClassesLinkScript(allClassesId.toString())); addSummaryDetailLinks(subDiv); if (header) { - subDiv.addContent(getMarkerAnchor("skip-navbar_top")); + subDiv.addContent(getMarkerAnchor(SectionName.SKIP_NAVBAR_TOP)); body.addContent(subDiv); body.addContent(HtmlConstants.END_OF_TOP_NAVBAR); } else { - subDiv.addContent(getMarkerAnchor("skip-navbar_bottom")); + subDiv.addContent(getMarkerAnchor(SectionName.SKIP_NAVBAR_BOTTOM)); body.addContent(subDiv); body.addContent(HtmlConstants.END_OF_BOTTOM_NAVBAR); } @@ -886,7 +885,28 @@ * @return a content tree for the marker anchor */ public Content getMarkerAnchor(String anchorName) { - return getMarkerAnchor(anchorName, null); + return getMarkerAnchor(getName(anchorName), null); + } + + /** + * Get the marker anchor which will be added to the documentation tree. + * + * @param sectionName the section name anchor attribute for page + * @return a content tree for the marker anchor + */ + public Content getMarkerAnchor(SectionName sectionName) { + return getMarkerAnchor(sectionName.getName(), null); + } + + /** + * Get the marker anchor which will be added to the documentation tree. + * + * @param sectionName the section name anchor attribute for page + * @param anchorName the anchor name combined with section name attribute for the page + * @return a content tree for the marker anchor + */ + public Content getMarkerAnchor(SectionName sectionName, String anchorName) { + return getMarkerAnchor(sectionName.getName() + getName(anchorName), null); } /** @@ -937,7 +957,7 @@ protected void addPackageDeprecatedAPI(List deprPkgs, String headingKey, String tableSummary, String[] tableHeader, Content contentTree) { if (deprPkgs.size() > 0) { - Content table = HtmlTree.TABLE(0, 3, 0, tableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.deprecatedSummary, 0, 3, 0, tableSummary, getTableCaption(configuration.getResource(headingKey))); table.addContent(getSummaryTableHeader(tableHeader, "col")); Content tbody = new HtmlTree(HtmlTag.TBODY); @@ -1030,7 +1050,7 @@ public Content italicsClassName(ClassDoc cd, boolean qual) { Content name = new StringContent((qual)? cd.qualifiedName(): cd.name()); - return (cd.isInterface())? HtmlTree.SPAN(HtmlStyle.italic, name): name; + return (cd.isInterface())? HtmlTree.SPAN(HtmlStyle.interfaceName, name): name; } /** @@ -1291,10 +1311,10 @@ } else if (doc instanceof ExecutableMemberDoc) { ExecutableMemberDoc emd = (ExecutableMemberDoc)doc; return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(getAnchor(emd, isProperty)).strong(strong)); + .label(label).where(getName(getAnchor(emd, isProperty))).strong(strong)); } else if (doc instanceof MemberDoc) { return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(doc.name()).strong(strong)); + .label(label).where(getName(doc.name())).strong(strong)); } else { return label; } @@ -1319,10 +1339,10 @@ } else if (doc instanceof ExecutableMemberDoc) { ExecutableMemberDoc emd = (ExecutableMemberDoc) doc; return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(getAnchor(emd))); + .label(label).where(getName(getAnchor(emd)))); } else if (doc instanceof MemberDoc) { return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(doc.name())); + .label(label).where(getName(doc.name()))); } else { return label; } @@ -1546,7 +1566,7 @@ Content div; Content result = commentTagsToContent(null, doc, tags, first); if (depr) { - Content italic = HtmlTree.SPAN(HtmlStyle.italic, result); + Content italic = HtmlTree.SPAN(HtmlStyle.deprecationComment, result); div = HtmlTree.DIV(HtmlStyle.block, italic); htmltree.addContent(div); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -49,8 +49,6 @@ implements SerializedFormWriter.SerialFieldWriter { ProgramElementDoc[] members = null; - private boolean printedOverallAnchor = false; - public HtmlSerialFieldWriter(SubWriterHolderWriter writer, ClassDoc classdoc) { super(writer, classdoc); @@ -98,10 +96,6 @@ HtmlTree li = new HtmlTree(HtmlTag.LI); li.addStyle(HtmlStyle.blockList); if (serializableFieldsTree.isValid()) { - if (!printedOverallAnchor) { - li.addContent(writer.getMarkerAnchor("serializedForm")); - printedOverallAnchor = true; - } Content headingContent = new StringContent(heading); Content serialHeading = HtmlTree.HEADING(HtmlConstants.SERIALIZED_MEMBER_HEADING, headingContent); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -85,12 +85,10 @@ * @return a content tree for the serializable methods content */ public Content getSerializableMethods(String heading, Content serializableMethodContent) { - Content li = HtmlTree.LI(HtmlStyle.blockList, writer.getMarkerAnchor( - "serialized_methods")); Content headingContent = new StringContent(heading); Content serialHeading = HtmlTree.HEADING(HtmlConstants.SERIALIZED_MEMBER_HEADING, headingContent); - li.addContent(serialHeading); + Content li = HtmlTree.LI(HtmlStyle.blockList, serialHeading); li.addContent(serializableMethodContent); return li; } @@ -113,8 +111,6 @@ * @param methodsContentTree the content tree to which the member header will be added */ public void addMemberHeader(MethodDoc member, Content methodsContentTree) { - methodsContentTree.addContent(writer.getMarkerAnchor( - writer.getAnchor(member))); methodsContentTree.addContent(getHead(member)); methodsContentTree.addContent(getSignature(member)); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -85,7 +85,8 @@ Content memberDetailsTree) { memberDetailsTree.addContent(HtmlConstants.START_OF_METHOD_DETAILS); Content methodDetailsTree = writer.getMemberTreeHeader(); - methodDetailsTree.addContent(writer.getMarkerAnchor("method_detail")); + methodDetailsTree.addContent(writer.getMarkerAnchor( + SectionName.METHOD_DETAIL)); Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, writer.methodDetailsLabel); methodDetailsTree.addContent(heading); @@ -159,11 +160,11 @@ holder.typeName() : holder.qualifiedTypeName(), false); Content codelLink = HtmlTree.CODE(link); - Content strong = HtmlTree.SPAN(HtmlStyle.strong, holder.asClassDoc().isClass()? + Content descfrmLabel = HtmlTree.SPAN(HtmlStyle.descfrmTypeLabel, holder.asClassDoc().isClass()? writer.descfrmClassLabel : writer.descfrmInterfaceLabel); - strong.addContent(writer.getSpace()); - strong.addContent(codelLink); - methodDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, strong)); + descfrmLabel.addContent(writer.getSpace()); + descfrmLabel.addContent(codelLink); + methodDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, descfrmLabel)); writer.addInlineComment(method, methodDocTree); } } @@ -244,7 +245,8 @@ * {@inheritDoc} */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor("method_summary")); + memberTree.addContent(writer.getMarkerAnchor( + SectionName.METHOD_SUMMARY)); } /** @@ -252,8 +254,7 @@ */ public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { inheritedTree.addContent(writer.getMarkerAnchor( - "methods_inherited_from_class_" + - configuration.getClassName(cd))); + SectionName.METHODS_INHERITANCE, configuration.getClassName(cd))); } /** @@ -309,7 +310,7 @@ label = writer.specifiedByLabel; context = LinkInfoImpl.Kind.METHOD_SPECIFIED_BY; } - Content dt = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, label)); + Content dt = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.overrideSpecifyLabel, label)); dl.addContent(dt); Content overriddenTypeLink = writer.getLink(new LinkInfoImpl(writer.configuration, context, overriddenType)); @@ -318,7 +319,7 @@ Content methlink = writer.getLink( new LinkInfoImpl(writer.configuration, LinkInfoImpl.Kind.MEMBER, overriddenType.asClassDoc()) - .where(writer.getAnchor(method)).label(name)); + .where(writer.getName(writer.getAnchor(method))).label(name)); Content codeMethLink = HtmlTree.CODE(methlink); Content dd = HtmlTree.DD(codeMethLink); dd.addContent(writer.getSpace()); @@ -364,7 +365,7 @@ Content intfaclink = writer.getLink(new LinkInfoImpl( writer.configuration, LinkInfoImpl.Kind.METHOD_SPECIFIED_BY, intfac)); Content codeIntfacLink = HtmlTree.CODE(intfaclink); - Content dt = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, writer.specifiedByLabel)); + Content dt = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.overrideSpecifyLabel, writer.specifiedByLabel)); dl.addContent(dt); Content methlink = writer.getDocLink( LinkInfoImpl.Kind.MEMBER, implementedMeth, @@ -400,11 +401,15 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink((cd == null)? - "method_summary": - "methods_inherited_from_class_" + - configuration.getClassName(cd), - writer.getResource("doclet.navMethod")); + if (cd == null) { + return writer.getHyperLink( + SectionName.METHOD_SUMMARY, + writer.getResource("doclet.navMethod")); + } else { + return writer.getHyperLink( + SectionName.METHODS_INHERITANCE, + configuration.getClassName(cd), writer.getResource("doclet.navMethod")); + } } else { return writer.getResource("doclet.navMethod"); } @@ -415,8 +420,8 @@ */ protected void addNavDetailLink(boolean link, Content liNav) { if (link) { - liNav.addContent(writer.getHyperLink("method_detail", - writer.getResource("doclet.navMethod"))); + liNav.addContent(writer.getHyperLink( + SectionName.METHOD_DETAIL, writer.getResource("doclet.navMethod"))); } else { liNav.addContent(writer.getResource("doclet.navMethod")); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -132,7 +132,8 @@ * {@inheritDoc} */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor("nested_class_summary")); + memberTree.addContent(writer.getMarkerAnchor( + SectionName.NESTED_CLASS_SUMMARY)); } /** @@ -140,7 +141,8 @@ */ public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { inheritedTree.addContent(writer.getMarkerAnchor( - "nested_classes_inherited_from_class_" + cd.qualifiedName())); + SectionName.NESTED_CLASSES_INHERITANCE, + cd.qualifiedName())); } /** @@ -164,9 +166,9 @@ */ protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, Content tdSummary) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, + Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, writer.getLink(new LinkInfoImpl(configuration, context, (ClassDoc)member))); - Content code = HtmlTree.CODE(strong); + Content code = HtmlTree.CODE(memberLink); tdSummary.addContent(code); } @@ -202,9 +204,15 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink((cd == null) ? "nested_class_summary": - "nested_classes_inherited_from_class_" + cd.qualifiedName(), - writer.getResource("doclet.navNested")); + if (cd == null) { + return writer.getHyperLink( + SectionName.NESTED_CLASS_SUMMARY, + writer.getResource("doclet.navNested")); + } else { + return writer.getHyperLink( + SectionName.NESTED_CLASSES_INHERITANCE, + cd.qualifiedName(), writer.getResource("doclet.navNested")); + } } else { return writer.getResource("doclet.navNested"); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/PackageFrameWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/PackageFrameWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/PackageFrameWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -183,7 +183,7 @@ printedHeader = true; } Content arr_i_name = new StringContent(arr[i].name()); - if (arr[i].isInterface()) arr_i_name = HtmlTree.SPAN(HtmlStyle.italic, arr_i_name); + if (arr[i].isInterface()) arr_i_name = HtmlTree.SPAN(HtmlStyle.interfaceName, arr_i_name); Content link = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.PACKAGE_FRAME, arr[i]).label(arr_i_name).target("classFrame")); Content li = HtmlTree.LI(link); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -203,8 +203,9 @@ Content see = seeLabel; see.addContent(" "); Content descPara = HtmlTree.P(see); - Content descLink = getHyperLink(DocLink.fragment("overview_description"), - descriptionLabel, "", ""); + Content descLink = getHyperLink(getDocLink( + SectionName.OVERVIEW_DESCRIPTION), + descriptionLabel, "", ""); descPara.addContent(descLink); div.addContent(descPara); body.addContent(div); @@ -220,7 +221,8 @@ */ protected void addOverviewComment(Content htmltree) { if (root.inlineTags().length > 0) { - htmltree.addContent(getMarkerAnchor("overview_description")); + htmltree.addContent( + getMarkerAnchor(SectionName.OVERVIEW_DESCRIPTION)); addInlineComment(root, htmltree); } } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -155,7 +155,7 @@ * @param div the content tree to which the link will be added */ protected void addLinkToMainTree(Content div) { - Content span = HtmlTree.SPAN(HtmlStyle.strong, + Content span = HtmlTree.SPAN(HtmlStyle.packageHierarchyLabel, getResource("doclet.Package_Hierarchies")); div.addContent(span); HtmlTree ul = new HtmlTree (HtmlTag.UL); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -151,7 +151,7 @@ * @param contentTree the content tree to which the package list will be added */ protected void addPackageList(Content contentTree) throws IOException { - Content table = HtmlTree.TABLE(0, 3, 0, useTableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.useSummary, 0, 3, 0, useTableSummary, getTableCaption(configuration.getResource( "doclet.ClassUse_Packages.that.use.0", getPackageLink(pkgdoc, Util.getPackageName(pkgdoc))))); @@ -196,7 +196,7 @@ } String tableSummary = configuration.getText("doclet.Use_Table_Summary", configuration.getText("doclet.classes")); - Content table = HtmlTree.TABLE(0, 3, 0, tableSummary, + Content table = HtmlTree.TABLE(HtmlStyle.useSummary, 0, 3, 0, tableSummary, getTableCaption(configuration.getResource( "doclet.ClassUse_Classes.in.0.used.by.1", getPackageLink(pkgdoc, Util.getPackageName(pkgdoc)), diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -112,7 +112,8 @@ addSummaryComment(packageDoc, docSummaryDiv); div.addContent(docSummaryDiv); Content space = getSpace(); - Content descLink = getHyperLink(DocLink.fragment("package_description"), + Content descLink = getHyperLink(getDocLink( + SectionName.PACKAGE_DESCRIPTION), descriptionLabel, "", ""); Content descPara = new HtmlTree(HtmlTag.P, seeLabel, space, descLink); div.addContent(descPara); @@ -140,7 +141,7 @@ if (Util.isDeprecated(packageDoc)) { HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV); deprDiv.addStyle(HtmlStyle.deprecatedContent); - Content deprPhrase = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); + Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); deprDiv.addContent(deprPhrase); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); @@ -169,7 +170,7 @@ if(classes.length > 0) { Arrays.sort(classes); Content caption = getTableCaption(new RawHtml(label)); - Content table = HtmlTree.TABLE(HtmlStyle.packageSummary, 0, 3, 0, + Content table = HtmlTree.TABLE(HtmlStyle.typeSummary, 0, 3, 0, tableSummary, caption); table.addContent(getSummaryTableHeader(tableHeader, "col")); Content tbody = new HtmlTree(HtmlTag.TBODY); @@ -211,7 +212,8 @@ */ public void addPackageDescription(Content packageContentTree) { if (packageDoc.inlineTags().length > 0) { - packageContentTree.addContent(getMarkerAnchor("package_description")); + packageContentTree.addContent( + getMarkerAnchor(SectionName.PACKAGE_DESCRIPTION)); Content h2Content = new StringContent( configuration.getText("doclet.Package_Description", packageDoc.name())); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageFrameWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageFrameWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageFrameWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -174,7 +174,7 @@ printedHeader = true; } Content arr_i_name = new StringContent(arr[i].name()); - if (arr[i].isInterface()) arr_i_name = HtmlTree.SPAN(HtmlStyle.italic, arr_i_name); + if (arr[i].isInterface()) arr_i_name = HtmlTree.SPAN(HtmlStyle.interfaceName, arr_i_name); Content link = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.PACKAGE_FRAME, arr[i]).label(arr_i_name).target("classFrame")); Content li = HtmlTree.LI(link); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -129,7 +129,8 @@ addSummaryComment(packageDoc, docSummaryDiv); div.addContent(docSummaryDiv); Content space = getSpace(); - Content descLink = getHyperLink(DocLink.fragment("package_description"), + Content descLink = getHyperLink(getDocLink( + SectionName.PACKAGE_DESCRIPTION), descriptionLabel, "", ""); Content descPara = new HtmlTree(HtmlTag.P, seeLabel, space, descLink); div.addContent(descPara); @@ -157,7 +158,7 @@ if (Util.isDeprecated(packageDoc)) { HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV); deprDiv.addStyle(HtmlStyle.deprecatedContent); - Content deprPhrase = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); + Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); deprDiv.addContent(deprPhrase); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); @@ -174,8 +175,11 @@ */ public void addClassesSummary(ClassDoc[] classes, String label, String tableSummary, String[] tableHeader, Content packageSummaryContentTree) { + HtmlTree li = new HtmlTree(HtmlTag.LI); + li.addStyle(HtmlStyle.blockList); addClassesSummary(classes, label, tableSummary, tableHeader, - packageSummaryContentTree, profileValue); + li, profileValue); + packageSummaryContentTree.addContent(li); } /** @@ -192,7 +196,8 @@ */ public void addPackageDescription(Content packageContentTree) { if (packageDoc.inlineTags().length > 0) { - packageContentTree.addContent(getMarkerAnchor("package_description")); + packageContentTree.addContent( + getMarkerAnchor(SectionName.PACKAGE_DESCRIPTION)); Content h2Content = new StringContent( configuration.getText("doclet.Package_Description", packageDoc.name())); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/ProfileWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/ProfileWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ProfileWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -187,7 +187,7 @@ deprs = pkg.tags("deprecated"); HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV); deprDiv.addStyle(HtmlStyle.deprecatedContent); - Content deprPhrase = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); + Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); deprDiv.addContent(deprPhrase); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -70,7 +70,8 @@ Content memberDetailsTree) { memberDetailsTree.addContent(HtmlConstants.START_OF_PROPERTY_DETAILS); Content propertyDetailsTree = writer.getMemberTreeHeader(); - propertyDetailsTree.addContent(writer.getMarkerAnchor("property_detail")); + propertyDetailsTree.addContent(writer.getMarkerAnchor( + SectionName.PROPERTY_DETAIL)); Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, writer.propertyDetailsLabel); propertyDetailsTree.addContent(heading); @@ -135,11 +136,11 @@ holder.typeName() : holder.qualifiedTypeName(), false); Content codeLink = HtmlTree.CODE(link); - Content strong = HtmlTree.SPAN(HtmlStyle.strong, holder.isClass()? + Content descfrmLabel = HtmlTree.SPAN(HtmlStyle.descfrmTypeLabel, holder.isClass()? writer.descfrmClassLabel : writer.descfrmInterfaceLabel); - strong.addContent(writer.getSpace()); - strong.addContent(codeLink); - propertyDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, strong)); + descfrmLabel.addContent(writer.getSpace()); + descfrmLabel.addContent(codeLink); + propertyDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, descfrmLabel)); writer.addInlineComment(property, propertyDocTree); } } @@ -220,7 +221,8 @@ * {@inheritDoc} */ public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor("property_summary")); + memberTree.addContent(writer.getMarkerAnchor( + SectionName.PROPERTY_SUMMARY)); } /** @@ -228,7 +230,8 @@ */ public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { inheritedTree.addContent(writer.getMarkerAnchor( - "properties_inherited_from_class_" + configuration.getClassName(cd))); + SectionName.PROPERTIES_INHERITANCE, + configuration.getClassName(cd))); } /** @@ -252,14 +255,14 @@ */ protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, Content tdSummary) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, + Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, writer.getDocLink(context, cd, (MemberDoc) member, member.name().substring(0, member.name().lastIndexOf("Property")), false, true)); - Content code = HtmlTree.CODE(strong); + Content code = HtmlTree.CODE(memberLink); tdSummary.addContent(code); } @@ -297,11 +300,15 @@ */ protected Content getNavSummaryLink(ClassDoc cd, boolean link) { if (link) { - return writer.getHyperLink((cd == null)? - "property_summary": - "properties_inherited_from_class_" + - configuration.getClassName(cd), + if (cd == null) { + return writer.getHyperLink( + SectionName.PROPERTY_SUMMARY, writer.getResource("doclet.navProperty")); + } else { + return writer.getHyperLink( + SectionName.PROPERTIES_INHERITANCE, + configuration.getClassName(cd), writer.getResource("doclet.navProperty")); + } } else { return writer.getResource("doclet.navProperty"); } @@ -312,7 +319,8 @@ */ protected void addNavDetailLink(boolean link, Content liNav) { if (link) { - liNav.addContent(writer.getHyperLink("property_detail", + liNav.addContent(writer.getHyperLink( + SectionName.PROPERTY_DETAIL, writer.getResource("doclet.navProperty"))); } else { liNav.addContent(writer.getResource("doclet.navProperty")); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/SectionName.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/SectionName.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package com.sun.tools.doclets.formats.html; + +/** + * Enum representing various section names of generated API documentation. + * + *

This is NOT part of any supported API. + * If you write code that depends on this, you do so at your own risk. + * This code and its internal interfaces are subject to change or + * deletion without notice. + * + * @author Bhavesh Patel + */ +public enum SectionName { + + ANNOTATION_TYPE_ELEMENT_DETAIL("annotation.type.element.detail"), + ANNOTATION_TYPE_FIELD_DETAIL("annotation.type.field.detail"), + ANNOTATION_TYPE_FIELD_SUMMARY("annotation.type.field.summary"), + ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY("annotation.type.optional.element.summary"), + ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY("annotation.type.required.element.summary"), + CONSTRUCTOR_DETAIL("constructor.detail"), + CONSTRUCTOR_SUMMARY("constructor.summary"), + ENUM_CONSTANT_DETAIL("enum.constant.detail"), + ENUM_CONSTANTS_INHERITANCE("enum.constants.inherited.from.class."), + ENUM_CONSTANT_SUMMARY("enum.constant.summary"), + FIELD_DETAIL("field.detail"), + FIELDS_INHERITANCE("fields.inherited.from.class."), + FIELD_SUMMARY("field.summary"), + METHOD_DETAIL("method.detail"), + METHODS_INHERITANCE("methods.inherited.from.class."), + METHOD_SUMMARY("method.summary"), + NAVBAR_BOTTOM("navbar.bottom"), + NAVBAR_BOTTOM_FIRSTROW("navbar.bottom.firstrow"), + NAVBAR_TOP("navbar.top"), + NAVBAR_TOP_FIRSTROW("navbar.top.firstrow"), + NESTED_CLASSES_INHERITANCE("nested.classes.inherited.from.class."), + NESTED_CLASS_SUMMARY("nested.class.summary"), + OVERVIEW_DESCRIPTION("overview.description"), + PACKAGE_DESCRIPTION("package.description"), + PROPERTY_DETAIL("property.detail"), + PROPERTIES_INHERITANCE("properties.inherited.from.class."), + PROPERTY_SUMMARY("property.summary"), + SKIP_NAVBAR_BOTTOM("skip.navbar.bottom"), + SKIP_NAVBAR_TOP("skip.navbar.top"), + UNNAMED_PACKAGE_ANCHOR("unnamed.package"); + + private final String value; + + SectionName(String sName) { + this.value = sName; + } + + public String getName() { + return this.value; + } +} diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -115,7 +115,8 @@ for (int i = 0; i < indexbuilder.elements().length; i++) { String unicode = (indexbuilder.elements())[i].toString(); contentTree.addContent( - getHyperLink("_" + unicode + "_", new StringContent(unicode))); + getHyperLink(getNameForIndex(unicode), + new StringContent(unicode))); contentTree.addContent(getSpace()); } } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -92,7 +92,7 @@ else { caption = getTableCaption(mw.getCaption()); } - Content table = HtmlTree.TABLE(HtmlStyle.overviewSummary, 0, 3, 0, + Content table = HtmlTree.TABLE(HtmlStyle.memberSummary, 0, 3, 0, mw.getTableSummary(), caption); table.addContent(getSummaryTableHeader(mw.getSummaryTableHeader(cd), "col")); for (int i = 0; i < tableContents.size(); i++) { @@ -175,8 +175,8 @@ Tag[] deprs = member.tags("deprecated"); Content div; if (Util.isDeprecated((ProgramElementDoc) member)) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); - div = HtmlTree.DIV(HtmlStyle.block, strong); + Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); + div = HtmlTree.DIV(HtmlStyle.block, deprLabel); div.addContent(getSpace()); if (deprs.length > 0) { addInlineDeprecatedComment(member, deprs[0], div); @@ -186,8 +186,8 @@ } else { ClassDoc cd = ((ProgramElementDoc)member).containingClass(); if (cd != null && Util.isDeprecated(cd)) { - Content strong = HtmlTree.SPAN(HtmlStyle.strong, deprecatedPhrase); - div = HtmlTree.DIV(HtmlStyle.block, strong); + Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); + div = HtmlTree.DIV(HtmlStyle.block, deprLabel); div.addContent(getSpace()); tdSummary.addContent(div); } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java Mon Oct 28 18:30:14 2013 -0400 @@ -97,7 +97,7 @@ Tag[] deprs = doc.tags("deprecated"); if (doc instanceof ClassDoc) { if (Util.isDeprecated((ProgramElementDoc) doc)) { - result.addContent(HtmlTree.SPAN(HtmlStyle.strong, + result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel, new StringContent(configuration.getText("doclet.Deprecated")))); result.addContent(RawHtml.nbsp); if (deprs.length > 0) { @@ -112,17 +112,18 @@ } else { MemberDoc member = (MemberDoc) doc; if (Util.isDeprecated((ProgramElementDoc) doc)) { - result.addContent(HtmlTree.SPAN(HtmlStyle.strong, + result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel, new StringContent(configuration.getText("doclet.Deprecated")))); result.addContent(RawHtml.nbsp); if (deprs.length > 0) { Content body = commentTagsToOutput(null, doc, deprs[0].inlineTags(), false); - result.addContent(HtmlTree.SPAN(HtmlStyle.italic, body)); + if (!body.isEmpty()) + result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body)); } } else { if (Util.isDeprecated(member.containingClass())) { - result.addContent(HtmlTree.SPAN(HtmlStyle.strong, + result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel, new StringContent(configuration.getText("doclet.Deprecated")))); result.addContent(RawHtml.nbsp); } @@ -150,7 +151,7 @@ * {@inheritDoc} */ public Content getParamHeader(String header) { - HtmlTree result = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, + HtmlTree result = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.paramLabel, new StringContent(header))); return result; } @@ -185,7 +186,7 @@ */ public Content returnTagOutput(Tag returnTag) { ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, + result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel, new StringContent(configuration.getText("doclet.Returns"))))); result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent( returnTag, null, returnTag.inlineTags(), false))); @@ -230,7 +231,7 @@ return body; ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, + result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.seeLabel, new StringContent(configuration.getText("doclet.See_Also"))))); result.addContent(HtmlTree.DD(body)); return result; @@ -249,7 +250,7 @@ */ public Content simpleTagOutput(Tag[] simpleTags, String header) { ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, new RawHtml(header)))); + result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header)))); ContentBuilder body = new ContentBuilder(); for (int i = 0; i < simpleTags.length; i++) { if (i > 0) { @@ -267,7 +268,7 @@ */ public Content simpleTagOutput(Tag simpleTag, String header) { ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, new RawHtml(header)))); + result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header)))); Content body = htmlWriter.commentTagsToContent( simpleTag, null, simpleTag.inlineTags(), false); result.addContent(HtmlTree.DD(body)); @@ -278,7 +279,7 @@ * {@inheritDoc} */ public Content getThrowsHeader() { - HtmlTree result = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.strong, + HtmlTree result = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.throwsLabel, new StringContent(configuration.getText("doclet.Throws")))); return result; } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/TreeWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/TreeWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/TreeWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -131,7 +131,7 @@ return; } if (!classesonly) { - Content span = HtmlTree.SPAN(HtmlStyle.strong, + Content span = HtmlTree.SPAN(HtmlStyle.packageHierarchyLabel, getResource("doclet.Package_Hierarchies")); contentTree.addContent(span); HtmlTree ul = new HtmlTree(HtmlTag.UL); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/markup/ContentBuilder.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/ContentBuilder.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/ContentBuilder.java Mon Oct 28 18:30:14 2013 -0400 @@ -41,8 +41,6 @@ @Override public void addContent(Content content) { nullCheck(content); - if ((content instanceof ContentBuilder) && content.isEmpty()) - return; ensureMutableContents(); if (content instanceof ContentBuilder) { contents.addAll(((ContentBuilder) content).contents); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -30,6 +30,7 @@ import com.sun.javadoc.*; import com.sun.tools.doclets.formats.html.ConfigurationImpl; +import com.sun.tools.doclets.formats.html.SectionName; import com.sun.tools.doclets.internal.toolkit.*; import com.sun.tools.doclets.internal.toolkit.util.DocFile; import com.sun.tools.doclets.internal.toolkit.util.DocLink; @@ -78,7 +79,7 @@ } /** - * Get Html Hyper Link string. + * Get Html Hyper Link Content. * * @param where Position of the link in the file. Character '#' is not * needed. @@ -87,7 +88,125 @@ */ public Content getHyperLink(String where, Content label) { - return getHyperLink(DocLink.fragment(where), label, "", ""); + return getHyperLink(getDocLink(where), label, "", ""); + } + + /** + * Get Html Hyper Link Content. + * + * @param sectionName The section name to which the link will be created. + * @param label Tag for the link. + * @return a content tree for the hyper link + */ + public Content getHyperLink(SectionName sectionName, + Content label) { + return getHyperLink(getDocLink(sectionName), label, "", ""); + } + + /** + * Get Html Hyper Link Content. + * + * @param sectionName The section name combined with where to which the link + * will be created. + * @param where The fragment combined with sectionName to which the link + * will be created. + * @param label Tag for the link. + * @return a content tree for the hyper link + */ + public Content getHyperLink(SectionName sectionName, String where, + Content label) { + return getHyperLink(getDocLink(sectionName, where), label, "", ""); + } + + /** + * Get the link. + * + * @param where Position of the link in the file. + * @return a DocLink object for the hyper link + */ + public DocLink getDocLink(String where) { + return DocLink.fragment(getName(where)); + } + + /** + * Get the link. + * + * @param sectionName The section name to which the link will be created. + * @return a DocLink object for the hyper link + */ + public DocLink getDocLink(SectionName sectionName) { + return DocLink.fragment(sectionName.getName()); + } + + /** + * Get the link. + * + * @param sectionName The section name combined with where to which the link + * will be created. + * @param where The fragment combined with sectionName to which the link + * will be created. + * @return a DocLink object for the hyper link + */ + public DocLink getDocLink(SectionName sectionName, String where) { + return DocLink.fragment(sectionName.getName() + getName(where)); + } + + /** + * Convert the name to a valid HTML name. + * + * @param name the name that needs to be converted to valid HTML name. + * @return a valid HTML name string. + */ + public String getName(String name) { + StringBuilder sb = new StringBuilder(); + char ch; + /* The HTML 4 spec at http://www.w3.org/TR/html4/types.html#h-6.2 mentions + * that the name/id should begin with a letter followed by other valid characters. + * The HTML 5 spec (draft) is more permissive on names/ids where the only restriction + * is that it should be at least one character long and should not contain spaces. + * The spec draft is @ http://www.w3.org/html/wg/drafts/html/master/dom.html#the-id-attribute. + * + * For HTML 4, we need to check for non-characters at the beginning of the name and + * substitute it accordingly, "_" and "$" can appear at the beginning of a member name. + * The method substitutes "$" with "Z:Z:D" and will prefix "_" with "Z:Z". + */ + for (int i = 0; i < name.length(); i++) { + ch = name.charAt(i); + switch (ch) { + case '(': + case ')': + case '<': + case '>': + case ',': + sb.append('-'); + break; + case ' ': + case '[': + break; + case ']': + sb.append(":A"); + break; + // Any appearance of $ needs to be substituted with ":D" and not with hyphen + // since a field name "P$$ and a method P(), both valid member names, can end + // up as "P--". A member name beginning with $ needs to be substituted with + // "Z:Z:D". + case '$': + if (i == 0) + sb.append("Z:Z"); + sb.append(":D"); + break; + // A member name beginning with _ needs to be prefixed with "Z:Z" since valid anchor + // names can only begin with a letter. + case '_': + if (i == 0) + sb.append("Z:Z"); + sb.append(ch); + break; + default: + sb.append(ch); + } + } + return sb.toString(); } /** @@ -117,7 +236,7 @@ String stylename, String title, String target) { Content body = label; if (strong) { - body = HtmlTree.SPAN(HtmlStyle.strong, body); + body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body); } if (stylename != null && stylename.length() != 0) { HtmlTree t = new HtmlTree(HtmlTag.FONT, body); diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java Mon Oct 28 18:30:14 2013 -0400 @@ -48,37 +48,55 @@ colFirst, colLast, colOne, + constantsSummary, constantValuesContainer, contentContainer, + deprecatedContent, + deprecatedLabel, + deprecatedSummary, + deprecationComment, description, + descfrmTypeLabel, details, docSummary, + emphasizedPhrase, header, horizontal, footer, indexContainer, indexHeader, inheritance, - italic, + interfaceName, legalCopy, + memberNameLabel, + memberNameLink, + memberSummary, nameValue, navBarCell1Rev, navList, + overrideSpecifyLabel, overviewSummary, - packageSummary, + packageHierarchyLabel, + paramLabel, + returnLabel, rowColor, + seeLabel, serializedFormContainer, + simpleTagLabel, skipNav, sourceContainer, sourceLineNo, - strong, subNav, subNavList, subTitle, summary, - deprecatedContent, tabEnd, tableTab, + throwsLabel, title, - topNav; + topNav, + typeNameLabel, + typeNameLink, + typeSummary, + useSummary; } diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -102,7 +102,12 @@ * @param tagContent tag content to be added */ public void addContent(Content tagContent) { - if (tagContent == HtmlTree.EMPTY || tagContent.isValid()) { + if (tagContent instanceof ContentBuilder) { + for (Content content: ((ContentBuilder)tagContent).contents) { + addContent(content); + } + } + else if (tagContent == HtmlTree.EMPTY || tagContent.isValid()) { if (content.isEmpty()) content = new ArrayList(); content.add(tagContent); @@ -619,25 +624,6 @@ } /** - * Generates a Table tag with border, width and summary attributes and - * some content. - * - * @param border border for the table - * @param width width of the table - * @param summary summary for the table - * @param body content for the table - * @return an HtmlTree object for the TABLE tag - */ - public static HtmlTree TABLE(int border, int width, String summary, - Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.TABLE, nullCheck(body)); - htmltree.addAttr(HtmlAttr.BORDER, Integer.toString(border)); - htmltree.addAttr(HtmlAttr.WIDTH, Integer.toString(width)); - htmltree.addAttr(HtmlAttr.SUMMARY, nullCheck(summary)); - return htmltree; - } - - /** * Generates a Table tag with style class, border, cell padding, * cellspacing and summary attributes and some content. * @@ -662,22 +648,6 @@ } /** - * Generates a Table tag with border, cell padding, - * cellspacing and summary attributes and some content. - * - * @param border border for the table - * @param cellPadding cell padding for the table - * @param cellSpacing cell spacing for the table - * @param summary summary for the table - * @param body content for the table - * @return an HtmlTree object for the TABLE tag - */ - public static HtmlTree TABLE(int border, int cellPadding, - int cellSpacing, String summary, Content body) { - return TABLE(null, border, cellPadding, cellSpacing, summary, body); - } - - /** * Generates a TD tag with style class attribute and some content. * * @param styleClass style for the tag diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Mon Oct 28 18:30:14 2013 -0400 @@ -310,8 +310,12 @@ if(winTitle != null && winTitle.length() > 0) { script.addAttr(HtmlAttr.TYPE, "text/javascript"); String scriptCode = "" + DocletConstants.NL; RawHtml scriptContent = new RawHtml(scriptCode); @@ -321,6 +325,53 @@ } /** + * Returns a String with escaped special JavaScript characters. + * + * @param s String that needs to be escaped + * @return a valid escaped JavaScript string + */ + private static String escapeJavaScriptChars(String s) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < s.length(); i++) { + char ch = s.charAt(i); + switch (ch) { + case '\b': + sb.append("\\b"); + break; + case '\t': + sb.append("\\t"); + break; + case '\n': + sb.append("\\n"); + break; + case '\f': + sb.append("\\f"); + break; + case '\r': + sb.append("\\r"); + break; + case '"': + sb.append("\\\""); + break; + case '\'': + sb.append("\\\'"); + break; + case '\\': + sb.append("\\\\"); + break; + default: + if (ch < 32 || ch >= 127) { + sb.append(String.format("\\u%04X", (int)ch)); + } else { + sb.append(ch); + } + break; + } + } + return sb.toString(); + } + + /** * Returns a content tree for the SCRIPT tag for the main page(index.html). * * @return a content for the SCRIPT tag diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/markup/package-info.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2007, 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** + This package contains classes that write HTML markup tags. + +

This is NOT part of any supported API. + If you write code that depends on this, you do so at your own risk. + This code and its internal interfaces are subject to change or + deletion without notice. + */ +@jdk.Exported(false) +package com.sun.tools.doclets.formats.html.markup; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/markup/package.html --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/package.html Fri Oct 11 17:51:08 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ - - - - -com.sun.tools.doclets.formats.html.markup package - - This package contains classes that write HTML markup tags. - - diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/package-info.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2003, 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** + This is the default doclet provided with JDK that produces Javadoc's + default HTML-formatted API output. For more documentation + on this doclet, please refer to the link below. + + @see + http://www.java.sun.com/javadoc/standard-doclet.html + +

This is NOT part of any supported API. + If you write code that depends on this, you do so at your own risk. + This code and its internal interfaces are subject to change or + deletion without notice. +*/ +@jdk.Exported(false) +package com.sun.tools.doclets.formats.html; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/formats/html/package.html --- a/src/share/classes/com/sun/tools/doclets/formats/html/package.html Fri Oct 11 17:51:08 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ - - - - -com.sun.tools.doclets.formats.html package - - - This is the default doclet provided with JDK that produces Javadoc's - default HTML-formatted API output. For more documentation - on this doclet, please refer to the link below. - - @see - http://www.java.sun.com/javadoc/standard-doclet.html - - diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java Mon Oct 28 18:30:14 2013 -0400 @@ -83,6 +83,16 @@ } catch (Configuration.Fault f) { root.printError(f.getMessage()); return false; + } catch (DocletAbortException e) { + Throwable cause = e.getCause(); + if (cause != null) { + if (cause.getLocalizedMessage() != null) { + root.printError(cause.getLocalizedMessage()); + } else { + root.printError(cause.toString()); + } + } + return false; } catch (Exception exc) { exc.printStackTrace(); return false; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java Fri Oct 11 17:51:08 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java Mon Oct 28 18:30:14 2013 -0400 @@ -140,7 +140,7 @@ configuration.root.printError("Unknown element: " + component); throw new DocletAbortException(e); } catch (InvocationTargetException e) { - e.getCause().printStackTrace(); + throw new DocletAbortException(e.getCause()); } catch (Exception e) { e.printStackTrace(); configuration.root.printError("Exception " + diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package-info.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2003, 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** + This doclet-independent package has a set of classes and + interfaces that are the building blocks for doclets. They + define the basic structure of doclets and make doclet + writing much easier because they provide the content generation + code to be shared among different doclets. Builders only provide + the structure and content of API documentation. + They will not provide any style markup. + +

This is NOT part of any supported API. + If you write code that depends on this, you do so at your own risk. + This code and its internal interfaces are subject to change or + deletion without notice. +*/ +@jdk.Exported(false) +package com.sun.tools.doclets.internal.toolkit.builders; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package.html --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package.html Fri Oct 11 17:51:08 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ - - - - -com.sun.tools.doclets.internal.toolkit.builders package - - - This doclet-independent package has a set of classes and - interfaces that are the building blocks for doclets. They - define the basic structure of doclets and make doclet - writing much easier because they provide the content generation - code to be shared among different doclets. Builders only provide - the structure and content of API documentation. - They will not provide any style markup. -

- This code is not part of an API. - It is implementation that is subject to change. - Do not use it as an API. - - diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/internal/toolkit/package-info.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/package-info.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2003, 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** + Contains the base classes that make up a doclet. Doclets that reuse + the functionality provided by the toolkit should have the following + characteristics: +

    +
  • + The main driver class should extend + {@link com.sun.tools.doclets.internal.toolkit.AbstractDoclet}. +
  • +
  • + The doclet configuration class should extend + {@link com.sun.tools.doclets.internal.toolkit.Configuration}. +
  • +
  • + The doclet should have a writer factory that implements + {@link com.sun.tools.doclets.internal.toolkit.WriterFactory}. + This class constructs writers that write doclet specific output. +
  • +
  • + The doclet should have a taglet writer that extends + {@link com.sun.tools.doclets.internal.toolkit.taglets.TagletWriter}. + This writer determines how to output each given tag. +
  • +
+ +

This is NOT part of any supported API. + If you write code that depends on this, you do so at your own risk. + This code and its internal interfaces are subject to change or + deletion without notice. +*/ +@jdk.Exported(false) +package com.sun.tools.doclets.internal.toolkit; diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/com/sun/tools/doclets/internal/toolkit/package.html --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/package.html Fri Oct 11 17:51:08 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ - - - - -com.sun.tools.doclets.internal.toolkit package - - - - Contains the base classes that make up a doclet. Doclets that reuse - the functionality provided by the toolkit should have the following - characteristics: -

+ diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/jdk/Exported.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/classes/jdk/Exported.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package jdk; + +import java.lang.annotation.*; + +/** + * Indicates whether or not a JDK specific type or package is an + * exported part of the JDK suitable for use outside of the JDK + * implementation itself. + * + * This annotation should only be applied to types and packages + * outside of the Java SE namespaces of {@code java.*} and + * {@code javax.*} packages. For example, certain portions of {@code + * com.sun.*} are official parts of the JDK meant to be generally + * usable while other portions of {@code com.sun.*} are not. This + * annotation type allows those portions to be easily and + * programmatically distinguished. + * + *

If in one release a type or package is + * @Exported(true), in a subsequent major release such a + * type or package can transition to @Exported(false). + * + *

If a type or package is @Exported(false) in a + * release, it may be removed in a subsequent major release. + * + *

If a top-level type has an @Exported annotation, + * any nested member types with the top-level type should have an + * @Exported annotation with the same value. + * + * (In exceptional cases, if a nested type is going to be removed + * before its enclosing type, the nested type's could be + * @Exported(false) while its enclosing type was + * @Exported(true).) + * + * Likewise, if a package has an @Exported annotation, + * top-level types within that package should also have an + * @Exported annotation. + * + * Sometimes a top-level type may have a different + * @Exported value than its package. + * + * @since 1.8 + */ +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.TYPE, ElementType.PACKAGE}) +@Exported +public @interface Exported { + /** + * Whether or not the annotated type or package is an exported part of the JDK. + */ + boolean value() default true; +} diff -r cc5933483c1a -r 0fde5fa9febf src/share/classes/jdk/Supported.java --- a/src/share/classes/jdk/Supported.java Fri Oct 11 17:51:08 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2013, 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 - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package jdk; - -import java.lang.annotation.*; - -/** - * Indicates whether or not a JDK specific type or package is a - * supported part of the JDK. - * - * This annotation should only be applied to types and packages - * outside of the Java SE namespaces of {@code java.*} and - * {@code javax.*} packages. For example, certain portions of {@code - * com.sun.*} are official parts of the JDK meant to be generally - * usable while other portions of {@code com.sun.*} are not. This - * annotation type allows those portions to be easily and - * programmaticly distinguished. - * - * @since 1.8 - */ -@Documented -@Retention(RetentionPolicy.RUNTIME) -@Target({ElementType.TYPE, ElementType.PACKAGE}) -@Supported -public @interface Supported { - /** - * Whether or not this package or type is a supported part of the JDK. - */ - boolean value() default true; -} diff -r cc5933483c1a -r 0fde5fa9febf test/Makefile --- a/test/Makefile Fri Oct 11 17:51:08 2013 -0700 +++ b/test/Makefile Mon Oct 28 18:30:14 2013 -0400 @@ -217,8 +217,8 @@ # Root of all test results TEST_OUTPUT_DIR = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools ABS_TEST_OUTPUT_DIR := \ - $(shell mkdir -p $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools; \ - cd $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)/test/langtools; \ + $(shell mkdir -p $(TEST_OUTPUT_DIR); \ + cd $(TEST_OUTPUT_DIR); \ pwd $(CYGPATH)) # Subdirectories for different test runs JTREG_OUTPUT_DIR = $(ABS_TEST_OUTPUT_DIR)/jtreg diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java --- a/test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4638136 7198273 + * @bug 4638136 7198273 8025633 * @summary Add ability to skip over nav bar for accessibility * @author dkramer * @run main AccessSkipNav @@ -86,20 +86,20 @@ // Testing only for the presence of the and // Top navbar - { "Skip navigation links", + { "Skip navigation links", TMPDEST_DIR1 + "p1" + FS + "C1.html" }, // Top navbar - { "" + LS + + { "" + LS + "" + LS + "", TMPDEST_DIR1 + "p1" + FS + "C1.html" }, // Bottom navbar - { "Skip navigation links", + { "Skip navigation links", TMPDEST_DIR1 + "p1" + FS + "C1.html" }, // Bottom navbar - { "" + LS + + { "" + LS + "" + LS + "", TMPDEST_DIR1 + "p1" + FS + "C1.html" } }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/AuthorDD/AuthorDD.java --- a/test/com/sun/javadoc/AuthorDD/AuthorDD.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/AuthorDD/AuthorDD.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4651598 + * @bug 4651598 8026567 * @summary Javadoc wrongly inserts tags when using multiple @author tags * @author dkramer * @run main AuthorDD @@ -86,12 +86,12 @@ // Test single @since tag: - { "

Since:
"+NL+"
JDK 1.0
", + { "
Since:
"+NL+"
JDK 1.0
", BUGID + FS + "p1" + FS + "C1.html" }, // Test multiple @author tags: - { "
Author:
"+NL+"
Doug Kramer, Jamie, Neal
", + { "
Author:
"+NL+"
Doug Kramer, Jamie, Neal
", BUGID + FS + "p1" + FS + "C1.html" }, }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/JavascriptWinTitle/JavascriptWinTitle.java --- a/test/com/sun/javadoc/JavascriptWinTitle/JavascriptWinTitle.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/JavascriptWinTitle/JavascriptWinTitle.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2013, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 4645058 4747738 4855054 + * @bug 4645058 4747738 4855054 8024756 * @summary Javascript IE load error when linked by -linkoffline * Window title shouldn't change when loading left frames (javascript) * @author dkramer @@ -115,9 +115,13 @@ // Test that win title javascript is followed by NOSCRIPT code. {"", + " try {" + LS + + " if (location.href.indexOf('is-external=true') == -1) {" + LS + + " parent.document.title=\"C (Window Title)\";" + LS + + " }" + LS + + " }" + LS + + " catch(err) {" + LS + + " }" + LS + "//-->" + LS + "", TMPDEST_DIR1 + FS + "p1" + FS + "C.html" } diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testAnchorNames/TestAnchorNames.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testAnchorNames/TestAnchorNames.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,290 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* + * @test + * @bug 8025633 + * @summary Test for valid name attribute in HTML anchors. + * @author Bhavesh Patel + * @library ../lib/ + * @build JavadocTester TestAnchorNames + * @run main TestAnchorNames + */ + +public class TestAnchorNames extends JavadocTester { + + private static final String BUG_ID = "8025633"; + + //Input for string search tests. + private static final String[][] TEST = { + + //Test some section markers and links to these markers + + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + + //Test some members and link to these members + + //The marker for this appears in the serialized-form.html which we will + //test below + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + //Test some fields + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "DeprMemClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "DeprMemClass.html", + "" + }, + //Test constructor + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + //Test some methods + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "DeprMemClass.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "DeprMemClass.html", + "" + }, + + //Test enum + + {BUG_ID + FS + "pkg1" + FS + "RegClass.Te$t_Enum.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.Te$t_Enum.html", + "" + }, + + //Test nested class + + {BUG_ID + FS + "pkg1" + FS + "RegClass._NestedClas$.html", + "" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass._NestedClas$.html", + "" + }, + + //Test class use page + + {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "DeprMemClass.html", + "" + }, + + //Test deprecated list page + + {BUG_ID + FS + "deprecated-list.html", + "" + }, + {BUG_ID + FS + "deprecated-list.html", + "" + }, + + //Test constant values page + + {BUG_ID + FS + "constant-values.html", + "" + }, + + //Test serialized form page + + //This is the marker for the link that appears in the pkg1.RegClass.html page + {BUG_ID + FS + "serialized-form.html", + "" + }, + + //Test member name index page + + {BUG_ID + FS + "index-all.html", + "" + }, + {BUG_ID + FS + "index-all.html", + "$" + }, + {BUG_ID + FS + "index-all.html", + "_" + } + }; + + private static final String[][] NEGATED_TEST = { + //The marker name conversion should only affect HTML anchors. It should not + //affect the lables. + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + " Z:Z_" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + " Z:Z:Dfield" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + " Z:Z_field_In_Class" + }, + {BUG_ID + FS + "pkg1" + FS + "RegClass.html", + " S_:D:D:D:D:DINT" + }, + }; + + private static final String[] ARGS = new String[] { + "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1" + }; + + /** + * The entry point of the test. + * @param args the array of command line arguments. + */ + public static void main(String[] args) throws Exception { + TestAnchorNames tester = new TestAnchorNames(); + run(tester, ARGS, TEST, NEGATED_TEST); + tester.printSummary(); + } + + /** + * {@inheritDoc} + */ + public String getBugId() { + return BUG_ID; + } + + /** + * {@inheritDoc} + */ + public String getBugName() { + return getClass().getName(); + } +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testAnchorNames/pkg1/DeprMemClass.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testAnchorNames/pkg1/DeprMemClass.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package pkg1; + +public class DeprMemClass +{ + /** + * Field in the class. + * @deprecated Do not use this field. + */ + public int _field_In_Class; + + public int _fld; + + /** + * Method in the class. + * @deprecated Do not use this method. + */ + public void $method_In_Class() { + } + + public void regularMethod() { + } +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testAnchorNames/pkg1/RegClass.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testAnchorNames/pkg1/RegClass.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,186 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package pkg1; + +import java.io.Serializable; +import java.util.Map; + +/** + * @serial This is the serial tag's comment. + */ +public class RegClass implements Serializable { + + /** + * Normal field in class. + */ + public String field; + + /** + * Normal field in class. + */ + public String method$$; + + /** + * Filed staring with $. + */ + public String $field; + + /** + * Filed staring with underscore. + */ + public String _field; + + /** + * Serial field + * @serial + */ + public boolean t_e$t; + + /** + * Field in class with a $ in the name. + */ + public String fieldInCla$$; + + /** + * Field name as just an underscore. + */ + public int _; + + /** + * Field name as just a $. + */ + public int $; + + /** + * Field name with underscore and $. + */ + public int _$; + + /** + * Field name with $ and underscore. + */ + public int $_; + + /** + * An array. + */ + public int arr[]; + + /** + * Another array. + */ + public int[] arr1; + + /** + * A constant field. + */ + public static final int S_$$$$$INT = 0; + + /** + * Another field. + */ + public DeprMemClass d____mc; + + /** + * An enum. + */ + public static enum Te$t_Enum { + FLD_1, + $FLD2 + }; + + /** + * A constructor. + */ + public RegClass(String p, int i) { + } + + /** + * Method in Class. + * @param p a string + */ + public void _methodInClass(String p) { + } + + /** + * Method in Class. + * @param p a string + * @param i an int + */ + public void _methodInClas$(String p, int i) { + } + + /** + * Method with $ in the name. + * @param p a string array + */ + public void methodInCla$s(String[] p) { + } + + /** + * Method with D[] as a parameter. + * @param p an array of D + */ + public void methodD(D[] p) { + } + + /** + * Method with $A as a parameter. + * @param p an object of $A + */ + public void methodD($A p) { + } + + /** + * Serial test. + * @serialData This is a serial data comment. + * @return null + */ + protected Object $readResolve(){return null;} + + /** + * Simple method. + */ + public void method() {} + + /** + * Generics. + */ + public static void foo(Map> map) {} + + /** + * A nested class. + */ + public class _NestedClas$ {} + + /** + * Nested class D. + */ + class D {} + + /** + * Nested class $A. + */ + class $A {} +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java --- a/test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2013, 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 @@ -23,7 +23,8 @@ /* * @test - * @summary Make sure that annotations types with optional elements has + * @bug 8025633 + * @summary Make sure that annotations types with optional elements have * element headers * @author Mahmood Ali * @library ../lib/ @@ -45,7 +46,7 @@ //Input for string search tests. private static final String[][] TEST = { {BUG_ID + FS + "pkg" + FS + "AnnotationOptional.html", - "" + "" } }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java --- a/test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4973609 8015249 + * @bug 4973609 8015249 8025633 8026567 * @summary Make sure that annotation types with 0 members does not have * extra HR tags. * @author jamieh @@ -45,17 +45,17 @@ //Input for string search tests. private static final String[][] TEST = { {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html", - "
  • Summary: 
  • " + NL + "
  • Field | 
  • "}, + "
  • Summary: 
  • " + NL + "
  • Field | 
  • "}, {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html", - "
  • Detail: 
  • " + NL + "
  • Field | 
  • "}, + "
  • Detail: 
  • " + NL + "
  • Field | 
  • "}, {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html", ""}, {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html", "

    Field Summary

    "}, {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html", - "
    "}, {BUG_ID + FS + "pkg" + FS + "AnnotationTypeField.html", diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java --- a/test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4652655 4857717 + * @bug 4652655 4857717 8025633 8026567 * @summary This test verifies that class cross references work properly. * @author jamieh * @library ../lib/ @@ -45,10 +45,10 @@ "Link to external class BigDecimal"}, {BUG_ID + FS + "C.html", - "Link to external member gcd"}, {BUG_ID + FS + "C.html", - "
    " + NL + "
    Overrides:
    " + NL + + "
    " + NL + "
    Overrides:
    " + NL + "
    toString in class java.lang.Object
    " + NL + "
    "} }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testClassTree/TestClassTree.java --- a/test/com/sun/javadoc/testClassTree/TestClassTree.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testClassTree/TestClassTree.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2013, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 4632553 4973607 + * @bug 4632553 4973607 8026567 * @summary No need to include type name (class, interface, etc.) before * every single type in class tree. * Make sure class tree includes heirarchy for enums and annotation @@ -49,12 +49,12 @@ private static final String[][] TEST = { {BUG_ID + FS + "pkg" + FS + "package-tree.html", "
      " + NL + "
    • pkg.ParentClass"}, + "title=\"class in pkg\">ParentClass"}, {BUG_ID + FS + "pkg" + FS + "package-tree.html", "

      Annotation Type Hierarchy

      " + NL + "
        " + NL + "
      • pkg.AnnotationType " + + "title=\"annotation in pkg\">AnnotationType " + "(implements java.lang.annotation.Annotation)
      • " + NL + "
      "}, {BUG_ID + FS + "pkg" + FS + "package-tree.html", @@ -63,14 +63,14 @@ "
    • java.lang.Enum<E> (implements java.lang." + "Comparable<T>, java.io.Serializable)" + NL + "
        " + NL + "
      • pkg.Coin
      • " + NL + + "title=\"enum in pkg\">Coin" + NL + "
      " + NL + "
    • " + NL + "
    " + NL + "" + NL + "" }, }; private static final String[][] NEGATED_TEST = { {BUG_ID + FS + "pkg" + FS + "package-tree.html", "
  • class pkg.ParentClass
  • "} + "title=\"class in pkg\">ParentClass"} }; /** diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testConstructorIndent/TestConstructorIndent.java --- a/test/com/sun/javadoc/testConstructorIndent/TestConstructorIndent.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testConstructorIndent/TestConstructorIndent.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4904037 + * @bug 4904037 8026567 * @summary The constructor comments should be surrounded by *
    . Check for this in the output. * @author jamieh @@ -47,7 +47,7 @@ private static final String[][] TEST = { {BUG_ID + FS + "C.html", "
    " + "This is just a simple constructor.
    " + NL + - "
    " + NL + "
    Parameters:
    " + NL + + "
    " + NL + "
    Parameters:
    " + NL + "
    i - a param.
    " + NL +"
    " } }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testCustomTag/TagTestClass.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testCustomTag/TagTestClass.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** + * @customTag A custom tag. + * @unknownTag An unknown tag + */ +public class TagTestClass { + + public void method(){} +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testCustomTag/TestCustomTag.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testCustomTag/TestCustomTag.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* + * @test + * @bug 8006248 + * @summary Test custom tag. Verify that an unknown tag generates appropriate warnings. + * @author Bhavesh Patel + * @library ../lib/ + * @build JavadocTester taglets.CustomTag TestCustomTag + * @run main TestCustomTag + */ + +public class TestCustomTag extends JavadocTester { + + //Test information. + private static final String BUG_ID = "8006248"; + + //Javadoc arguments. + private static final String[] ARGS = new String[] { + "-Xdoclint:none", "-d", BUG_ID, "-tagletpath", SRC_DIR, + "-taglet", "taglets.CustomTag", "-sourcepath", + SRC_DIR, SRC_DIR + FS + "TagTestClass.java" + }; + + private static final String[] ARGS1 = new String[] { + "-d", BUG_ID + "-1", "-tagletpath", SRC_DIR, "-taglet", "taglets.CustomTag", + "-sourcepath", SRC_DIR, SRC_DIR + FS + "TagTestClass.java" + }; + private static final String[] ARGS2 = new String[] { + "-Xdoclint:none", "-d", BUG_ID + "-2", "-sourcepath", + SRC_DIR, SRC_DIR + FS + "TagTestClass.java" + }; + + private static final String[] ARGS3 = new String[] { + "-d", BUG_ID + "-3", "-sourcepath", SRC_DIR, SRC_DIR + FS + "TagTestClass.java" + }; + + //Input for string search tests. + private static final String[][] TEST = new String[][] { + {WARNING_OUTPUT, "warning - @unknownTag is an unknown tag." + } + }; + + private static final String[][] TEST1 = new String[][] { + {ERROR_OUTPUT, "error: unknown tag: unknownTag" + } + }; + private static final String[][] TEST2 = new String[][] { + {WARNING_OUTPUT, "warning - @customTag is an unknown tag." + }, + {WARNING_OUTPUT, "warning - @unknownTag is an unknown tag." + } + }; + + private static final String[][] TEST3 = new String[][] { + {ERROR_OUTPUT, "error: unknown tag: customTag" + }, + {ERROR_OUTPUT, "error: unknown tag: unknownTag" + } + }; + + /** + * The entry point of the test. + * @param args the array of command line arguments. + */ + public static void main(String[] args) { + TestCustomTag tester = new TestCustomTag(); + run(tester, ARGS, TEST, NO_TEST); + run(tester, ARGS1, TEST1, NO_TEST); + run(tester, ARGS2, TEST2, NO_TEST); + run(tester, ARGS3, TEST3, NO_TEST); + tester.printSummary(); + } + + /** + * {@inheritDoc} + */ + public String getBugId() { + return BUG_ID; + } + + /** + * {@inheritDoc} + */ + public String getBugName() { + return getClass().getName(); + } +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testCustomTag/taglets/CustomTag.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testCustomTag/taglets/CustomTag.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package taglets; + +import com.sun.tools.doclets.internal.toolkit.*; +import com.sun.tools.doclets.internal.toolkit.taglets.*; +import com.sun.tools.doclets.internal.toolkit.util.*; + +import com.sun.javadoc.*; +import java.util.*; + +public class CustomTag extends BaseTaglet { + + public CustomTag() { + name = "customTag"; + } + + public static void register(Map tagletMap) { + CustomTag tag = new CustomTag(); + Taglet t = (Taglet) tagletMap.get(tag.getName()); + if (t != null) { + tagletMap.remove(tag.getName()); + } + tagletMap.put(tag.getName(), tag); + } + + /** + * {@inheritDoc} + */ + public Content getTagletOutput(Tag tag, TagletWriter writer) { + ArrayList inlineTags = new ArrayList(); + inlineTags.add(new TextTag(tag.holder(), "
    Custom Tag:
    ")); + inlineTags.addAll(Arrays.asList(tag.inlineTags())); + inlineTags.add(new TextTag(tag.holder(), "
    ")); + return writer.commentTagsToOutput(tag, + (Tag[]) inlineTags.toArray(new Tag[] {})); + } +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testDeprecatedDocs/TestDeprecatedDocs.java --- a/test/com/sun/javadoc/testDeprecatedDocs/TestDeprecatedDocs.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testDeprecatedDocs/TestDeprecatedDocs.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 4927552 + * @bug 4927552 8026567 * @summary * @author jamieh * @library ../lib/ @@ -76,20 +76,20 @@ {TARGET_FILE, "pkg.DeprecatedClassByAnnotation.field"}, {TARGET_FILE2, "
    @Deprecated" + NL +
    -                 "public class DeprecatedClassByAnnotation" + NL +
    +                 "public class DeprecatedClassByAnnotation" + NL +
                      "extends java.lang.Object
    "}, {TARGET_FILE2, "
    @Deprecated" + NL +
                      "public int field
    " + NL + - "
    Deprecated. 
    "}, + "
    Deprecated. 
    "}, {TARGET_FILE2, "
    @Deprecated" + NL +
                      "public DeprecatedClassByAnnotation()
    " + NL + - "
    Deprecated. 
    "}, + "
    Deprecated. 
    "}, {TARGET_FILE2, "
    @Deprecated" + NL +
                      "public void method()
    " + NL + - "
    Deprecated. 
    "}, + "
    Deprecated. 
    "}, }; private static final String[][] NEGATED_TEST = NO_TEST; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testExternalOverridenMethod/TestExternalOverridenMethod.java --- a/test/com/sun/javadoc/testExternalOverridenMethod/TestExternalOverridenMethod.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testExternalOverridenMethod/TestExternalOverridenMethod.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,14 +23,13 @@ /* * @test - * @bug 4857717 + * @bug 4857717 8025633 8026567 * @summary Test to make sure that externally overriden and implemented methods * are documented properly. The method should still include "implements" or * "overrides" documentation even though the method is external. * @author jamieh * @library ../lib/ - * @build JavadocTester - * @build TestExternalOverridenMethod + * @build JavadocTester TestExternalOverridenMethod * @run main TestExternalOverridenMethod */ @@ -39,14 +38,14 @@ private static final String BUG_ID = "4857717"; private static final String[][] TEST = { {BUG_ID + FS + "pkg" + FS + "XReader.html", - "
    Overrides:
    " + NL + - "
    Overrides:" + NL + + "
    read in class " + "FilterReader
    "}, {BUG_ID + FS + "pkg" + FS + "XReader.html", - "
    Specified by:
    " + NL + - "
    Specified by:" + NL + + "
    readInt in interface " + "DataInput
    "}}; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testHref/TestHref.java --- a/test/com/sun/javadoc/testHref/TestHref.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testHref/TestHref.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4663254 8016328 + * @bug 4663254 8016328 8025633 8026567 * @summary Verify that spaces do not appear in hrefs and anchors. * @author jamieh * @library ../lib/ @@ -46,31 +46,31 @@ private static final String[][] TEST = { //External link. {BUG_ID + FS + "pkg" + FS + "C1.html", - "href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)\"" + "href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait-long-int-\"" }, //Member summary table link. {BUG_ID + FS + "pkg" + FS + "C1.html", - "href=\"../pkg/C1.html#method(int,%20int,%20java.util.ArrayList)\"" + "href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\"" }, //Anchor test. {BUG_ID + FS + "pkg" + FS + "C1.html", - "" + NL + + "" + NL + "" + NL + "" }, //Backward compatibility anchor test. {BUG_ID + FS + "pkg" + FS + "C1.html", - "" + NL + + "" + NL + "" + NL + "" }, //{@link} test. {BUG_ID + FS + "pkg" + FS + "C2.html", - "Link: " + "Link: " }, //@see test. {BUG_ID + FS + "pkg" + FS + "C2.html", - "See Also:" + NL + "
    " + "See Also:" + NL + "
    " }, //Header does not link to the page itself. @@ -80,7 +80,7 @@ //Signature does not link to the page itself. {BUG_ID + FS + "pkg" + FS + "C4.html", - "public abstract class C4<E extends C4<E>>" + "public abstract class C4<E extends C4<E>>" }, }; private static final String[][] NEGATED_TEST = diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java --- a/test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java Mon Oct 28 18:30:14 2013 -0400 @@ -25,7 +25,7 @@ /* * @test - * @bug 6786690 6820360 + * @bug 6786690 6820360 8025633 8026567 * @summary This test verifies the nesting of definition list tags. * @author Bhavesh Patel * @library ../lib/ @@ -43,7 +43,7 @@ // for default value. private static final String[][] TEST_ALL = { {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    public class " +
    -                 "C1" + NL +
    +                 "C1" + NL +
                      "extends java.lang.Object" + NL + "implements java.io.Serializable
    "}, {BUG_ID + FS + "pkg1" + FS + "C4.html", "
    " + NL + "
    Default:
    " + NL + "
    true
    " + NL + @@ -54,64 +54,64 @@ // enclosing comments, tags and deprecated information. private static final String[][] TEST_CMNT_DEPR = { {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "
    " + NL + - "
    Since:
    " + NL + + "
    Since:
    " + NL + "
    JDK1.0
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Since:
    " + NL + - "
    JDK1.0
    " + NL + "
    See Also:
    " + NL + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Since:
    " + NL + + "
    JDK1.0
    " + NL + "
    See Also:
    " + NL + "
    " + "C2, " + NL + "" + "Serialized Form
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Since:
    " + NL + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Since:
    " + NL + "
    1.4
    " + NL + - "
    See Also:
    " + NL + "
    " + - "" + + "
    See Also:
    " + NL + "
    " + + "" + "setUndecorated(boolean)
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    "+ NL + "
    Parameters:
    " + NL + "
    title" + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    "+ NL + "
    Parameters:
    " + NL + "
    title" + " - the title
    " + NL + "
    test - boolean value" + - "
    " + NL + "
    Throws:
    " + NL + + "
    " + NL + "
    Throws:
    " + NL + "
    java.lang.IllegalArgumentException - if the " + "owner's" + NL + " GraphicsConfiguration is not from a screen " + "device
    " + NL + "
    HeadlessException
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Parameters:
    " + NL + "
    undecorated" + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Parameters:
    " + NL + "
    undecorated" + " - true if no decorations are" + NL + " to be enabled;" + NL + " false " + - "if decorations are to be enabled.
    " + NL + "
    Since:" + + "if decorations are to be enabled.
    " + NL + "
    Since:" + "
    " + NL + "
    1.4
    " + NL + - "
    See Also:
    " + NL + "
    " + - "readObject()" + + "
    See Also:
    " + NL + "
    " + + "readObject()" + "
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Throws:
    " + NL + - "
    java.io.IOException
    " + NL + "
    See Also:" + - "
    " + NL + "
    " + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Throws:
    " + NL + + "
    java.io.IOException
    " + NL + "
    See Also:" + + "
    " + NL + "
    " + "setUndecorated(boolean)
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C2.html", "
    " + NL + "
    Parameters:" + - "
    " + NL + "
    set - boolean
    " + NL + "
    " + + {BUG_ID + FS + "pkg1" + FS + "C2.html", "
    " + NL + "
    Parameters:" + + "
    " + NL + "
    set - boolean
    " + NL + "
    " + "Since:
    " + NL + "
    1.4
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "
    " + NL + "
    Throws:" + + {BUG_ID + FS + "serialized-form.html", "
    " + NL + "
    Throws:" + "
    " + NL + "
    " + - "java.io.IOException
    " + NL + "
    See Also:" + - "
    " + NL + "
    " + + "java.io.IOException
    " + NL + "
    See Also:" + + "
    " + NL + "
    " + "C1.setUndecorated(boolean)
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "Deprecated." + - " As of JDK version 1.5, replaced by" + NL + - " " + + {BUG_ID + FS + "serialized-form.html", "Deprecated." + + " As of JDK version 1.5, replaced by" + NL + + " " + "setUndecorated(boolean)." + NL + "
    This field indicates whether the C1 is " + - "undecorated.
    " + NL + " " + NL + "
    " + NL + "
    Since:
    " + NL + - "
    1.4
    " + NL + "
    See Also:" + - "
    " + NL + "
    " + + "undecorated." + NL + " " + NL + "
    " + NL + "
    Since:
    " + NL + + "
    1.4
    " + NL + "
    See Also:" + + "
    " + NL + "
    " + "C1.setUndecorated(boolean)
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "Deprecated." + - " As of JDK version 1.5, replaced by" + NL + - " " + + {BUG_ID + FS + "serialized-form.html", "Deprecated." + + " As of JDK version 1.5, replaced by" + NL + + " " + "setUndecorated(boolean)." + NL + "
    Reads the object stream.
    " + NL + - "
    " + NL + "
    Throws:" + + "
    " + NL + "
    Throws:" + "
    " + NL + "
    " + "IOException
    " + NL + "
    java.io.IOException
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "Deprecated." + + {BUG_ID + FS + "serialized-form.html", "Deprecated." + " " + NL + "
    The name for this class.
    "}}; @@ -122,55 +122,55 @@ // and deprecated information. private static final String[][] TEST_NODEPR = { {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "
    " + NL + - "
    Since:
    " + NL + + "
    Since:
    " + NL + "
    JDK1.0
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Since:" + - "
    " + NL + "
    JDK1.0
    " + NL + "
    See Also:" + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Since:" + + "
    " + NL + "
    JDK1.0
    " + NL + "
    See Also:" + "
    " + NL + "
    " + "C2, " + NL + "" + "Serialized Form
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Parameters:" + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Parameters:" + "
    " + NL + "
    title - the title
    " + NL + "
    " + - "test - boolean value
    " + NL + "
    Throws:" + + "test - boolean value
    " + NL + "
    Throws:" + "
    " + NL + "
    java.lang.IllegalArgumentException" + " - if the owner's" + NL + " GraphicsConfiguration" + " is not from a screen device
    " + NL + "
    " + "HeadlessException
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Parameters:" + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Parameters:" + "
    " + NL + "
    undecorated - true" + " if no decorations are" + NL + " to be enabled;" + NL + " false if decorations are to be enabled." + - "
    " + NL + "
    Since:
    " + NL + "
    1.4
    " + NL + - "
    See Also:
    " + NL + "
    " + + "
    " + NL + "
    Since:
    " + NL + "
    1.4
    " + NL + + "
    See Also:
    " + NL + "
    " + "readObject()
    " + NL + "
    "}, - {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Throws:" + + {BUG_ID + FS + "pkg1" + FS + "C1.html", "
    " + NL + "
    Throws:" + "
    " + NL + "
    java.io.IOException
    " + NL + "
    " + - "See Also:
    " + NL + "
    " + + "See Also:
    " + NL + "
    " + "setUndecorated(boolean)
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "
    " + NL + "
    Throws:" + + {BUG_ID + FS + "serialized-form.html", "
    " + NL + "
    Throws:" + "
    " + NL + "
    " + - "java.io.IOException
    " + NL + "
    See Also:" + - "
    " + NL + "
    " + + "java.io.IOException
    " + NL + "
    See Also:" + + "
    " + NL + "
    " + "C1.setUndecorated(boolean)
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "Deprecated." + - " As of JDK version 1.5, replaced by" + NL + - " " + + {BUG_ID + FS + "serialized-form.html", "Deprecated." + + " As of JDK version 1.5, replaced by" + NL + + " " + "setUndecorated(boolean)." + NL + "
    This field indicates whether the C1 is " + - "undecorated.
    " + NL + " " + NL + "
    " + NL + "
    Since:
    " + NL + - "
    1.4
    " + NL + "
    See Also:" + - "
    " + NL + "
    " + + "undecorated." + NL + " " + NL + "
    " + NL + "
    Since:
    " + NL + + "
    1.4
    " + NL + "
    See Also:" + + "
    " + NL + "
    " + "C1.setUndecorated(boolean)
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "Deprecated." + - " As of JDK version 1.5, replaced by" + NL + - " " + + {BUG_ID + FS + "serialized-form.html", "Deprecated." + + " As of JDK version 1.5, replaced by" + NL + + " " + "setUndecorated(boolean)." + NL + "
    Reads the object stream.
    " + NL + - "
    " + NL + "
    Throws:" + + "
    " + NL + "
    Throws:" + "
    " + NL + "
    " + "IOException
    " + NL + "
    java.io.IOException
    " + NL + "
    "}, - {BUG_ID + FS + "serialized-form.html", "Deprecated." + + {BUG_ID + FS + "serialized-form.html", "Deprecated." + " " + NL + "
    " + "The name for this class.
    "}}; @@ -186,14 +186,14 @@ "title=\"enum in pkg1\">C1.ModalExclusionType " + "APPLICATION_EXCLUDE" + NL + ""}, {BUG_ID + FS + "serialized-form.html", "
    boolean " +
    -                 "undecorated
    " + NL + "
    " + - "Deprecated. As of JDK version 1.5, replaced by" + NL + - " " + + "undecorated" + NL + "" + NL + ""}, - {BUG_ID + FS + "serialized-form.html", "" + - "Deprecated. As of JDK version" + + {BUG_ID + FS + "serialized-form.html", "" + + "Deprecated. As of JDK version" + " 1.5, replaced by" + NL + - " " + + " " + "setUndecorated(boolean).
    " + NL + ""}}; // Test for valid HTML generation which should not comprise of empty diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java --- a/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2013, 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 @@ -25,7 +25,7 @@ /* * @test - * @bug 6786028 + * @bug 6786028 8026567 * @summary This test verifys the use of HTML tag instead of by Javadoc std doclet. * @author Bhavesh Patel * @library ../lib/ @@ -38,7 +38,7 @@ private static final String BUG_ID = "6786028"; private static final String[][] TEST1 = { - {BUG_ID + FS + "pkg1" + FS + "C1.html", "See Also:"}}; + {BUG_ID + FS + "pkg1" + FS + "C1.html", "See Also:"}}; private static final String[][] NEGATED_TEST1 = { {BUG_ID + FS + "pkg1" + FS + "C1.html", "Method Summary"}, {BUG_ID + FS + "pkg1" + FS + "C1.html", ""}, diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/* + * @test + * @bug 8008164 + * @summary Test styles on HTML tables generated by javadoc. + * @author Bhavesh Patel + * @library ../lib/ + * @build JavadocTester TestHtmlTableStyles + * @run main TestHtmlTableStyles + */ + +public class TestHtmlTableStyles extends JavadocTester { + + private static final String BUG_ID = "8008164"; + + //Input for string search tests. + private static final String[][] TEST = { + {BUG_ID + FS + "pkg1" + FS + "TestTable.html", + "
    {@code kind() } {@code name() }
    {@code @throws } {@code @throws }
    DEFAULT_NAME" + " 
    " + }, + {BUG_ID + FS + "pkg1" + FS + "TestTable.html", + "
    " + }, + {BUG_ID + FS + "pkg1" + FS + "TestTable.html", + "
    " + }, + {BUG_ID + FS + "pkg1" + FS + "TestTable.html", + "
    " + }, + {BUG_ID + FS + "pkg1" + FS + "package-summary.html", + "
    " + }, + {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "TestTable.html", + "
    " + }, + {BUG_ID + FS + "overview-summary.html", + "
    " + }, + {BUG_ID + FS + "deprecated-list.html", + "
    " + }, + {BUG_ID + FS + "constant-values.html", + "
    " + }, + }; + + private static final String[] ARGS = new String[] { + "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2" + }; + + /** + * The entry point of the test. + * @param args the array of command line arguments. + */ + public static void main(String[] args) throws Exception { + TestHtmlTableStyles tester = new TestHtmlTableStyles(); + run(tester, ARGS, TEST, NO_TEST); + tester.printSummary(); + } + + /** + * {@inheritDoc} + */ + public String getBugId() { + return BUG_ID; + } + + /** + * {@inheritDoc} + */ + public String getBugName() { + return getClass().getName(); + } +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package pkg1; + +/** + * Testing table in documentation comment. In the generated documentation, it + * should be displayed as a regular table and not have any styles that the javadoc + * generated tables have. + * + *
    + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Summary of test table
    First Element (Head) Last Element (Tail)
    Throws exceptionSpecial valueThrows exceptionSpecial value
    InsertaddFirst(e)offerFirst(e)addLast(e)offerLast(e)
    RemoveremoveFirst()pollFirst()removeLast()pollLast()
    + */ +public class TestTable +{ + /** + * Field in Class. + */ + public String field; + + /** + * Field constant in Class. + */ + public static final int fieldCnst = 0; + + /** + * Method in Class. + */ + public void methodInClass(int i) {} + + /** + * Deprecated method in Class. + * @deprecated Do not use it. + */ + public void deprMethod() {} + +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testHtmlTableStyles/pkg2/TestUse.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/com/sun/javadoc/testHtmlTableStyles/pkg2/TestUse.java Mon Oct 28 18:30:14 2013 -0400 @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2013, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package pkg2; + +import pkg1.*; + +/** + * Testing use of TestTable. + */ +public class TestUse +{ + public TestTable tTable; +} diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java --- a/test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2013, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 6786688 + * @bug 6786688 8008164 * @summary HTML tables should have table summary, caption and table headers. * @author Bhavesh Patel * @library ../lib/ @@ -50,121 +50,121 @@ //Package summary {BUG_ID + FS + "pkg1" + FS + "package-summary.html", - "" }, {BUG_ID + FS + "pkg1" + FS + "package-summary.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "package-summary.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "package-summary.html", - "
    " }, // Class documentation {BUG_ID + FS + "pkg1" + FS + "C1.html", - "
    " }, {BUG_ID + FS + "pkg1" + FS + "C1.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "C2.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "C2.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "C2.ModalExclusionType.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "C3.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "C4.html", - "
    " }, // Class use documentation {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "I1.html", - "
    " }, {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", - "
    " }, {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.ModalExclusionType.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.ModalExclusionType.html", - "
    " }, // Package use documentation {BUG_ID + FS + "pkg1" + FS + "package-use.html", - "
    " }, {BUG_ID + FS + "pkg1" + FS + "package-use.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "package-use.html", - "
    " }, {BUG_ID + FS + "pkg2" + FS + "package-use.html", - "
    " }, // Deprecated {BUG_ID + FS + "deprecated-list.html", - "
    " }, {BUG_ID + FS + "deprecated-list.html", - "
    " }, // Constant values {BUG_ID + FS + "constant-values.html", - "
    " }, diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testIndex/TestIndex.java --- a/test/com/sun/javadoc/testIndex/TestIndex.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testIndex/TestIndex.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 4852280 4517115 4973608 4994589 + * @bug 4852280 4517115 4973608 4994589 8026567 * @summary Perform tests on index.html file. * Also test that index-all.html has the appropriate output. * Test for unnamed package in index. @@ -53,27 +53,27 @@ //Test index-all.html {BUG_ID + FS + "index-all.html", - "C" + + "C" + " - Class in pkg"}, {BUG_ID + FS + "index-all.html", "" + - "Interface - Interface in " + + "Interface - Interface in " + "pkg"}, {BUG_ID + FS + "index-all.html", "" + - "AnnotationType - Annotation Type in " + + "AnnotationType - Annotation Type in " + "pkg"}, {BUG_ID + FS + "index-all.html", "" + - "Coin - Enum in " + + "Coin - Enum in " + "pkg"}, {BUG_ID + FS + "index-all.html", "Class in <Unnamed>"}, {BUG_ID + FS + "index-all.html", - "
    " + NL + "
    " + + "
    " + NL + "
    " + "Java - Static variable in class pkg.C
    " + NL + "
     
    " + NL + - "
    JDK " + + "
    JDK " + "- Static variable in class pkg." + "C
    " + NL + "
     
    " + NL + "
    "}, }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testInterface/TestInterface.java --- a/test/com/sun/javadoc/testInterface/TestInterface.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testInterface/TestInterface.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4682448 4947464 5029946 + * @bug 4682448 4947464 5029946 8025633 8026567 * @summary Verify that the public modifier does not show up in the * documentation for public methods, as recommended by the JLS. * If A implements I and B extends A, B should be in the list of @@ -83,8 +83,8 @@ }, //Make sure "Specified By" has substituted type parameters. {BUG_ID + FS + "pkg" + FS + "Child.html", - "
    Specified by:
    " + NL + - "
    method" + + "
    Specified by:
    " + NL + + "
    method" + " in interface " + "" + "Interface<" + @@ -92,8 +92,8 @@ }, //Make sure "Overrides" has substituted type parameters. {BUG_ID + FS + "pkg" + FS + "Child.html", - "
    Overrides:
    " + NL + - "
    method" + + "
    Overrides:
    " + NL + + "
    method" + " in class Parent<T>
    " diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testJavaFX/TestJavaFX.java --- a/test/com/sun/javadoc/testJavaFX/TestJavaFX.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testJavaFX/TestJavaFX.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 7112427 8012295 + * @bug 7112427 8012295 8025633 8026567 * @summary Test of the JavaFX doclet features. * @author jvalenta * @library ../lib/ @@ -38,32 +38,32 @@ private static final String[][] TEST = new String[][] { {"./" + BUG_ID + "/C.html", - "
    See Also:
    " + NL + "
    getRate(), " + NL + - "setRate(double)
    "}, + "
    See Also:
    " + NL + "
    getRate(), " + NL + + "setRate(double)
    "}, {"./" + BUG_ID + "/C.html", "
    public final void setRate(double value)
    " + NL + "
    Sets the value of the property rate.
    " + NL + - "
    " + NL + "
    Property description:
    " }, + "
    " + NL + "
    Property description:
    " }, {"./" + BUG_ID + "/C.html", "
    public final double getRate()
    " + NL + "
    Gets the value of the property rate.
    " + NL + - "
    " + NL + "
    Property description:
    " }, + "
    " + NL + "
    Property description:
    " }, {"./" + BUG_ID + "/C.html", - "
    " }, + "" }, {"./" + BUG_ID + "/C.html", "

    isPaused

    " + NL + "
    public final double isPaused()
    " + NL + diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testJavascript/TestJavascript.java --- a/test/com/sun/javadoc/testJavascript/TestJavascript.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testJavascript/TestJavascript.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4665566 4855876 7025314 8012375 8015997 8016328 + * @bug 4665566 4855876 7025314 8012375 8015997 8016328 8024756 * @summary Verify that the output has the right javascript. * @author jamieh * @library ../lib/ @@ -104,9 +104,13 @@ //Make sure title javascript only runs if is-external is not true {BUG_ID + FS + "pkg" + FS + "C.html", - " if (location.href.indexOf('is-external=true') == -1) {" + NL + - " parent.document.title=\"C\";" + NL + - " }"}, + " try {" + NL + + " if (location.href.indexOf('is-external=true') == -1) {" + NL + + " parent.document.title=\"C\";" + NL + + " }" + NL + + " }" + NL + + " catch(err) {" + NL + + " }"}, }; private static final String[][] NEGATED_TEST = NO_TEST; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testLegacyTaglet/Check.java --- a/test/com/sun/javadoc/testLegacyTaglet/Check.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testLegacyTaglet/Check.java Mon Oct 28 18:30:14 2013 -0400 @@ -126,7 +126,7 @@ * @param tag the tag representation of this custom tag. */ public String toString(Tag tag) { - return "
    " + TAG_HEADER + ":
    " + tag.text() + + return "
    " + TAG_HEADER + ":
    " + tag.text() + "
    \n"; } diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testLinkOption/TestLinkOption.java --- a/test/com/sun/javadoc/testLinkOption/TestLinkOption.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testLinkOption/TestLinkOption.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2013, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 4720957 5020118 + * @bug 4720957 5020118 8026567 * @summary Test to make sure that -link and -linkoffline link to * right files. * @author jamieh @@ -61,7 +61,7 @@ "Object p3)" }, {BUG_ID + "-1" + FS + "java" + FS + "lang" + FS + "StringBuilderChild.html", - "
    public abstract class StringBuilderChild" + NL +
    +                "
    public abstract class StringBuilderChild" + NL +
                     "extends Object
    " }, diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java --- a/test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4732864 6280605 7064544 8014636 8016328 + * @bug 4732864 6280605 7064544 8014636 8016328 8025633 * @summary Make sure that you can link from one member to another using * non-qualified name, furthermore, ensure the right one is linked. * @author jamieh @@ -49,9 +49,9 @@ "Qualified Link: C.InnerC.
    " + NL + " Unqualified Link1: C.InnerC.
    " + NL + " Unqualified Link2: C.InnerC.
    " + NL + - " Qualified Link: method(pkg.C.InnerC, pkg.C.InnerC2).
    " + NL + - " Unqualified Link: method(C.InnerC, C.InnerC2).
    " + NL + - " Unqualified Link: method(InnerC, InnerC2).
    " + " Qualified Link: method(pkg.C.InnerC, pkg.C.InnerC2).
    " + NL + + " Unqualified Link: method(C.InnerC, C.InnerC2).
    " + NL + + " Unqualified Link: method(InnerC, InnerC2).
    " }, {BUG_ID + FS + "pkg" + FS + "C.InnerC.html", "Link to member in outer class: C.MEMBER
    " + NL + diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java --- a/test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4638588 4635809 6256068 6270645 + * @bug 4638588 4635809 6256068 6270645 8025633 8026567 * @summary Test to make sure that members are inherited properly in the Javadoc. * Verify that inheritence labels are correct. * @author jamieh @@ -44,7 +44,7 @@ //Public method should be inherited {BUG_ID + FS + "pkg" + FS + "SubClass.html", - ""}, + ""}, //Public inner class should be inherited. {BUG_ID + FS + "pkg" + FS + "SubClass.html", @@ -56,7 +56,7 @@ //Protected method should be inherited {BUG_ID + FS + "pkg" + FS + "SubClass.html", - ""}, + ""}, //Protected inner class should be inherited. {BUG_ID + FS + "pkg" + FS + "SubClass.html", @@ -72,15 +72,15 @@ // Test overriding/implementing methods with generic parameters. {BUG_ID + FS + "pkg" + FS + "BaseClass.html", - "
    " + NL + "
    Specified by:
    " + NL + - "
    " + + "
    " + NL + "
    Specified by:
    " + NL + + "
    " + "getAnnotation in interface " + "" + "BaseInterface
    " + NL + "
    "}, // Test diamond inheritence member summary (6256068) {BUG_ID + FS + "diamond" + FS + "Z.html", - "aMethod"}, + "aMethod"}, // Test that doc is inherited from closed parent (6270645) {BUG_ID + FS + "inheritDist" + FS + "C.html", @@ -90,7 +90,7 @@ private static final String[][] NEGATED_TEST = { {BUG_ID + FS + "pkg" + FS + "SubClass.html", - "staticMethod
    "}, + "staticMethod
    "}, }; private static final String[] ARGS = new String[] { diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testMemberSummary/TestMemberSummary.java --- a/test/com/sun/javadoc/testMemberSummary/TestMemberSummary.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testMemberSummary/TestMemberSummary.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4951228 6290760 + * @bug 4951228 6290760 8025633 8026567 * @summary Test the case where the overriden method returns a different * type than the method in the child class. Make sure the * documentation is inherited but the return type isn't. @@ -49,7 +49,7 @@ // Check return type in member summary. {BUG_ID + FS + "pkg" + FS + "PublicChild.html", "PublicChild" + NL + - "
    " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", @@ -372,7 +372,7 @@ "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", - "" }, @@ -401,7 +401,7 @@ " " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", - "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", @@ -456,7 +456,7 @@ "Foo3 " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", - "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", @@ -500,7 +500,7 @@ " " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", - "" + "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", @@ -586,9 +586,9 @@ "" + NL + "" + NL + "" + NL + "" + NL + "" + NL + - "" + NL + "" + NL + "" @@ -663,14 +663,14 @@ // TYPE PARAMETER IN INDEX //================================= {BUG_ID + FS + "index-all.html", - "" + + "" + "method(Vector<Object>)" }, //================================= // TYPE PARAMETER IN INDEX //================================= {BUG_ID + FS + "index-all.html", - "" + + "" + "method(Vector<Object>)" }, }; @@ -679,7 +679,7 @@ // ENUM TESTING //================================= //NO constructor section - {BUG_ID + FS + "pkg" + FS + "Coin.html", "Constructor Summary"}, + {BUG_ID + FS + "pkg" + FS + "Coin.html", "

    Constructor Summary

    "}, //================================= // TYPE PARAMETER TESTING //================================= @@ -698,25 +698,25 @@ {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "@AnnotationTypeUndocumented(optional=\"Class Annotation\"," + NL + " required=1994)" + NL + - "public class AnnotationTypeUsage
    extends java.lang.Object
    "}, + "public class AnnotationTypeUsage
    extends java.lang.Object
    "}, //FIELD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "@AnnotationTypeUndocumented(optional=\"Field Annotation\"," + NL + " required=1994)" + NL + - "public int field"}, + "public int field"}, //CONSTRUCTOR {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "@AnnotationTypeUndocumented(optional=\"Constructor Annotation\"," + NL + " required=1994)" + NL + - "public AnnotationTypeUsage()"}, + "public AnnotationTypeUsage()"}, //METHOD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "@AnnotationTypeUndocumented(optional=\"Method Annotation\"," + NL + " required=1994)" + NL + - "public void method()"}, + "public void method()"}, //================================= // Make sure annotation types do not diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testOverridenMethods/TestOverridenMethodDocCopy.java --- a/test/com/sun/javadoc/testOverridenMethods/TestOverridenMethodDocCopy.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testOverridenMethods/TestOverridenMethodDocCopy.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4368820 + * @bug 4368820 8025633 8026567 * @summary Inherited comment should link directly to member, not just * class * @author jamieh @@ -46,8 +46,8 @@ //Input for string search tests. private static final String[][] TEST = { {BUG_ID + FS + "pkg1" + FS + "SubClass.html", - "Description copied from class: " + - "" + + "Description copied from class: " + + "" + "BaseClass" } }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethods.java --- a/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethods.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethods.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4634891 + * @bug 4634891 8026567 * @summary Determine if overriden methods are properly documented when * -protected (default) visibility flag is used. * @author jamieh @@ -40,12 +40,12 @@ private static final String[][] TEST = { //The public method should be overriden {BUG_ID + FS + "pkg1" + FS + "SubClass.html", - "
    Overrides:
    " + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + - "
    " + + "
    Overrides:
    " + NL + + "
    " + "publicMethod in class " + "BaseClass
    "}, //The public method in different package should be overriden {BUG_ID + FS + "pkg2" + FS + "SubClass.html", - "
    Overrides:
    " + NL + - "
    " + + "
    Overrides:
    " + NL + + "
    " + "publicMethod in class " + "BaseClass
    "}, //The package private method should be overriden since the base and sub class are in the same //package. {BUG_ID + FS + "pkg1" + FS + "SubClass.html", - "
    Overrides:
    " + NL + - "
    " + + "
    Overrides:
    " + NL + + "
    " + "packagePrivateMethod in class " + "BaseClass
    "} }; @@ -65,18 +65,18 @@ //The private method in should not be overriden {BUG_ID + FS + "pkg1" + FS + "SubClass.html", - "
    Overrides:
    " + NL + + "
    Overrides:
    " + NL + "
    "}, //The private method in different package should not be overriden {BUG_ID + FS + "pkg2" + FS + "SubClass.html", - "
    Overrides:
    " + NL + + "
    Overrides:
    " + NL + "
    "}, //The package private method should not be overriden since the base and sub class are in //different packages. {BUG_ID + FS + "pkg2" + FS + "SubClass.html", - "
    Overrides:
    " + NL + + "
    Overrides:
    " + NL + "
    "}, }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPrivateFlag.java --- a/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPrivateFlag.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPrivateFlag.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4634891 + * @bug 4634891 8026567 * @summary Determine if overriden methods are properly documented when * -protected (default) visibility flag is used. * @author jamieh @@ -40,18 +40,18 @@ private static final String[][] TEST = { //The public method should be overriden {BUG_ID + FS + "pkg1" + FS + "SubClass.html", - "
    Overrides:
    " + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Overrides:" + NL + + "
    Overrides:
    " + NL + "
    Deprecated." + NL + - "
    This package is Deprecated." + + "
    Deprecated." + NL + + "
    This package is Deprecated." + "
    " }, {BUG_ID + "-1" + FS + "deprecated-list.html", diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testParamTaglet/TestParamTaglet.java --- a/test/com/sun/javadoc/testParamTaglet/TestParamTaglet.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testParamTaglet/TestParamTaglet.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4802275 4967243 + * @bug 4802275 4967243 8026567 * @summary Make sure param tags are still printed even though they do not * match up with a real parameters. * Make sure inheritDoc cannot be used in an invalid param tag. @@ -48,12 +48,12 @@ private static final String[][] TEST = { //Regular param tags. {BUG_ID + FS + "pkg" + FS + "C.html", - "Parameters:" + NL + "
    param1 - testing 1 2 3.
    " + + "Parameters:" + NL + "
    param1 - testing 1 2 3.
    " + NL + "
    param2 - testing 1 2 3." }, //Param tags that don't match with any real parameters. {BUG_ID + FS + "pkg" + FS + "C.html", - "Parameters:" + NL + "
    p1 - testing 1 2 3.
    " + + "Parameters:" + NL + "
    p1 - testing 1 2 3.
    " + NL + "
    p2 - testing 1 2 3." }, //{@inherit} doc misuse does not cause doclet to throw exception. diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java --- a/test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4780441 4874845 4978816 8014017 8016328 + * @bug 4780441 4874845 4978816 8014017 8016328 8025633 8026567 * @summary Make sure that when the -private flag is not used, members * inherited from package private class are documented in the child. * @@ -66,7 +66,7 @@ // Method inheritence from non-public superclass. {BUG_ID + "-1" + FS + "pkg" + FS + "PublicChild.html", - "" + + "" + "methodInheritedFromParent" }, @@ -78,7 +78,7 @@ // Method inheritence from non-public superinterface. {BUG_ID + "-1" + FS + "pkg" + FS + "PublicInterface.html", - "" + + "" + "methodInterface" }, @@ -112,12 +112,12 @@ private static final String[][] NEGATED_TEST1 = { // Should not document that a method overrides method from private class. {BUG_ID + "-1" + FS + "pkg" + FS + "PublicChild.html", - "Overrides:"}, + "Overrides:"}, // Should not document that a method specified by private interface. {BUG_ID + "-1" + FS + "pkg" + FS + "PublicChild.html", - "Specified by:"}, + "Specified by:"}, {BUG_ID + "-1" + FS + "pkg" + FS + "PublicInterface.html", - "Specified by:"}, + "Specified by:"}, // Should not mention that any documentation was copied. {BUG_ID + "-1" + FS + "pkg" + FS + "PublicChild.html", "Description copied from"}, @@ -139,7 +139,7 @@ //Do not inherit private interface method with generic parameters. //This method has been implemented. {BUG_ID + "-1" + FS + "pkg2" + FS + "C.html", - "hello"}, + "hello"}, }; // Test output when -private flag is used. @@ -171,20 +171,20 @@ "PrivateParent" }, {BUG_ID + "-2" + FS + "pkg" + FS + "PublicChild.html", - "" + + "" + "methodInheritedFromParent" }, // Should document that a method overrides method from private class. {BUG_ID + "-2" + FS + "pkg" + FS + "PublicChild.html", - "
    Overrides:
    " + NL + - "
    " + + "
    Overrides:
    " + NL + + "
    " + "methodOverridenFromParent in class " + "" + "PrivateParent
    "}, // Should document that a method is specified by private interface. {BUG_ID + "-2" + FS + "pkg" + FS + "PublicChild.html", - "
    Specified by:
    " + NL + - "
    " + + "
    Specified by:
    " + NL + + "
    " + "methodInterface in interface " + "" + "PrivateInterface
    "}, @@ -195,7 +195,7 @@ "PrivateInterface" }, {BUG_ID + "-2" + FS + "pkg" + FS + "PrivateInterface.html", - "" + + "" + "methodInterface" }, // Should mention that any documentation was copied. @@ -227,12 +227,12 @@ //Since private flag is used, we can document that private interface method //with generic parameters has been implemented. {BUG_ID + "-2" + FS + "pkg2" + FS + "C.html", - "Description copied from interface: " + - "I"}, + "Description copied from interface: " + + "I"}, {BUG_ID + "-2" + FS + "pkg2" + FS + "C.html", - "
    Specified by:
    " + NL + - "
    hello" + + "
    Specified by:
    " + NL + + "
    hello" + " in interface " + "I" + "<java.lang.String>
    "}, @@ -240,14 +240,14 @@ //Make sure when no modifier appear in the class signature, the //signature is displayed correctly without extra space at the beginning. {BUG_ID + "-2" + FS + "pkg" + FS + "PrivateParent.html", - "
    class PrivateParent"},
    +            "
    class PrivateParent"},
     
           {BUG_ID + "-2" + FS + "pkg" + FS + "PublicChild.html",
    -            "
    public class PublicChild"},
    +            "
    public class PublicChild"},
         };
         private static final String[][] NEGATED_TEST2 = {
             {BUG_ID + "-2" + FS + "pkg" + FS + "PrivateParent.html",
    -            "
     class PrivateParent"},
    +            "
     class PrivateParent"},
         };
     
         /**
    diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testProfiles/TestProfiles.java
    --- a/test/com/sun/javadoc/testProfiles/TestProfiles.java	Fri Oct 11 17:51:08 2013 -0700
    +++ b/test/com/sun/javadoc/testProfiles/TestProfiles.java	Mon Oct 28 18:30:14 2013 -0400
    @@ -23,7 +23,7 @@
     
     /*
      * @test
    - * @bug      8006124 8009684 8016921 8023700 8024096
    + * @bug      8006124 8009684 8016921 8023700 8024096 8008164 8026567 8026770
      * @summary  Test javadoc support for profiles.
      * @author   Bhavesh Patel, Evgeniya Stepanova
      * @library  ../lib/
    @@ -85,6 +85,20 @@
                 "

    pkg2

    " }, + {PROFILE_BUG_ID + FS + "compact2-summary.html", + "
    rate" + NL + + "rate" + NL + "
    Defines the direction/speed at which the Timeline is expected to"}, {"./" + BUG_ID + "/C.html", - "Default value:"}, + "Default value:"}, {"./" + BUG_ID + "/C.html", - "Since:" + NL + "
    JavaFX 8.0
    " }, + "Since:" + NL + "
    JavaFX 8.0
    " }, {"./" + BUG_ID + "/C.html", "

    Sets the value of the property Property"}, {"./" + BUG_ID + "/C.html", "

    Gets the value of the property Property"}, {"./" + BUG_ID + "/C.html", - "Property description:"}, + "Property description:"}, {"./" + BUG_ID + "/C.html", - "

    setTestMethodProperty() setTestMethodProperty() " + + "" + "returnTypeTest()" }, // Check return type in member detail. @@ -60,9 +60,9 @@ // Legacy anchor dimensions (6290760) {BUG_ID + FS + "pkg2" + FS + "A.html", - "" + NL + + "" + NL + "" + NL + - "" + NL + + "" + NL + "" + NL + "" }, diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testNavigation/TestNavigation.java --- a/test/com/sun/javadoc/testNavigation/TestNavigation.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testNavigation/TestNavigation.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4131628 4664607 7025314 8023700 7198273 + * @bug 4131628 4664607 7025314 8023700 7198273 8025633 8026567 * @summary Make sure the Next/Prev Class links iterate through all types. * Make sure the navagation is 2 columns, not 3. * @author jamieh @@ -46,21 +46,21 @@ private static final String[][] TEST = { {BUG_ID + FS + "pkg" + FS + "A.html", "
  • Prev Class
  • "}, {BUG_ID + FS + "pkg" + FS + "A.html", - "Next Class"}, + "Next Class"}, {BUG_ID + FS + "pkg" + FS + "C.html", - "Prev Class"}, + "Prev Class"}, {BUG_ID + FS + "pkg" + FS + "C.html", - "Next Class"}, + "Next Class"}, {BUG_ID + FS + "pkg" + FS + "E.html", - "Prev Class"}, + "Prev Class"}, {BUG_ID + FS + "pkg" + FS + "E.html", - "Next Class"}, + "Next Class"}, {BUG_ID + FS + "pkg" + FS + "I.html", - "Prev Class"}, + "Prev Class"}, {BUG_ID + FS + "pkg" + FS + "I.html", "
  • Next Class
  • "}, // Test for 4664607 {BUG_ID + FS + "pkg" + FS + "I.html", - "" + NL + "" + NL + + "" + NL + "" + NL + "" + NL + ""} }; private static final String[][] NEGATED_TEST = NO_TEST; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java --- a/test/com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java Mon Oct 28 18:30:14 2013 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2013, 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 @@ -23,7 +23,7 @@ /* * @test - * @bug 6758050 + * @bug 6758050 8025633 * @summary Test HTML output for nested generic types. * @author bpatel * @library ../lib/ @@ -46,7 +46,7 @@ private static final String[][] TEST = { {BUG_ID + FS + "pkg" + FS + "NestedGenerics.html", "" } }; diff -r cc5933483c1a -r 0fde5fa9febf test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java --- a/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Fri Oct 11 17:51:08 2013 -0700 +++ b/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Mon Oct 28 18:30:14 2013 -0400 @@ -23,7 +23,7 @@ /* * @test - * @bug 4789689 4905985 4927164 4827184 4993906 5004549 7025314 7010344 + * @bug 4789689 4905985 4927164 4827184 4993906 5004549 7025314 7010344 8025633 8026567 * @summary Run Javadoc on a set of source files that demonstrate new * language features. Check the output to ensure that the new * language features are properly documented. @@ -53,7 +53,7 @@ {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin"}, //Make sure enum signature is correct. {BUG_ID + FS + "pkg" + FS + "Coin.html", "
    public enum " +
    -                     "Coin" + NL +
    +                     "Coin" + NL +
                          "extends java.lang.Enum<Coin>
    " }, @@ -62,7 +62,7 @@ " "}, //Detail for enum constant {BUG_ID + FS + "pkg" + FS + "Coin.html", - "Dime"}, + "Dime"}, //Automatically insert documentation for values() and valueOf(). {BUG_ID + FS + "pkg" + FS + "Coin.html", "Returns an array containing the constants of this enum type,"}, @@ -80,11 +80,11 @@ "Class TypeParameters<E>"}, //Check class type parameters section. {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", - "
    Type Parameters:
    " + NL + "
    E - " + + "
    Type Parameters:
    " + NL + "
    E - " + "the type parameter for this class."}, //Type parameters in @see/@link {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", - "
    " + NL + "
    See Also:
    " + NL + "
    " + + "
    " + NL + "
    See Also:
    " + NL + "
    " + "" + "TypeParameters
    " + NL + "
    "}, //Method that uses class type parameter. @@ -93,7 +93,7 @@ "parameter in TypeParameters\">E param)"}, //Method type parameter section. {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", - "Type Parameters:" + NL + "
    T - This is the first " + + "Type Parameters:" + NL + "
    T - This is the first " + "type parameter.
    " + NL + "
    V - This is the second type " + "parameter."}, //Signature of method with type parameters @@ -118,7 +118,7 @@ //Signature of subclass that has type parameters. {BUG_ID + FS + "pkg" + FS + "TypeParameterSubClass.html", - "
    public class TypeParameterSubClass<T extends " +
    +                "
    public class TypeParameterSubClass<T extends " +
                     "java.lang.String>" + NL + "extends " +
                     "" +
                     "TypeParameterSuperClass<T>
    "}, @@ -145,7 +145,7 @@ //================================= {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int... i)"}, {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[][]... i)"}, - {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[]...)"}, + {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "-int:A...-"}, {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "" + "TypeParameters... t"}, @@ -156,19 +156,19 @@ //Make sure the summary links are correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "
  • Summary: 
  • " + NL + "
  • Field | 
  • " + NL + - "
  • " + + "
  • " + "Required | 
  • " + NL + "
  • " + - "Optional
  • "}, + "Optional"}, //Make sure the detail links are correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "
  • Detail: 
  • " + NL + "
  • Field | 
  • " + NL + - "
  • Element
  • "}, + "
  • Element
  • "}, //Make sure the heading is correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "Annotation Type AnnotationType"}, //Make sure the signature is correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", - "public @interface AnnotationType"}, + "public @interface AnnotationType"}, //Make sure member summary headings are correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "

    Required Element Summary

    "}, @@ -188,53 +188,53 @@ //PACKAGE {BUG_ID + FS + "pkg" + FS + "package-summary.html", - "@AnnotationType(optional=\"Package Annotation\"," + NL + - " required=1994)"}, + "@AnnotationType(optional=\"Package Annotation\"," + NL + + " required=1994)"}, //CLASS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "
    @AnnotationType(" +
    -                "optional" +
    +                "optional" +
                     "=\"Class Annotation\"," + NL +
    -                "                " +
    -                "required=1994)" + NL + "public class " +
    +                "                " +
    +                "required=1994)" + NL + "public class " +
                     "AnnotationTypeUsage" + NL + "extends java.lang.Object
    "}, //FIELD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "
    @AnnotationType(" +
    -                "optional" +
    +                "optional" +
                     "=\"Field Annotation\"," + NL +
    -                "                " +
    +                "                " +
                     "required=1994)" + NL + "public int field
    "}, //CONSTRUCTOR {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "
    @AnnotationType(" +
    -                "optional" +
    +                "optional" +
                     "=\"Constructor Annotation\"," + NL +
    -                "                " +
    +                "                " +
                     "required=1994)" + NL + "public AnnotationTypeUsage()
    "}, //METHOD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "
    @AnnotationType(" +
    -                "optional" +
    +                "optional" +
                     "=\"Method Annotation\"," + NL +
    -                "                " +
    +                "                " +
                     "required=1994)" + NL + "public void method()
    "}, //METHOD PARAMS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "
    public void methodWithParams(" +
                     "" +
    -                "@AnnotationType(" +
    +                "@AnnotationType(" +
                     "optional=\"Parameter Annotation\",required=1994)" + NL +
    +                "href=\"../pkg/AnnotationType.html#required--\">required=1994)" + NL +
                     "                             int documented," + NL +
                     "                             int undocmented)
    "}, @@ -242,9 +242,9 @@ {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "
    public AnnotationTypeUsage(" +
    -                "@AnnotationType(" +
    +                "@AnnotationType(" +
                     "optional=\"Constructor Param Annotation\",required=1994)" + NL +
    +                "href=\"../pkg/AnnotationType.html#required--\">required=1994)" + NL +
                     "                           int documented," + NL +
                     "                           int undocmented)
    "}, @@ -254,43 +254,43 @@ //Integer {BUG_ID + FS + "pkg1" + FS + "B.html", - "d=3.14,"}, + "d=3.14,"}, //Double {BUG_ID + FS + "pkg1" + FS + "B.html", - "d=3.14,"}, + "d=3.14,"}, //Boolean {BUG_ID + FS + "pkg1" + FS + "B.html", - "b=true,"}, + "b=true,"}, //String {BUG_ID + FS + "pkg1" + FS + "B.html", - "s=\"sigh\","}, + "s=\"sigh\","}, //Class {BUG_ID + FS + "pkg1" + FS + "B.html", - "c=Foo.class,"}, + "c=Foo.class,"}, //Bounded Class {BUG_ID + FS + "pkg1" + FS + "B.html", - "w=TypeParameterSubClass.class,"}, + "w=TypeParameterSubClass.class,"}, //Enum {BUG_ID + FS + "pkg1" + FS + "B.html", - "e=Penny,"}, + "e=Penny,"}, //Annotation Type {BUG_ID + FS + "pkg1" + FS + "B.html", - "a=@AnnotationType(optional=\"foo\",required=1994),"}, + "a=@AnnotationType(optional=\"foo\",required=1994),"}, //String Array {BUG_ID + FS + "pkg1" + FS + "B.html", - "sa={\"up\",\"down\"},"}, + "sa={\"up\",\"down\"},"}, //Primitive {BUG_ID + FS + "pkg1" + FS + "B.html", - "primitiveClassTest=boolean.class,"}, + "primitiveClassTest=boolean.class,"}, //XXX: Add array test case after this if fixed: //5020899: Incorrect internal representation of class-valued annotation elements @@ -299,7 +299,7 @@ {BUG_ID + FS + "pkg1" + FS + "B.html", "
    @A"},
                 {BUG_ID + FS + "pkg1" + FS + "B.html",
    -                "public interface B
    "}, + "public interface B
    "}, //============================================================== @@ -320,7 +320,7 @@ "Foo " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", - "
    ClassUseTest1<T extends " + "Foo" + " & " + @@ -333,9 +333,9 @@ "pkg2\">Foo " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", - "ClassUseTest1." + - "method" + + "ClassUseTest1." + + "method" + "(T t) ClassUseTest1<T extends " + "Foo" + " & " + @@ -386,9 +386,9 @@ "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", - "" + - "ClassUseTest1.method" + + "" + + "ClassUseTest1.method" + "(T t) ClassUseTest2<T extends " + "" + "ParamTest<" + @@ -415,9 +415,9 @@ " " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", - "ClassUseTest2." + - "method" + + "ClassUseTest2." + + "method" + "(T t) ClassUseTest2<T extends " + "" + "ParamTest<" + @@ -470,9 +470,9 @@ "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", - "ClassUseTest2." + - "method" + + "ClassUseTest2." + + "method" + "(T t) ClassUseTest3<T extends " + "" + "ParamTest2<java.util.List<? extends " + @@ -515,9 +515,9 @@ " " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", - "ClassUseTest3" + - ".method(T t) ClassUseTest3" + + ".method(T t) <T extends " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", - "ClassUseTest3<T extends " + "" + "ParamTest2<java.util.List<? extends " + @@ -552,9 +552,9 @@ "pkg2\">Foo4 " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", - "ClassUseTest3." + - "method(T t)" + + "ClassUseTest3." + + "method(T t)" + " Method and Description
    voidClassUseTest3." + - "method(java." + + "ClassUseTest3." + + "method(java." + "util.Set<Foo4> p) 
    " + }, + {PROFILE_BUG_ID + FS + "compact2-summary.html", + "
    " + }, // Tests for profileName-package-summary.html listing the summary for a // package in a profile. {PROFILE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html", @@ -94,6 +108,12 @@ {PROFILE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html", "
    compact3
    " }, + {PROFILE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html", + "
      " + NL + "
    • " + NL + + "
    " + }, //Test for "overview-frame.html" showing the "All Profiles" link. {PROFILE_BUG_ID + FS + "overview-frame.html", "" + "pkg2.Class1Pkg2" - + NL +"
    Class1Pkg2. This class is deprecated
    " + + NL +"
    Class1Pkg2. This class is deprecated
    " }, //Test deprecated package in profile {PROFILE_BUG_ID + FS + "deprecated-list.html","
    " + "pkgDeprecated" - + NL +"
    This package is Deprecated." + + NL +"
    This package is Deprecated." + " Use pkg1.
    " }, {PROFILE_BUG_ID + FS + "pkgDeprecated" + FS + "package-summary.html", - "
    Deprecated." - + NL + "
    This package is Deprecated." + "
    Deprecated." + + NL + "
    This package is Deprecated." + " Use pkg1.
    " }, // need to add teststring when JDK-8015496 will be fixed //Test exception in profiles - {PROFILE_BUG_ID + FS + "compact1-summary.html","" + NL + "
    Exception Summary" @@ -149,7 +169,7 @@ }, //Test errors in profiles {PROFILE_BUG_ID + FS + "compact1-summary.html", - "" + NL + "" + NL + "" + NL + "
    Error Summary " + "
    Anno1Pkg4" }, {PROFILE_BUG_ID + FS + "compact1-summary.html","
  • Use
  • " + }, + {PROFILE_BUG_ID + FS + "compact2-summary.html", + "