Re: [kaffe] xalan-2.6.0 fails to compile with kaffe-1.1.6
Hi Joshua, Joshua Nichols wrote: > I can't seem to get xalan-2.6.0 to compile with kaffe-1.1.6. I believe > it is the same cause of the compile errors I was gettingxerces-2.6.2 > which I posted earlier (but seems to need moderation). I used a > pastebin service, so hopefully the log will be around: > > http://pastebin.com/369659 The build fails due to the fact that kaffe and also GNU classpath ships with DOM Level 3 interfaces. However xalan (at least this version) is only able to compile against DOM Level 2 interfaces. As JDK 1.4 has only DOM Level 2 it succeeds however kaffe or other gnu classpath derived vms will fail. There are two workarounds: - if you have ant < 1.6.3: copy dom level 2 sources for compilation into your source path. they will take precedence over the runtime ones during compilation. afterwards remove them. - if you have ant >= 1.6.3: you have to use the bootclasspath option with the javac task and jikes. This means you can prepend a jar from a dom level 2 package in the compile bootclasspath. Regards, Wolfgang ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kopi download site
Thanks for releasing 1.1.6! Dalibor wrote: >Oh, awesome! Do you time to visit in Saarbruecken or hop over to the GNU >Classpath DevJam in Oldenburg this weekend? Well, this time, I don't have enough time to visit Saarbruecken or Oldenburg... And anyway, I will become fully contaminated by good beer ;-) > reports and god suggestions from distributions and users that warrant a ^^^ Oh, wellcome new member, the God :-) Kiyo ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] xalan-2.6.0 fails to compile with kaffe-1.1.6
I can't seem to get xalan-2.6.0 to compile with kaffe-1.1.6. I believe it is the same cause of the compile errors I was gettingxerces-2.6.2 which I posted earlier (but seems to need moderation). I used a pastebin service, so hopefully the log will be around: http://pastebin.com/369659 - Josh Nichols ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: swing, and various fixes
PatchSet 6925 Date: 2005/09/21 03:18:46 Author: robilad Branch: HEAD Tag: (none) Log: Resynced with GNU Classpath: swing, and various fixes Members: ChangeLog:1.4447->1.4448 libraries/clib/classpath/jcl.c:1.6->1.7 libraries/javalib/all.files:1.165->1.166 libraries/javalib/gnu/java/security/PolicyFile.java:1.9->1.10 libraries/javalib/java/awt/Container.java:1.43->1.44 libraries/javalib/java/io/ObjectInputStream.java:1.59->1.60 libraries/javalib/java/io/ObjectStreamClass.java:1.33->1.34 libraries/javalib/java/io/PrintWriter.java:1.10->1.11 libraries/javalib/java/lang/Boolean.java:1.17->1.18 libraries/javalib/java/lang/Byte.java:1.19->1.20 libraries/javalib/java/lang/Character.java:1.28->1.29 libraries/javalib/java/lang/Double.java:1.24->1.25 libraries/javalib/java/lang/Float.java:1.24->1.25 libraries/javalib/java/lang/Long.java:1.23->1.24 libraries/javalib/java/lang/Short.java:1.14->1.15 libraries/javalib/java/lang/String.java:1.49->1.50 libraries/javalib/java/lang/StringBuffer.java:1.31->1.32 libraries/javalib/java/net/URLClassLoader.java:1.30->1.31 libraries/javalib/java/nio/charset/Charset.java:1.19->1.20 libraries/javalib/java/security/Security.java:1.22->1.23 libraries/javalib/java/text/ParsePosition.java:1.9->1.10 libraries/javalib/java/text/RuleBasedCollator.java:1.27->1.28 libraries/javalib/java/text/StringCharacterIterator.java:1.18->1.19 libraries/javalib/java/util/Timer.java:1.11->1.12 libraries/javalib/java/util/logging/LoggingPermission.java:1.3->1.4 libraries/javalib/java/util/prefs/Preferences.java:1.8->1.9 libraries/javalib/javax/swing/JFileChooser.java:1.10->1.11 libraries/javalib/javax/swing/JTree.java:1.29->1.30 libraries/javalib/javax/swing/ProgressMonitor.java:1.3->1.4 libraries/javalib/javax/swing/ProgressMonitorInputStream.java:1.4->1.5 libraries/javalib/javax/swing/Timer.java:1.11->1.12 libraries/javalib/javax/swing/filechooser/FileSystemView.java:1.5->1.6 libraries/javalib/javax/swing/plaf/basic/BasicComboBoxRenderer.java:1.5->1.6 libraries/javalib/javax/swing/plaf/basic/BasicComboBoxUI.java:1.11->1.12 libraries/javalib/javax/swing/plaf/basic/BasicLookAndFeel.java:1.27->1.28 libraries/javalib/javax/swing/plaf/basic/BasicMenuItemUI.java:1.13->1.14 libraries/javalib/javax/swing/plaf/metal/MetalComboBoxEditor.java:INITIAL->1.1 libraries/javalib/org/ietf/jgss/GSSException.java:1.5->1.6 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.4447 kaffe/ChangeLog:1.4448 --- kaffe/ChangeLog:1.4447 Wed Sep 21 01:42:06 2005 +++ kaffe/ChangeLog Wed Sep 21 03:18:46 2005 @@ -1,5 +1,348 @@ 2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> + Resynced with GNU Classpath. + + 2005-09-18 Tom Tromey <[EMAIL PROTECTED]> + +* java/util/Timer.java (TaskQueue.purge): New method. +(Timer(String)): New constructor. +(Timer(String,boolean)): Likewise. +(purge): New method. + + 2005-09-18 Tom Tromey <[EMAIL PROTECTED]> + +* java/lang/Short.java (valueOf): New method. +* java/lang/Double.java (valueOf): New method. +* java/lang/Float.java (valueOf): New method. + + 2005-09-18 Tom Tromey <[EMAIL PROTECTED]> + +* java/lang/Long.java (reverse): Correctly handle sign extension. + + 2005-09-18 David Gilbert <[EMAIL PROTECTED]> + +* javax/swing/plaf/basic/BasicComboBoxUI.java +(installComponents): remove listBox color settings, +* javax/swing/plaf/basic/BasicLookAndFeel.java +(initComponentDefaults): corrected ComboBox and ListBox defaults. + + 2005-09-18 David Gilbert <[EMAIL PROTECTED]> + +* javax/swing/plaf/basic/BasicComboBoxRenderer.java +(BasicComboBoxRenderer): set no focus border, +(getListCellRendererComponent): set background color if cell has focus, +removed border switching code. + + 2005-09-18 David Gilbert <[EMAIL PROTECTED]> + +* javax/swing/plaf/basic/BasicComboBoxUI.java +(borderInsets): deleted, +(arrowButtonWidth): deleted, +(configureEditor): set font, +(isFocusTraversable): set to true for non-editable combobox, +(paint): deleted border painting code, +(paintBorder): deleted, +(getPreferredSize): returns a value, not null, +(getMinimumSize): likewise, +(getMaximumSize): likewise, +(rectangleForCurrentValue): reimplemented, +(paintCurrentValue): no longer adjusts for border insets, +(getDisplaySize): update maximum width and height independently, +(ComboBoxLayoutManager): removed redundant 'extends Object', +(ComboBoxLayoutManager.preferredLayoutSize):
Re: [kaffe] tools.jar in classpath again
Daniel Bonniot wrote: Hi, Currently, jre/lib/tools.jar is automatically added in the bootclasspath in kaffe's startup script. This is problematic for programs that include other versions of packages contained in tools.jar (for instance gnu.bytecode). Thanks for the bug report, Daniel. Sorry for reintroducing the bug again. I've renamed the gnu.bytecode package in kaffe used by javap to gnu.bytecodecvssnap, which fixes nice 0.9.11 bootstrap for me (until wget fails because of some SSL certificate error with dev.java.net) --20:53:49-- https://javacc.dev.java.net/files/documents/17/686/javacc-3.2.zip => `/home/dalibor/great-stuff/nice-0.9.11.orig/external/javacc-3.2.zip' Resolving javacc.dev.java.net... 64.125.133.206 Connecting to javacc.dev.java.net|64.125.133.206|:443... connected. ERROR: Certificate verification error for javacc.dev.java.net: unable to get local issuer certificate To connect to javacc.dev.java.net insecurely, use `--no-check-certificate'. Unable to establish SSL connection. Archive: javacc-3.2.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of javacc-3.2.zip or javacc-3.2.zip.zip, and cannot find javacc-3.2.zip.ZIP, period. java.lang.ClassNotFoundException: javacc not found in java.lang.ClassLoader$1{urls=[file:/home/dalibor/great-stuff/nice-0.9.11.orig/external/javacc.jar], parent=null} caused by: make[1]: *** [src/bossa/parser/Parser.java] Error 1 make[1]: Leaving directory `/home/dalibor/great-stuff/nice-0.9.11.orig' make: *** [src/nice/tools/compiler/console.jar] Error 2 Cheers for 1.1.6, thanks! and i hope to follow up with a better, nice-friendlier 1.1.7 soon ;) cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] libreadline-java fails to compile with kaffe-1.1.5: can't find java.lang.Object
Salutations, I'm playing around with kaffe to use it to build packages for Gentoo Linux. I'm experiencing some problems finding java.lang.Object for libreadline-java, but I would imagine other packages have the same problem: cd src ; make JAVAC="javac" JC_FLAGS="" java make[1]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' javac -d ../build `find . -name "*.java"` make[1]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' cd ./build ; jar -cvmf ../etc/manifest.stub ../libreadline-java.jar * added manifest adding: org/ (in=0) (out=0) (stored 0%) adding: org/gnu/ (in=0) (out=0) (stored 0%) adding: org/gnu/readline/ (in=0) (out=0) (stored 0%) adding: org/gnu/readline/ReadlineReader.class (in=2942) (out=1505) (deflated 51%) adding: org/gnu/readline/Readline.class (in=5156) (out=2270) (deflated 44%) adding: org/gnu/readline/ReadlineCompleter.class (in=194) (out=138) (deflated 71%) adding: org/gnu/readline/ReadlineLibrary.class (in=976) (out=540) (deflated 55%)adding: test/ (in=0) (out=0) (stored 0%) adding: test/ReadlineTest.class (in=2254) (out=1275) (deflated 57%) adding: test/TestCompleter.class (in=535) (out=362) (deflated 68%) cd src; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/kaffe-1.1.5/include" \ JAVANATINC="/opt/kaffe-1.1.5/include/linux" native make[1]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' cd native ; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/kaffe-1.1.5/include" \ JAVANATINC="/opt/kaffe-1.1.5/include/linux" all make[2]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native' make TG=JavaReadline lib make[3]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native' javah -classpath ../../build -jni org.gnu.readline.Readline Failed to open object 'java/lang/Object' make[3]: *** [org_gnu_readline_Readline.h] Error 1 make[3]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native' make[2]: *** [JavaReadline] Error 2 make[2]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native' make[1]: *** [native] Error 2 make[1]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' make: *** [build-native] Error 2 Regards, Joshua Nichols nichoj on #gentoo-java ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] CVS kaffe (robilad): moved classes from gnu.bytecode to gnu.bytecodecvssnap to fix Nice bootstrap
PatchSet 6924 Date: 2005/09/21 01:42:06 Author: robilad Branch: HEAD Tag: (none) Log: moved classes from gnu.bytecode to gnu.bytecodecvssnap to fix Nice bootstrap Members: ChangeLog:1.4446->1.4447 libraries/javalib/Makefile.am:1.394->1.395 libraries/javalib/Makefile.am.in:1.48->1.49 libraries/javalib/Makefile.in:1.486->1.487 libraries/javalib/all.files:1.164->1.165 libraries/javalib/gnu/bytecode/Access.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/ArrayClassLoader.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/ArrayType.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/AttrContainer.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Attribute.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/ClassFileInput.java:1.2->1.3(DEAD) libraries/javalib/gnu/bytecode/ClassType.java:1.2->1.3(DEAD) libraries/javalib/gnu/bytecode/ClassTypeWriter.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CodeAttr.java:1.2->1.3(DEAD) libraries/javalib/gnu/bytecode/ConstantPool.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/ConstantValueAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolClass.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolEntry.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolFloat.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolNameAndType.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolRef.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolString.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolUtf8.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolValue1.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/CpoolValue2.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/ExceptionsAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Field.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Filter.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/IfState.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/InnerClassesAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Label.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/LineNumbersAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/LocalVarsAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Location.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Method.java:1.2->1.3(DEAD) libraries/javalib/gnu/bytecode/MiscAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/ObjectType.java:1.2->1.3(DEAD) libraries/javalib/gnu/bytecode/PrimType.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Scope.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/SourceDebugExtAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/SourceFileAttr.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/SwitchState.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/TryState.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Type.java:1.2->1.3(DEAD) libraries/javalib/gnu/bytecode/VarEnumerator.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/Variable.java:1.2->1.3(DEAD) libraries/javalib/gnu/bytecode/ZipArchive.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/ZipLoader.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/dump.java:1.1->1.2(DEAD) libraries/javalib/gnu/bytecode/package.html:1.1->1.2(DEAD) libraries/javalib/gnu/bytecodecvssnap/Access.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/ArrayClassLoader.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/ArrayType.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/AttrContainer.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/Attribute.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/ClassFileInput.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/ClassType.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/ClassTypeWriter.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CodeAttr.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/ConstantPool.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/ConstantValueAttr.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CpoolClass.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CpoolEntry.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CpoolFloat.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CpoolNameAndType.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CpoolRef.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CpoolString.java:INITIAL->1.1 libraries/javalib/gnu/bytecodecvssnap/CpoolUtf8.java:IN
Re: [kaffe] strange problem - jvm exits with OutOfMemoryError
> the exact command i used is > > /home/siddharth/kaffe-1.1.5/bin/java -Xms32m -Xmx32m loop > > The VM exits with OutofMemory with following error message > > "Throwing OutOfMemoryError is not implemented in Boehm-GC. > Aborted" In my case, the program ended normally. ... >>9995 >>9996 >>9997 >>9998 $ Kaffe version: Engine: Just-in-time v3 Version: 1.1.x-cvs Java Version: 1.4 Heap defaults: minimum size: 5 MB, maximum size: 64 MB Stack default size: 256 KB Configuration/Compilation options: ) Compile date : Mon Jul 4 10:00:20 JST 2005 Install prefix : /usr/local/kaffe Thread system: unix-pthreads Garbage Collector: kaffe-gc CC : gcc CFLAGS : -g -O2 -Wall -pthread -DENABLE_BINRELOC LDFLAGS : ChangeLog head : 2005-06-29 Guilhem Lavaux <[EMAIL PROTECTED]> OS: Linux 2.4.18-3 ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] CVS kaffe (robilad): Updated gnu.bytecode snapshot to latest version
PatchSet 6923 Date: 2005/09/20 23:07:23 Author: robilad Branch: HEAD Tag: (none) Log: Updated gnu.bytecode snapshot to latest version Members: ChangeLog:1.4445->1.4446 libraries/javalib/gnu/bytecode/ClassFileInput.java:1.1->1.2 libraries/javalib/gnu/bytecode/ClassType.java:1.1->1.2 libraries/javalib/gnu/bytecode/CodeAttr.java:1.1->1.2 libraries/javalib/gnu/bytecode/Method.java:1.1->1.2 libraries/javalib/gnu/bytecode/ObjectType.java:1.1->1.2 libraries/javalib/gnu/bytecode/Type.java:1.1->1.2 libraries/javalib/gnu/bytecode/Variable.java:1.1->1.2 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.4445 kaffe/ChangeLog:1.4446 --- kaffe/ChangeLog:1.4445 Tue Sep 20 21:44:38 2005 +++ kaffe/ChangeLog Tue Sep 20 23:07:23 2005 @@ -1,5 +1,16 @@ 2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> + * libraries/javalib/gnu/bytecode/ClassFileInput.java, + libraries/javalib/gnu/bytecode/ClassType.java, + libraries/javalib/gnu/bytecode/CodeAttr.java, + libraries/javalib/gnu/bytecode/Method.java, + libraries/javalib/gnu/bytecode/ObjectType.java, + libraries/javalib/gnu/bytecode/Type.java, + libraries/javalib/gnu/bytecode/Variable.java: + Updated to latest version from Kawa. + +2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> + * configure.ac: Check for libgif if libungif is not found. It's a different name for the library, apparently. Index: kaffe/libraries/javalib/gnu/bytecode/ClassFileInput.java diff -u kaffe/libraries/javalib/gnu/bytecode/ClassFileInput.java:1.1 kaffe/libraries/javalib/gnu/bytecode/ClassFileInput.java:1.2 --- kaffe/libraries/javalib/gnu/bytecode/ClassFileInput.java:1.1Thu Mar 3 18:55:56 2005 +++ kaffe/libraries/javalib/gnu/bytecode/ClassFileInput.javaTue Sep 20 23:07:27 2005 @@ -209,9 +209,9 @@ Method method = attr.getMethod(); if (attr.parameter_scope == null) attr.parameter_scope = method.pushScope(); - if (attr.parameter_scope.end == null) - attr.parameter_scope.end = new Label(code.PC); Scope scope = attr.parameter_scope; + if (scope.end == null) + scope.end = new Label(code.PC); ConstantPool constants = method.getConstants(); int count = readUnsignedShort(); int prev_start = scope.start.position; Index: kaffe/libraries/javalib/gnu/bytecode/ClassType.java diff -u kaffe/libraries/javalib/gnu/bytecode/ClassType.java:1.1 kaffe/libraries/javalib/gnu/bytecode/ClassType.java:1.2 --- kaffe/libraries/javalib/gnu/bytecode/ClassType.java:1.1 Thu Mar 3 18:55:56 2005 +++ kaffe/libraries/javalib/gnu/bytecode/ClassType.java Tue Sep 20 23:07:27 2005 @@ -179,7 +179,7 @@ * @return the interfaces this class is declared to implement * (not those inherited from its superclass/superinterfaces). */ - public ClassType[] getInterfaces() + public synchronized ClassType[] getInterfaces() { if (interfaces == null && (flags & EXISTING_CLASS) != 0 && getReflectClass() != null) @@ -416,6 +416,20 @@ Method meth = addMethod(name, flags); meth.setSignature(signature); return meth; + } + + /** Add a method to this ClassType. +* If an existing method matches, return that. Otherwise, create +* a new one. */ + public Method getMethod (java.lang.reflect.Method method) + { +String name = method.getName(); +Class[] parameterClasses = method.getParameterTypes(); +Type[] parameterTypes = new Type[parameterClasses.length]; +for (int i = parameterClasses.length; --i >= 0; ) + parameterTypes[i] = Type.make(parameterClasses[i]); +return addMethod(name, method.getModifiers(), + parameterTypes, Type.make(method.getReturnType())); } public final synchronized Method getDeclaredMethods() Index: kaffe/libraries/javalib/gnu/bytecode/CodeAttr.java diff -u kaffe/libraries/javalib/gnu/bytecode/CodeAttr.java:1.1 kaffe/libraries/javalib/gnu/bytecode/CodeAttr.java:1.2 --- kaffe/libraries/javalib/gnu/bytecode/CodeAttr.java:1.1 Thu Mar 3 18:55:56 2005 +++ kaffe/libraries/javalib/gnu/bytecode/CodeAttr.java Tue Sep 20 23:07:27 2005 @@ -501,7 +501,7 @@ Scope scope = new Scope (); if (locals == null) locals = new LocalVarsAttr(getMethod()); -locals.enterScope(scope); +enterScope(scope); if (locals.parameter_scope == null) locals.parameter_scope = scope; return scope; @@ -1947,18 +1947,14 @@ public void emitTryStart(boolean has_finally, Type result_type) { -TryState try_state = new TryState(this); if (result_type != null && result_type.isVoid()) result_type = null; +Variable[] savedStack = null; if (result_type != null || SP > 0) - { - pushScope(); - if (result_type != null) - try_state.saved_result = addLocal(result_type); - } + pushScope(); if (SP > 0) { - Variable[]
[kaffe] CVS kaffe (robilad): Check for libgif if libungif is not found
PatchSet 6922 Date: 2005/09/20 21:44:38 Author: robilad Branch: HEAD Tag: (none) Log: Check for libgif if libungif is not found 2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> * configure.ac: Check for libgif if libungif is not found. It's a different name for the library, apparently. Reported by: Riccardo Mottola <[EMAIL PROTECTED]> Members: ChangeLog:1.->1.4445 configure:1.491->1.492 configure.ac:1.172->1.173 config/config.h.in:1.152->1.153 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1. kaffe/ChangeLog:1.4445 --- kaffe/ChangeLog:1. Tue Sep 20 19:53:41 2005 +++ kaffe/ChangeLog Tue Sep 20 21:44:38 2005 @@ -1,5 +1,12 @@ 2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> + * configure.ac: Check for libgif if libungif is not found. + It's a different name for the library, apparently. + + Reported by: Riccardo Mottola <[EMAIL PROTECTED]> + +2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> + * FAQ/FAQ.classlibrary-compile: Added information on how to obtain Kaffe's patched kjc's source code. Index: kaffe/configure diff -u kaffe/configure:1.491 kaffe/configure:1.492 --- kaffe/configure:1.491 Tue Sep 20 02:17:28 2005 +++ kaffe/configure Tue Sep 20 21:44:42 2005 @@ -46574,6 +46574,88 @@ GIF_LIBS=`echo "$LIBS" | sed "s% $KSAVE_LIBS$%%"` LIBS="$KSAVE_LIBS" + # If libungif can not be found, check for libgif + if test x"$ac_cv_lib_ungif_DGifOpen" != x"yes"; then +KSAVE_LIBS="$LIBS" +LIBS="$GIF_LIBS $KSAVE_LIBS" + +echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5 +echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6 +if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgif $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char DGifOpen (); +int +main () +{ +DGifOpen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && +{ ac_try='test -z "$ac_c_werror_flag" +|| test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && +{ ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_gif_DGifOpen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_gif_DGifOpen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5 +echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6 +if test $ac_cv_lib_gif_DGifOpen = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGIF 1 +_ACEOF + + LIBS="-lgif $LIBS" + +fi + +GIF_LIBS=`echo "$LIBS" | sed "s% $KSAVE_LIBS$%%"` +LIBS="$KSAVE_LIBS" + + fi fi LIBS=$OLIBS Index: kaffe/configure.ac diff -u kaffe/configure.ac:1.172 kaffe/configure.ac:1.173 --- kaffe/configure.ac:1.172Tue Sep 20 02:17:29 2005 +++ kaffe/configure.ac Tue Sep 20 21:44:50 2005 @@ -1715,6 +1715,10 @@ if test x"$kaffe_cv_gif_lib_version" = x"yes"; then AC_DEFINE(HAVE_GIF_LIB_H, 1, [Do we have the right version of libungif]) AC_CHECK_LIBRARY(ungif,DGifOpen,GIF_LIBS) + # If libungif can not be found, check for libgif + if test x"$ac_cv_lib_ungif_DGifOpen" != x"yes"; then +AC_CHECK_LIBRARY(gif,DGifOpen,GIF_LIBS) + fi fi LIBS=$OLIBS Index: kaffe/config/config.h.in diff -u kaffe/config/config.h.in:1.152 kaffe/config/config.h.in:1.153 --- kaffe/config/config.h.in:1.152 Thu Sep 15 03:35:48 2005 +++ kaffe/config/config.h.inTue Sep 20 21:44:50 2005 @@ -275,6 +275,9 @@ /* Define to 1 if you have the `gcc' library (-lgcc). */ #undef HAVE_LIBGCC +/* Define to 1 if you have the `gif' library (-lgif). */ +#undef HAVE_LIBGIF + /* Define to 1 if you have the `jpeg' library (-ljpeg). */ #undef HAVE_LIBJPEG ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo
[kaffe] CVS kaffe (robilad): Added information on Kaffe's KJC
PatchSet 6921 Date: 2005/09/20 19:53:41 Author: robilad Branch: HEAD Tag: (none) Log: Added information on Kaffe's KJC Members: ChangeLog:1.4443->1. FAQ/FAQ.classlibrary-compile:1.22->1.23 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.4443 kaffe/ChangeLog:1. --- kaffe/ChangeLog:1.4443 Tue Sep 20 02:17:27 2005 +++ kaffe/ChangeLog Tue Sep 20 19:53:41 2005 @@ -1,5 +1,13 @@ 2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> + * FAQ/FAQ.classlibrary-compile: + Added information on how to obtain Kaffe's patched kjc's + source code. + + Reported by: Kiyo Inaba <[EMAIL PROTECTED]> + +2005-09-20 Dalibor Topic <[EMAIL PROTECTED]> + * README, RELEASE-NOTES, WHATSNEW, Index: kaffe/FAQ/FAQ.classlibrary-compile diff -u kaffe/FAQ/FAQ.classlibrary-compile:1.22 kaffe/FAQ/FAQ.classlibrary-compile:1.23 --- kaffe/FAQ/FAQ.classlibrary-compile:1.22 Fri Sep 16 20:54:39 2005 +++ kaffe/FAQ/FAQ.classlibrary-compile Tue Sep 20 19:53:44 2005 @@ -116,6 +116,13 @@ http://www.dms.at/kopi/kjc.html +Kaffe used to ship a patched version of kjc 2.1B. That version is still +available in source code form from the kjc module in kaffe's CVS. See + + http://www.kaffe.org/anoncvs.shtml + +for details on how to check it out. + * javac Sun's javac compiler from JDK 1.3 - JDK 1.5 works as well. You have ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] tools.jar in classpath again
Hi, Currently, jre/lib/tools.jar is automatically added in the bootclasspath in kaffe's startup script. This is problematic for programs that include other versions of packages contained in tools.jar (for instance gnu.bytecode). Cheers for 1.1.6, Daniel ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kopi download site
Kiyo Inaba wrote: Hi Dalibor, BTW, I am now in Munchen ;-) Oh, awesome! Do you time to visit in Saarbruecken or hop over to the GNU Classpath DevJam in Oldenburg this weekend? It's fine for me, or actually that's what I do. What I am interested right now, is aren't there someone who try to download kjc from kopi developers according to the FAQ. Just for the preparation of 1.1.6. Sorry that it didn't make 1.1.6, as I had tagged, branched and prepared the tarball last night, and just waited for jim to officially announce it. ;( I've updated the docs now in CVS head, so they'll be better in 1.1.7. I hope to have a 1.1.7 ready very soon, as I've received various bug reports and god suggestions from distributions and users that warrant a quick release. cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Kaffe 1.1.6 "Development" Release available for download
I've made the 1.1.6 release of Kaffe available for download at: ftp://ftp.kaffe.org/pub/kaffe/v1.1.x-development/kaffe-1.1.6.tar.gz http://www.kaffe.org/ftp/pub/kaffe/v1.1.x-development/kaffe-1.1.6.tar.gz Much thanks goes to Dalibor Topic for running the project for the last 6 months and putting this release together! Here are the RELEASE-NOTES: Release Notes for 1.1.6 === Release 1.1.6 of Kaffe is a "development" release. It has been tested, but not as thoroughly as a production release would be. It contains major improvements over 1.1.5, which was released six months ago. I anticipate that most people will have less trouble with this release, and more fun. Please check the WHATSNEW file to see what has been added in this release. Bug reports, comments and patches are always welcome -- send them to the team at [EMAIL PROTECTED] Platform Specific Notes === * PowerPC An PowerPC jitter has been contributed by Tim Stack. It still needs some effort to make sure it passes the regression tests. Volunteers would be very welcome. If you don't want to hack on the PowerPC jit, and just want to use the interpreter, please make sure that you pass the option --with-engine=intrp to Kaffe's configure script. * ARM Jiri has reported some success using the libffi, rather than using Kaffe's own FFI interfaces, so you should pass --with-libffi to Kaffe's configure script on ARM. Check the mailing list information for more details. The Kaffe Team would enjoy having a dedicated ARM hacker to make the ARM jitter shine again. * MIPS(EL) The jit3 implementation needs some more work. Casey Marshall and Kevin Kissel have looked into it. A MIPS hacker who would enjoy bringing the jit up to speed would be very appreciated. If you are just interested in running applications on a MIPS(EL) board on Kaffe instead of hacking on the jit please pass the option --with-engine=intrp to Kaffe's configure script. How to help === We would appreciate your help in making Kaffe better, faster, and nicer. As a collaborative Free Software project, Kaffe only gets to be as good as its users and developers make it. If you want to track Kaffe development, and become a part of the Kaffe community please join the Kaffe mailing list. Instructions for joining the list are available at http://www.kaffe.org/mailinglists.shtml A lot of informal communication between developers and users happens on IRC, on the #kaffe channel on irc.freenode.org. It's a friendly channel where someone may help you debug or port Kaffe, if you need hands on help. If you have looked at Sun's J2SE source code, or signed NDAs that would prevent you from contributing to Kaffe, we can not take source code contributions from you. Otherwise, you're most welcome to send in patches to the Kaffe mailing list at [EMAIL PROTECTED] An easy project to get yourself familiar with the source code base are cleaning up the compiler warnings on your platform. Every patch is welcome, and appreciated, no matter how small. If Kaffe doesn't pass all regression tests executed by 'make check' on your platform of choice under your desired configuration, patches to fix the regression failures would also be very appreciated. We won't ask you for copyright assignment. If you contribute patches to code coming from other projects, then you should also send your patches 'upstream' to those projects, beside contributing it to Kaffe, so that all users of those upstream projects can benefit from your work. A particularly important upstream project for Kaffe is GNU Classpath, which provides the core class libraries. Even if Kaffe doesn't meat your needs, you are likely to find another Free Software runtime among the GNU Classpath family that suits your needs better. A list of such runtimes is available at http://www.gnu.org/software/classpath/stories.html#jvm If you are not interested in hacking Kaffe, but want to hack on GNU Classpath instead, Kaffe provides a quick, efficient way to get yourself up and running with the latest GNU Classpath code and have a working development environment 'out of the box'. While not 100% merged with GNU Classpath yet, Kaffe follows for the 99% of the merged classes the developments in the GNU Classpath CVS regularly in its CVS head, and a script exists in the developers directory to make keeping in sync with GNU Classpath as simple as possible. Future Plans Check out the TODO file for a list of things that are planned. Among other things, it is planed to fully switch Kaffe over to use GNU Classpath out of the box. Help to complete that task faster would be very welcome. After making Kaffe the integration melting pot for class library components, it would be quite interesting to make Kaffe an integration test bed for runtime components as well. If you are looking for an interesting contribution to make to the core VM, you may want to help with merging in the new JIT engine, the merge of
[kaffe] gif/ungif library
Hello, kaffe should also work against the gif library and not only ungif. This is what gentoo ships in the current unstable for example, after all the patents expired. It should be a matter of using -lgif instead of -lungif... cheers, Riccardo ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kopi download site
Hi Dalibor, BTW, I am now in Munchen ;-) >> But I noticed kopi (or kjc) can not be downloaded as >> mentioned in the FAQ. Is it just temporary or not? > >I haven't seen an announcement of a migration of KOPI yet, so I'd assume >that it's temporary. I've heard that KOPI developers were working on >jacks tests for 1.5 features in mauve, so I'd assume that KOPI >development is going on. > >Meanwhile, you can get the last version of kjc as it was used in Kaffe >(with patches from Guilhem & Ito) from the kjc module in Kaffe's CVS. It's fine for me, or actually that's what I do. What I am interested right now, is aren't there someone who try to download kjc from kopi developers according to the FAQ. Just for the preparation of 1.1.6. Kiyo ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] kopi download site
Kiyo Inaba wrote: Hi, Thanks to mention so many different types of java compiler can be used for bootup kaffe. Hi Kiyo, I tried several compilers out since different distributions ship with different compilers, and I wanted to give the upcoming gcjx a try, as it's being actively maintained by Tom Tromey from gcj, and he's been very responsive to my bug reports. Jikes 1.22 seems to be somewhat unmaintained these days, with IBM appearing to be putting most of their work into ecj. gcj is seeing a lot of maintainance work as well, but I am sure that Tom would be more than happy to switch over to gcjx as soon as he can, so gcjx is the compiler I am watching most closely atm. Current status is that all except two regression tests pass on x86-linux when rt.jar is compiled with gcjx from CVS head, with the two tests failing due to gcjx getting line numbers wrong. But I noticed kopi (or kjc) can not be downloaded as mentioned in the FAQ. Is it just temporary or not? I haven't seen an announcement of a migration of KOPI yet, so I'd assume that it's temporary. I've heard that KOPI developers were working on jacks tests for 1.5 features in mauve, so I'd assume that KOPI development is going on. Meanwhile, you can get the last version of kjc as it was used in Kaffe (with patches from Guilhem & Ito) from the kjc module in Kaffe's CVS. cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Running JOnAS (head, 4.6) on Kaffe (head, 1.1.6)
Dalibor Topic wrote: > In file conf/jonas.properties, one needs to remove ear services from > jonas.services, since they do not work yet, due to an odd issue with jar > url connections. So one need to set jonas.services to > > jonas.servicesregistry,jmx,jtm,db,dbm,security,resource,ejb,ws,web Is that the same bug as the one I fixed in [1]? If so, the patch attached with [1] would help. Rei [1] http://www.kaffe.org/pipermail/kaffe/2005-April/102100.html ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] kopi download site
Hi, Thanks to mention so many different types of java compiler can be used for bootup kaffe. But I noticed kopi (or kjc) can not be downloaded as mentioned in the FAQ. Is it just temporary or not? Kiyo ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] strange problem - jvm exits with OutOfMemoryError
Hi, I was running this simple program on kaffe --- public class loop { public static void main(String args[]) { long l = 0; for(l = 0 ; l < ; l++) { System.out.println(">>"+l); } } } --- the exact command i used is /home/siddharth/kaffe-1.1.5/bin/java -Xms32m -Xmx32m loop The VM exits with OutofMemory with following error message "Throwing OutOfMemoryError is not implemented in Boehm-GC. Aborted" It could never complete the loop of :( Any hints about what is the issue ? Thanks, ~ Siddharth ~ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe