Blame SOURCES/rhino.patch

d557d5
diff -ur openjdk.orig/jdk/make/com/sun/Makefile openjdk/jdk/make/com/sun/Makefile
d557d5
--- openjdk.orig/jdk/make/com/sun/Makefile	2012-02-14 16:12:48.000000000 -0500
d557d5
+++ openjdk/jdk/make/com/sun/Makefile	2012-02-22 14:25:10.327518016 -0500
d557d5
@@ -31,13 +31,6 @@
d557d5
 PRODUCT = sun
d557d5
 include $(BUILDDIR)/common/Defs.gmk
d557d5
 
d557d5
-ifndef OPENJDK
d557d5
-  ORG_EXISTS := $(call DirExists,$(CLOSED_SRC)/share/classes/sun/org,,)
d557d5
-  ifneq ("$(ORG_EXISTS)", "") 
d557d5
-    SCRIPT_SUBDIR = script
d557d5
-  endif
d557d5
-endif
d557d5
-
d557d5
 # jarsigner is part of JRE
d557d5
 SUBDIRS = java security net/ssl jarsigner
d557d5
 
d557d5
@@ -45,7 +38,7 @@
d557d5
 SUBDIRS_desktop    = image
d557d5
 SUBDIRS_enterprise = crypto/provider jndi \
d557d5
                      org rowset net/httpserver
d557d5
-SUBDIRS_misc       = $(SCRIPT_SUBDIR) tracing nio demo
d557d5
+SUBDIRS_misc       = script tracing nio demo
d557d5
 
d557d5
 # Omit mirror since it's built with the apt tool.
d557d5
 SUBDIRS_tools      = tools
d557d5
diff -ur openjdk.orig/jdk/make/com/sun/script/Makefile openjdk/jdk/make/com/sun/script/Makefile
d557d5
--- openjdk.orig/jdk/make/com/sun/script/Makefile	2012-02-14 16:12:48.000000000 -0500
d557d5
+++ openjdk/jdk/make/com/sun/script/Makefile	2012-02-22 14:10:53.325225237 -0500
d557d5
@@ -31,6 +31,8 @@
d557d5
 
d557d5
 AUTO_FILES_JAVA_DIRS = com/sun/script
d557d5
 
d557d5
+OTHER_JAVACFLAGS = -classpath $(RHINO_JAR)
d557d5
+
d557d5
 #
d557d5
 # Files that need to be copied
d557d5
 #
d557d5
diff -ur openjdk.orig/jdk/make/common/Release.gmk openjdk/jdk/make/common/Release.gmk
d557d5
--- openjdk.orig/jdk/make/common/Release.gmk	2012-02-14 16:12:48.000000000 -0500
d557d5
+++ openjdk/jdk/make/common/Release.gmk	2012-02-22 14:10:53.325225237 -0500
d557d5
@@ -766,6 +766,7 @@
d557d5
 	$(CP) $(RT_JAR) $(JRE_IMAGE_DIR)/lib/rt.jar
d557d5
 	$(CP) $(RESOURCES_JAR) $(JRE_IMAGE_DIR)/lib/resources.jar
d557d5
 	$(CP) $(JSSE_JAR) $(JRE_IMAGE_DIR)/lib/jsse.jar
d557d5
+	$(CP) $(RHINO_JAR) $(JRE_IMAGE_DIR)/lib/rhino.jar
d557d5
 ifneq ($(JFR_JAR),)
d557d5
 	$(CP) $(JFR_JAR) $(JRE_IMAGE_DIR)/lib/jfr.jar
d557d5
 endif
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/ExternalScriptable.java openjdk/jdk/src/share/classes/com/sun/script/javascript/ExternalScriptable.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/ExternalScriptable.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/ExternalScriptable.java	2012-02-22 14:10:53.325225237 -0500
d557d5
@@ -24,7 +24,7 @@
d557d5
  */
d557d5
 
