From b501e8fdc459c47fd56c321e82e08385e10f62a8 Mon Sep 17 00:00:00 2001 From: Athijegannathan Sundararajan Date: Tue, 8 Jan 2013 08:51:00 +0530 Subject: [PATCH] 8005782: get rid of javadoc errors, warnings in nashorn build Reviewed-by: lagergren --- nashorn/make/build.xml | 15 ++++++++++----- nashorn/make/project.properties | 7 +++---- .../nashorn/internal/codegen/MethodEmitter.java | 4 ++-- .../jdk/nashorn/internal/runtime/ECMAErrors.java | 5 ++++- .../jdk/nashorn/internal/runtime/PropertyMap.java | 6 +++--- 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/nashorn/make/build.xml b/nashorn/make/build.xml index bfff718938a..b89363529d2 100644 --- a/nashorn/make/build.xml +++ b/nashorn/make/build.xml @@ -63,7 +63,7 @@ - - - + + - - + + + + + + + diff --git a/nashorn/make/project.properties b/nashorn/make/project.properties index b6c85709023..3868ead55fd 100644 --- a/nashorn/make/project.properties +++ b/nashorn/make/project.properties @@ -23,6 +23,9 @@ application.title=nashorn +# location of JDK embedded ASM sources +jdk.asm.src.dir=../jdk/src/share/classes/jdk/internal + # source and target levels build.compiler=modern javac.source=1.7 @@ -58,10 +61,6 @@ dist.dir=dist dist.jar=${dist.dir}/nashorn.jar dist.javadoc.dir=${dist.dir}/javadoc -# directory where asm project lives -asm.dir=../asm -asm.src.dir=${asm.dir}/src - # jars refererred file.reference.testng.jar=test/lib/testng.jar diff --git a/nashorn/src/jdk/nashorn/internal/codegen/MethodEmitter.java b/nashorn/src/jdk/nashorn/internal/codegen/MethodEmitter.java index 78d5ab77fd5..6a8b2febffa 100644 --- a/nashorn/src/jdk/nashorn/internal/codegen/MethodEmitter.java +++ b/nashorn/src/jdk/nashorn/internal/codegen/MethodEmitter.java @@ -155,7 +155,7 @@ public class MethodEmitter implements Emitter { /** * Constructor - internal use from ClassEmitter only - * @see ClassEmitter.method + * @see ClassEmitter#method * * @param classEmitter the class emitter weaving the class this method is in * @param method a method visitor @@ -166,7 +166,7 @@ public class MethodEmitter implements Emitter { /** * Constructor - internal use from ClassEmitter only - * @see ClassEmitter.method + * @see ClassEmitter#method * * @param classEmitter the class emitter weaving the class this method is in * @param method a method visitor diff --git a/nashorn/src/jdk/nashorn/internal/runtime/ECMAErrors.java b/nashorn/src/jdk/nashorn/internal/runtime/ECMAErrors.java index ceabcd22f7e..c0ab05479c7 100644 --- a/nashorn/src/jdk/nashorn/internal/runtime/ECMAErrors.java +++ b/nashorn/src/jdk/nashorn/internal/runtime/ECMAErrors.java @@ -38,13 +38,16 @@ public final class ECMAErrors { private static final String MESSAGES_RESOURCE = "jdk.nashorn.internal.runtime.resources.Messages"; // Without do privileged, under security manager messages can not be loaded. - private static final ResourceBundle MESSAGES_BUNDLE = AccessController.doPrivileged( + private static final ResourceBundle MESSAGES_BUNDLE; + static { + MESSAGES_BUNDLE = AccessController.doPrivileged( new PrivilegedAction() { @Override public ResourceBundle run() { return ResourceBundle.getBundle(MESSAGES_RESOURCE, Locale.getDefault()); } }); + } private ECMAErrors() { } diff --git a/nashorn/src/jdk/nashorn/internal/runtime/PropertyMap.java b/nashorn/src/jdk/nashorn/internal/runtime/PropertyMap.java index f2d34c2a3e1..f6426387b49 100644 --- a/nashorn/src/jdk/nashorn/internal/runtime/PropertyMap.java +++ b/nashorn/src/jdk/nashorn/internal/runtime/PropertyMap.java @@ -417,8 +417,8 @@ public final class PropertyMap implements Iterable, PropertyListener { /** * Prevents properties in map from being modified. * - * @return New map with {@link NOT_EXTENSIBLE} flag set and properties with - * {@link Property.NOT_CONFIGURABLE} set. + * @return New map with {@link #NOT_EXTENSIBLE} flag set and properties with + * {@link Property#NOT_CONFIGURABLE} set. */ PropertyMap seal() { PropertyHashMap newProperties = EMPTY_MAP; @@ -437,7 +437,7 @@ public final class PropertyMap implements Iterable, PropertyListener { * Prevents properties in map from being modified or written to. * * @return New map with {@link #NOT_EXTENSIBLE} flag set and properties with - * {@link Property.NOT_CONFIGURABLE} and {@link Property.NOT_WRITABLE} set. + * {@link Property#NOT_CONFIGURABLE} and {@link Property#NOT_WRITABLE} set. */ PropertyMap freeze() { PropertyHashMap newProperties = EMPTY_MAP;