[cp-patches] FYI: Make building the GJDoc parser optional
This patch makes generating the GJDoc parser with antlr optional in the same way as regenerating the headers (i.e. regeneration is turned on automatically, if they are not found during the configure run). ChangeLog: 2008-10-02 Andrew John Hughes [EMAIL PROTECTED] * configure.ac: Add regen-gjdoc-parser option, and separate antlr tests. * m4/ac_prog_antlr.m4: Turn single test into AC_LIB_ANTLR and AC_PROG_ANTLR. * m4/ac_prog_java.m4: Quote tests. * tools/Makefile.am: Support CREATE_GJDOC_PARSER option. -- Andrew :) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint = F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8 Index: configure.ac === RCS file: /sources/classpath/classpath/configure.ac,v retrieving revision 1.240 diff -u -u -r1.240 configure.ac --- configure.ac30 Sep 2008 00:53:23 - 1.240 +++ configure.ac5 Oct 2008 20:45:51 - @@ -312,8 +312,9 @@ ]) dnl --- -dnl Regenerate headers at build time (disabled by default) +dnl Regenerate headers at build time (enabled if not found) dnl --- +AC_MSG_CHECKING([whether to regenerate the headers]) AC_ARG_ENABLE([regen-headers], [AS_HELP_STRING(--enable-regen-headers,automatically regenerate JNI headers [default=yes if headers don't exist])], [case ${enableval} in @@ -321,13 +322,33 @@ no) REGENERATE_JNI_HEADERS=no ;; *) REGENERATE_JNI_HEADERS=yes ;; esac], - [if test -e include/java_lang_VMSystem.h; then + [if test -e ${srcdir}/include/java_lang_VMSystem.h; then REGENERATE_JNI_HEADERS=no ; else REGENERATE_JNI_HEADERS=yes ; fi]) +AC_MSG_RESULT(${REGENERATE_JNI_HEADERS}) AM_CONDITIONAL(CREATE_JNI_HEADERS, test x${REGENERATE_JNI_HEADERS} = xyes) +dnl +dnl Regenerate GJDoc parser at build time (enabled if not found) +dnl +AC_MSG_CHECKING([whether to regenerate the GJDoc parser]) +AC_ARG_ENABLE([regen-gjdoc-parser], + [AS_HELP_STRING(--enable-regen-gjdoc-parser,automatically regenerate the GJDoc parser [default=yes if generated source doesn't exist])], + [case ${enableval} in +yes) REGENERATE_GJDOC_PARSER=yes ;; +no) REGENERATE_GJDOC_PARSER=no ;; +*) REGENERATE_GJDOC_PARSER=yes ;; + esac], + [if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then + REGENERATE_GJDOC_PARSER=no ; + else + REGENERATE_GJDOC_PARSER=yes ; + fi]) +AC_MSG_RESULT(${REGENERATE_GJDOC_PARSER}) +AM_CONDITIONAL(CREATE_GJDOC_PARSER, test x${REGENERATE_GJDOC_PARSER} = xyes) + dnl --- dnl Enable tool wrapper binaries (disabled by default) dnl --- @@ -943,7 +964,10 @@ fi if test x${COMPILE_GJDOC} = xyes; then AC_PROG_JAVA -AC_PROG_ANTLR(2,7,1) +AC_LIB_ANTLR +if test x${REGENERATE_GJDOC_PARSER} = xyes; then + AC_PROG_ANTLR(2,7,1) +fi fi fi Index: m4/ac_prog_antlr.m4 === RCS file: /sources/classpath/classpath/m4/ac_prog_antlr.m4,v retrieving revision 1.3 diff -u -u -r1.3 ac_prog_antlr.m4 --- m4/ac_prog_antlr.m4 30 Sep 2008 01:10:19 - 1.3 +++ m4/ac_prog_antlr.m4 5 Oct 2008 20:45:59 - @@ -1,39 +1,24 @@ -AC_DEFUN([AC_PROG_ANTLR],[ +AC_DEFUN([AC_LIB_ANTLR],[ + AC_MSG_CHECKING([for the ANTLR parser generator JAR file]) if test -z $ANTLR_JAR; then - AC_REQUIRE([AC_PROG_JAVA])dnl - AC_MSG_CHECKING([for antlr $1.$2.$3 or better]) - for antlr_lib_home in `ls -d /usr/local/share/antlr* 2 /dev/null` /usr/share/antlr/lib /usr/share/java /usr/lib; do - antlr_version_str=`$JAVA -classpath $antlr_lib_home/antlr.jar antlr.Tool 21 | head -n 1 | sed '/.*Version */!d; s///;q'` - if test $antlr_version_str; then - antlr_version_regex='s/\([[[:digit:]]]\+\)\.\([[[:digit:]]]\+\)\.\([[[:digit:]]]\+\).*$/' - antlr_version_major=`echo $antlr_version_str | sed $antlr_version_regex\\1/` - antlr_version_minor=`echo $antlr_version_str | sed $antlr_version_regex\\2/` - antlr_version_micro=`echo $antlr_version_str | sed
[cp-testresults] FAIL: cacao build on Sun Oct 5 07:14:24 UTC 2008
^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:242: warning: . native int getInt(Object o) ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:243: error: Class or interface declaration expected. } ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:249: error: syntax error. private synchronized native MapClass? extends Annotation, Annotation declaredAnnotations(); ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:249: warning: . * @param o the object to get the value of this Field from ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:251: error: Class or interface declaration expected. } ^ ../../../cacao/src/classes/gnuclasspath/sun/misc/Unsafe.java:229: error: Invalid character '@' in input. @Deprecated ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: error: '{' expected. public final class ConstructorT ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: confused by earlier errors, bailing out make[3]: *** [vm.zip] Error 1 make[3]: Leaving directory `/home/cpdev/Nightly/cacao/build/src/classes' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/cpdev/Nightly/cacao/build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cpdev/Nightly/cacao/build' make: *** [all] Error 2 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
[cp-testresults] FAIL: regressions for mauve-gij on Sun Oct 5 09:34:59 UTC 2008
Baseline from: Wed Sep 10 15:30:54 UTC 2008 Regressions: FAIL: java.lang.Thread.sleep FAIL: java.lang.ref.PhantomReference.phantom FAIL: java.nio.channels.FileChannel.manyopen Totals: PASS: 2938 XPASS: 0 FAIL: 233 XFAIL: 0 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
[cp-testresults] FAIL: cacao build on Sun Oct 5 14:52:20 UTC 2008
^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:242: warning: . native int getInt(Object o) ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:243: error: Class or interface declaration expected. } ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:249: error: syntax error. private synchronized native MapClass? extends Annotation, Annotation declaredAnnotations(); ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:249: warning: . * @param o the object to get the value of this Field from ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:251: error: Class or interface declaration expected. } ^ ../../../cacao/src/classes/gnuclasspath/sun/misc/Unsafe.java:229: error: Invalid character '@' in input. @Deprecated ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: error: '{' expected. public final class ConstructorT ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: confused by earlier errors, bailing out make[3]: *** [vm.zip] Error 1 make[3]: Leaving directory `/home/cpdev/Nightly/cacao/build/src/classes' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/cpdev/Nightly/cacao/build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cpdev/Nightly/cacao/build' make: *** [all] Error 2 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
[cp-testresults] FAIL: regressions for mauve-jamvm on Sun Oct 5 15:54:24 UTC 2008
Baseline from: Sat Oct 4 16:42:15 UTC 2008 Regressions: FAIL: gnu.java.security.jce.TestOfHttps FAIL: java.lang.Thread.sleep Totals: PASS: 2950 XPASS: 0 FAIL: 204 XFAIL: 0 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
[cp-testresults] FAIL: regressions for mauve-gij on Sun Oct 5 16:53:41 UTC 2008
Baseline from: Wed Sep 10 15:30:54 UTC 2008 Regressions: FAIL: java.lang.Thread.sleep FAIL: java.lang.ref.PhantomReference.phantom FAIL: java.nio.channels.FileChannel.manyopen FAIL: java.util.logging.SocketHandler.getFilter Totals: PASS: 2937 XPASS: 0 FAIL: 234 XFAIL: 0 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
[cp-testresults] FAIL: cacao build on Sun Oct 5 22:37:20 UTC 2008
^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:242: warning: . native int getInt(Object o) ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:243: error: Class or interface declaration expected. } ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:249: error: syntax error. private synchronized native MapClass? extends Annotation, Annotation declaredAnnotations(); ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:249: warning: . * @param o the object to get the value of this Field from ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:251: error: Class or interface declaration expected. } ^ ../../../cacao/src/classes/gnuclasspath/sun/misc/Unsafe.java:229: error: Invalid character '@' in input. @Deprecated ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: error: '{' expected. public final class ConstructorT ^ ../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: confused by earlier errors, bailing out make[3]: *** [vm.zip] Error 1 make[3]: Leaving directory `/home/cpdev/Nightly/cacao/build/src/classes' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/cpdev/Nightly/cacao/build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cpdev/Nightly/cacao/build' make: *** [all] Error 2 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
[cp-testresults] FAIL: regressions for mauve-jamvm on Sun Oct 5 23:39:46 UTC 2008
Baseline from: Sat Oct 4 16:42:15 UTC 2008 Regressions: FAIL: gnu.java.security.jce.TestOfHttps Totals: PASS: 2951 XPASS: 0 FAIL: 203 XFAIL: 0 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
[cp-testresults] FAIL: regressions for mauve-gij on Mon Oct 6 00:37:11 UTC 2008
Baseline from: Wed Sep 10 15:30:54 UTC 2008 Regressions: FAIL: java.lang.ref.PhantomReference.phantom FAIL: java.nio.channels.FileChannel.manyopen FAIL: java.util.logging.SocketHandler.getFilter New fails: FAIL: java.util.Scanner.BigDecimalInteger Totals: PASS: 2938 XPASS: 0 FAIL: 234 XFAIL: 0 ___ Classpath-testresults mailing list Classpath-testresults@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-testresults
Re: org.w3c.dom.html2 package
Hi, On Sat, 2008-10-04 at 02:05 +0100, Andrew John Hughes wrote: 2008/10/4 Robert Schuster [EMAIL PROTECTED]: all the classes of the package org.w3c.dom.html2 in GNU Classpath are living in org.w3c.dom.html in OpenJDK. Now this is an odd thing and I wonder why this has never caused any troubles before. I can't compile xerces-j from source with that. If nobody objects I would like to move all classes to the right package. Aren't these in external? So presumably this is what upstream does... Indeed, that is somewhat odd. Look at external/w3c_dom/README for the upstream packages we import and how/which modifications are made (if any). If there are newer versions that match the openjdk setup then importing those versions would indeed be fine. I cannot immediately find a similar list of imports on the openjdk side. Maybe ask on [EMAIL PROTECTED] to find out the exact versions imported. Cheers, Mark
Problem in displaying swing components on ARM, using GNU Classpath and Cacao
Hi, We have a requirement of JVM on ARM Processor and Linux version-2.6. I have cross compiled the GNU Classpath(0.97.2) libs (using default options)and Cacao VM(0.99.2) and required libraries and ported. I am able to succesfully execute all simple programs and AWT programs. But when I am trying to execute a program containing swing components, the window is appearing - but the swing components(labels, buttons, text fields) are not visible. Some how if I have clicked on a button (random clicking), the action on that button is performing. To make the swing components visible,I have to keep any specific libraries on path? Thanks MVN PavanKumar /*modify anchor tag if href=mailto to open a webmailer window for writing mails*/ var anchor = document.getElementsByTagName(a); var aux ='|'; var r = mailto:([^ \']+); var regexformailto = new RegExp(r,i); var link_replacer = document.getElementById('link_replacer').childNodes[0].getAttribute(href); for(i=0;i 0){ //set new href aux = link_replacer.replace(__address__,match[1]); aux = aux.replace(/mailContent/g,mailDetail); //set href var inHTML = anchor[i].innerHTML; anchor[i].setAttribute(href,aux); anchor[i].innerHTML = inHTML; //set onclick aux = document.getElementById('link_replacer').childNodes[0].getAttribute(onclick); anchor[i].setAttribute(onclick,aux); anchor[i].onclick = aux; } } Thanks MVN Pavankumar Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/
Re: Problem in displaying swing components on ARM, using GNU Classpath and Cacao
Il giorno ven, 03/10/2008 alle 17.32 +0530, Pavan Kumar Maddali ha scritto: To make the swing components visible, Does I have to keep any specific libraries on path or I have to set any environment variables or provide runtime parameters ? Thanks in Adavance. Hi! Are you trying to display a swing widget on top of an awt one? What swing peer are you running? Does your program works correctly with the same version of GNU Classpath on a x86 Linux machine? Cheers, Mario
[commit-cp] classpath ChangeLog configure.ac m4/ac_prog_ant...
CVSROOT:/sources/classpath Module name:classpath Changes by: Andrew John Hughes gnu_andrew 08/10/05 21:19:19 Modified files: . : ChangeLog configure.ac m4 : ac_prog_antlr.m4 ac_prog_java.m4 tools : Makefile.am Log message: Add -regen-gjdoc-parser option. 2008-10-02 Andrew John Hughes [EMAIL PROTECTED] * configure.ac: Add regen-gjdoc-parser option, and separate antlr tests. * m4/ac_prog_antlr.m4: Turn single test into AC_LIB_ANTLR and AC_PROG_ANTLR. * m4/ac_prog_java.m4: Quote tests. * tools/Makefile.am: Support CREATE_GJDOC_PARSER option. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpathr1=1.9727r2=1.9728 http://cvs.savannah.gnu.org/viewcvs/classpath/configure.ac?cvsroot=classpathr1=1.240r2=1.241 http://cvs.savannah.gnu.org/viewcvs/classpath/m4/ac_prog_antlr.m4?cvsroot=classpathr1=1.3r2=1.4 http://cvs.savannah.gnu.org/viewcvs/classpath/m4/ac_prog_java.m4?cvsroot=classpathr1=1.2r2=1.3 http://cvs.savannah.gnu.org/viewcvs/classpath/tools/Makefile.am?cvsroot=classpathr1=1.57r2=1.58