/hg/icedtea: Use OpenJDK source files over OpenJDK6 classes in r...
    andrew at icedtea.classpath.org 
    andrew at icedtea.classpath.org
       
    Wed Dec  8 10:52:26 PST 2010
    
    
  
changeset af3ba972e863 in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=af3ba972e863
author: Andrew John Hughes <ahughes at redhat.com>
date: Wed Dec 08 18:52:17 2010 +0000
	Use OpenJDK source files over OpenJDK6 classes in rt.jar.
	2010-12-08 Andrew John Hughes <ahughes at redhat.com>
	 * javac.in: Pass -Xprefer:source (if javac is used)
	to pick up local OpenJDK7 versions of classes prior
	to those in OpenJDK6.
diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
ChangeLog |    7 +++++++
javac.in  |    3 ++-
diffs (34 lines):
diff -r 44d809890734 -r af3ba972e863 ChangeLog
--- a/ChangeLog	Tue Nov 30 16:31:02 2010 +0100
+++ b/ChangeLog	Wed Dec 08 18:52:17 2010 +0000
@@ -1,3 +1,10 @@ 2010-11-30  Matthias Klose  <doko at ubuntu
+2010-12-08  Andrew John Hughes  <ahughes at redhat.com>
+
+	* javac.in:
+	Pass -Xprefer:source (if javac is used) to
+	pick up local OpenJDK7 versions of classes
+	prior to those in OpenJDK6.
+
 2010-11-30  Matthias Klose  <doko at ubuntu.com>
 
 	* patches/icedtea-hotspot-6b11-7b24.patch: Remove.
diff -r 44d809890734 -r af3ba972e863 javac.in
--- a/javac.in	Tue Nov 30 16:31:02 2010 +0100
+++ b/javac.in	Wed Dec 08 18:52:17 2010 +0000
@@ -20,6 +20,7 @@ push @bcoption, '-bootclasspath', glob '
 push @bcoption, '-bootclasspath', glob '@abs_top_builddir@/bootstrap/jdk1.6.0/jre/lib/rt.jar'
     unless grep {$_ eq '-bootclasspath'} @ARGV;
 my @ecj_parms = ($ECJ_WARNINGS, @bcoption);
+my @javac_parms = ($JAVAC_WARNINGS, '-Xprefer:source')
 
 # Work around ecj's inability to handle duplicate command-line
 # options and unknown javac options.
@@ -59,7 +60,7 @@ elsif ( -e "@JAVAC@" )
     }
     else
     {
-	exec '@JAVAC@', $JAVAC_WARNINGS, @ARGV ;
+	exec '@JAVAC@', @javac_parms, @ARGV ;
     }
 }
 else
    
    
More information about the distro-pkg-dev
mailing list