Blame SOURCES/rh1649777-add_rhino_support_jdk7.patch

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