JDK-2163780 : Queens.class should be built from source, not put in source repo
  • Type: Backport
  • Backport of: JDK-6695777
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2008-06-11
  • Updated: 2012-10-13
  • Resolved: 2008-07-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
OpenJDK6,hs14Fixed
Comments
EVALUATION Note that this openjdk6 fix should be considered a throw away fix since the fix for jdk7 will be slightly different due to the restructuring of the hotspot workspace directories "build" and "make". There are differences at runtime as to what the current directory is.
03-07-2008

SUGGESTED FIX --- old/build/linux/makefiles/buildtree.make Wed Jul 2 16:35:34 2008 +++ new/build/linux/makefiles/buildtree.make Wed Jul 2 16:35:34 2008 @@ -284,7 +284,7 @@ WRONG_DATA_MODE_MSG = \ echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." -test_gamma: $(BUILDTREE_MAKE) +test_gamma: $(BUILDTREE_MAKE) Queens.class @echo Creating $@ ... $(QUIETLY) ( \ echo '#!/bin/sh'; \ @@ -295,12 +295,17 @@ echo "then"; \ echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ echo "fi"; \ - echo 'CLASSPATH="$(GAMMADIR)/build/$(OS_FAMILY):$$CLASSPATH"'; \ echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ ) > $@ $(QUIETLY) chmod +x $@ +include $(GAMMADIR)/build/linux/makefiles/rules.make + +Queens.class: $(GAMMADIR)/build/test/Queens.java + $(RM) -f $@ + $(REMOTE) $(COMPILE.JAVAC) -d . $< + FORCE: .PHONY: all FORCE --- old/build/solaris/makefiles/buildtree.make Wed Jul 2 16:35:35 2008 +++ new/build/solaris/makefiles/buildtree.make Wed Jul 2 16:35:35 2008 @@ -299,7 +299,7 @@ WRONG_DATA_MODE_MSG = \ echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." -test_gamma: $(BUILDTREE_MAKE) +test_gamma: $(BUILDTREE_MAKE) Queens.class @echo Creating $@ ... $(QUIETLY) ( \ echo '#!/bin/ksh'; \ @@ -310,12 +310,17 @@ echo "then"; \ echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ echo "fi"; \ - echo 'CLASSPATH="$(GAMMADIR)/build/$(OS_FAMILY):$$CLASSPATH"'; \ echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ ) > $@ $(QUIETLY) chmod +x $@ +include $(GAMMADIR)/build/solaris/makefiles/rules.make + +Queens.class: $(GAMMADIR)/build/test/Queens.java + $(RM) -f $@ + $(REMOTE) $(COMPILE.JAVAC) -d . $< + FORCE: .PHONY: all FORCE
03-07-2008

EVALUATION Run javac to generate Queens.class from build/test/Queens.java
02-07-2008