d557d5
 package com.sun.script.javascript;
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 import javax.script.*;
d557d5
 import java.util.*;
d557d5
 
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/JavaAdapter.java openjdk/jdk/src/share/classes/com/sun/script/javascript/JavaAdapter.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/JavaAdapter.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/JavaAdapter.java	2012-02-22 14:10:53.325225237 -0500
d557d5
@@ -26,7 +26,7 @@
d557d5
 package com.sun.script.javascript;
d557d5
 
d557d5
 import javax.script.Invocable;
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 
d557d5
 /**
d557d5
  * This class implements Rhino-like JavaAdapter to help implement a Java
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/JSAdapter.java openjdk/jdk/src/share/classes/com/sun/script/javascript/JSAdapter.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/JSAdapter.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/JSAdapter.java	2012-02-22 14:10:53.326225216 -0500
d557d5
@@ -25,7 +25,7 @@
d557d5
 
d557d5
 package com.sun.script.javascript;
d557d5
 
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 import java.util.*;
d557d5
 
d557d5
 /**
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoClassShutter.java openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoClassShutter.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoClassShutter.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoClassShutter.java	2012-02-22 14:10:53.326225216 -0500
d557d5
@@ -26,7 +26,7 @@
d557d5
 package com.sun.script.javascript;
d557d5
 
d557d5
 import java.util.*;
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 
d557d5
 /**
d557d5
  * This class prevents script access to certain sensitive classes.
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoCompiledScript.java openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoCompiledScript.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoCompiledScript.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoCompiledScript.java	2012-02-22 14:10:53.326225216 -0500
d557d5
@@ -25,7 +25,7 @@
d557d5
 
d557d5
 package com.sun.script.javascript;
d557d5
 import javax.script.*;
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 
d557d5
 /**
d557d5
  * Represents compiled JavaScript code.
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngineFactory.java openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngineFactory.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngineFactory.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngineFactory.java	2012-02-22 14:10:53.326225216 -0500
d557d5
@@ -26,7 +26,7 @@
d557d5
 package com.sun.script.javascript;
d557d5
 import javax.script.*;
d557d5
 import java.util.*;
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 import com.sun.script.util.*;
d557d5
 
d557d5
 /**
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngine.java openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngine.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngine.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoScriptEngine.java	2012-02-22 14:10:53.327225198 -0500
d557d5
@@ -26,7 +26,7 @@
d557d5
 package com.sun.script.javascript;
d557d5
 import com.sun.script.util.*;
d557d5
 import javax.script.*;
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 import java.lang.reflect.Method;
d557d5
 import java.io.*;
d557d5
 import java.security.*;
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoTopLevel.java openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoTopLevel.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoTopLevel.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoTopLevel.java	2012-02-22 14:10:53.327225198 -0500
d557d5
@@ -25,7 +25,7 @@
d557d5
 
d557d5
 package com.sun.script.javascript;
d557d5
 
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 import javax.script.*;
d557d5
 import java.security.AccessControlContext;
0a1101
 
d557d5
diff -ur openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoWrapFactory.java openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoWrapFactory.java
d557d5
--- openjdk.orig/jdk/src/share/classes/com/sun/script/javascript/RhinoWrapFactory.java	2012-02-14 16:12:49.000000000 -0500
d557d5
+++ openjdk/jdk/src/share/classes/com/sun/script/javascript/RhinoWrapFactory.java	2012-02-22 14:10:53.327225198 -0500
d557d5
@@ -27,7 +27,7 @@
d557d5
 
d557d5
 import java.lang.reflect.*;
d557d5
 import static sun.security.util.SecurityConstants.*;
d557d5
-import sun.org.mozilla.javascript.internal.*;
d557d5
+import sun.org.mozilla.javascript.*;
d557d5
 
d557d5
 /**
d557d5
  * This wrap factory is used for security reasons. JSR 223 script