Re: J2SE compliant RE for Arm Linux

2007-06-28 Thread Andrew Haley
Tom Tromey writes: Søren == Søren Boll Overgaard [EMAIL PROTECTED] writes: Kinda old thread, but wanted to clear this up... Søren So far, none of the the platforms I've been looking at (except Søren PERC, which is prohibitively priced) support J2SE 5.0. Thus, my Søren question is,

Re: J2SE compliant RE for Arm Linux

2007-06-27 Thread Andrew Haley
Robert Lougher writes: Park and unpark are empty stubs, but everything else should be implemented... If anybody can tell me what park/unpark should do, I'll implement them too! I'll bite. park() stops a thread until some other thread calls unpark() on that thread or the thread is

Re: J2SE compliant RE for Arm Linux

2007-06-27 Thread Andrew Haley
See also http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/LockSupport.html

Re: Search for the missing native code

2007-06-19 Thread Andrew Haley
Andrew John Hughes writes: Hi everyone, I've recently been trying to build JikesRVM on a Free platform (using CACAO and some hacked up tools from OpenJDK in the form of IcePick). I've got it just about there now, but I've been let down by a missing native method. Within the

Re: OpenJDK, CLasspath - where are things happening?

2007-06-03 Thread Andrew Haley
Mark Wielaard writes: :) I am not sure inserting ant in the build process will improve things. Me either. I'd like to fix the build dependencies so that make -j could speed things up on machines with many processors, but switching to Ant wouldn't help that at all. But autoconfiscating

Re: [cp-patches] FYI Only truncate a file on append and write-only (from FileOutputStream)

2007-05-30 Thread Andrew Haley
Mark Wielaard writes: Hi, This fixes a bug reported by Steve Blackburn. Mauve tests have been added. 2007-05-30 Mark Wielaard [EMAIL PROTECTED] Fixes bug #32030 reported by [EMAIL PROTECTED] * native/jni/java-nio/gnu_java_nio_VMChannel.c

Re: [cp-patches] FYI Only truncate a file on append and write-only (from FileOutputStream)

2007-05-30 Thread Andrew Haley
You know, the real cause of this bug was the obfuscated use of conditional expressions. This code does, I think, the same things, but it's hard to be sure. Andrew. Index: gnu_java_nio_VMChannel.c === RCS file:

[cp-patches] Re: PATCH: PR libjava/32078: Update libtool in classpath

2007-05-29 Thread Andrew Haley
H. J. Lu writes: On Sun, May 27, 2007 at 11:22:03AM -0700, H. J. Lu wrote: When libtool in gcc updated, libtool in classpath is out of sync and classpath failed to build inside libjava. This patch copies the new libtool from gcc toplevel with the modified libtool.m4:

[cp-patches] Re: PATCH: PR libjava/32078: Update libtool in classpath

2007-05-29 Thread Andrew Haley
Andreas Schwab writes: Andrew Haley [EMAIL PROTECTED] writes: libtool in classpath is imported from upstream, so importing it here would be a fork. The classpath copy in gcc has never used the imported libtool, but rather a copy of the common gcc libtool. See libjava/HACKING

Re: [cp-patches] [gjdoc] FYI: Add support for com.sun.tools.javadoc.Main

2007-05-12 Thread Andrew Haley
Andrew John Hughes writes: This patch from Michael Koch adds support to gjdoc for being invoked like javadoc: Changelog: 2007-05-12 Andrew John Hughes [EMAIL PROTECTED] * NEWS: Updated. 2007-05-11 Michael Koch [EMAIL PROTECTED] * Makefile.am:

Re: OpenJDK on Fedora

2007-05-10 Thread Andrew Haley
Mario Torre writes: Hello! I know this is not a list on OpenJDK :) I had some troubles in building the classes on Fedora Core 6 because it lacks openmotif, and fixed with this simple patch (that let us used lesstif), I've blogged about it so maybe some of you already knows, but I

Re: Compilation Time | More questions ClassLoader

2007-05-09 Thread Andrew Haley
Martin Schlienger writes: 2007/5/4, Tom Tromey [EMAIL PROTECTED]: Yup. I'd suggest that instead of thinking of the solution in terms of writing a class loader, think about it in terms of writing some code that simply returns a byte[] that is the class contents. This is already

Re: GNU/Classpath OpenJDK

2007-05-09 Thread Andrew Haley
Mario Torre writes: Il giorno mer, 09/05/2007 alle 19.24 +0200, [EMAIL PROTECTED] ha scritto: Hi all, Reading planet.classpath.org I see most people are already aware that most openjdk source code got released under the GPL at JavaOne. Other good news is that Dalibor got on the

Re: javax.management woes, again

2007-05-08 Thread Andrew Haley
Andrew John Hughes writes: On Wednesday 02 May 2007 17:15, Andrew Haley wrote: This is an FYI regarding javax.management in Fedora 7. Comments from Classpath hackers welcome... Thanks for fixing this. I don't see a mention of the notification in the online API which is, I guess

Re: javax.management woes, again

2007-05-03 Thread Andrew Haley
Fixes https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=236541. Andrew. 2007-05-03 Andrew Haley [EMAIL PROTECTED] * gnu/javax/management/Server.java (Server): Record the delegate. (registerMBean): Notify the delegate. (unregisterMBean): Likewise. (notify

Re: javax.management woes, again

2007-05-03 Thread Andrew Haley
Hmm. Looks like we need to start counting sequence numbers at 1 because MBeanServerDelegate.sendNotification sends delegate's own sequence number if the supplied notification has a sequence number is = 0. Andrew. 2007-05-03 Andrew Haley [EMAIL PROTECTED] * gnu/javax/management

[commit-cp] classpath ChangeLog gnu/javax/management/Server...

2007-05-03 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/05/03 18:41:29 Modified files: . : ChangeLog gnu/javax/management: Server.java Log message: 2007-05-03 Andrew Haley [EMAIL PROTECTED

javax.management woes, again

2007-05-02 Thread Andrew Haley
This is an FYI regarding javax.management in Fedora 7. Comments from Classpath hackers welcome... Andrew. ---BeginMessage--- To cut to the chase: I've been debugging 236541 for a week now, and I've finally found the cause: gnu.javax.management.Server.registerMBean() is broken in Classpath.

[cp-patches] Re: Workaround bugs in Proxy serialization

2007-04-26 Thread Andrew Haley
Andrew Haley writes: Looking at the Classpath sources for ObjectInputStream, it seems that the area where I had so much trouble has been reworked. I'll investigate importing those classes into libgcj. I've thought about this some more, and come to the conclusion that the best thing

[cp-patches] Re: Workaround bugs in Proxy serialization

2007-04-26 Thread Andrew Haley
For those of you that may be wondering what this was all about, there is an excellent RMI tutoral at http://java.sun.com/docs/books/tutorial/rmi/TOC.html This example worked with gcj as long as Sun's rmiregistry was being sued, but not with grmiregistry, which segafulted. The changes I made in

[cp-patches] Workaround bugs in Proxy serialization

2007-04-25 Thread Andrew Haley
bug, please do, but IMO the only cure for our serialization code is to replace it altogether. Andrew. 2007-04-25 Andrew Haley [EMAIL PROTECTED] * java/io/ObjectStreamClass.java (ensureFieldsSet): New method. (setFields): call ensureFieldsSet. (fieldsSet): New field

[cp-patches] Re: Workaround bugs in Proxy serialization

2007-04-25 Thread Andrew Haley
Looking at the Classpath sources for ObjectInputStream, it seems that the area where I had so much trouble has been reworked. I'll investigate importing those classes into libgcj. Andrew.

Re: Mingw32 port

2007-04-25 Thread Andrew Haley
Mark Wielaard writes: On Wed, 2007-04-25 at 10:29 -0400, Chris Cole wrote: My diffs for mingw32 port have been mailed to classpath-patches. I believe that my mail is being held pending list-moderator approval due to their heft. Yep, write smaller patches please :) They should

Re: Mingw32 port

2007-04-25 Thread Andrew Haley
Chris Cole writes: On 4/25/07, Andrew Haley [EMAIL PROTECTED] wrote: Mark Wielaard writes: On Wed, 2007-04-25 at 10:29 -0400, Chris Cole wrote: My diffs for mingw32 port have been mailed to classpath-patches. I believe that my mail is being held pending list-moderator

[commit-cp] classpath ChangeLog gnu/java/rmi/server/Unicast...

2007-04-18 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/04/18 17:17:08 Modified files: . : ChangeLog gnu/java/rmi/server: UnicastConnectionManager.java Log message: 2007-04-18 Andrew Haley [EMAIL PROTECTED

[cp-patches] UnicastConnectionManager

2007-04-17 Thread Andrew Haley
(); This is the external address of the box, not the loopback address. I'd be grateful if someone who really understands RMI could comment on this. I'm pretty sure it's right, given that this seems to fix the JBoss tests connection failure... Andrew. 2007-04-17 Andrew Haley [EMAIL PROTECTED

Re: [cp-patches] FYI: Fix ObjectName bugs

2007-04-16 Thread Andrew Haley
Andrew John Hughes writes: This fixes bugs in our parsing in javax.management.ObjectName so that we pass all the tests recently committed to Mauve for parsing. @@ -927,10 +933,12 @@ public class ObjectName { n = q.charAt(++a); if (n != '' n != '?' n !=

[cp-patches] Fix debugging dumps for Proxies

2007-04-16 Thread Andrew Haley
The Object{Input,Ouput}Stream classes have debugging dumps that cause errors when used on a stream that contains Proxies. This workaround prints the proxy class (rather than the object istself) when the serialized object is a proxy. Andrew. 2007-04-16 Andrew Haley [EMAIL PROTECTED

[commit-cp] classpath ChangeLog java/io/ObjectInputStream.j...

2007-04-16 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/04/16 15:39:10 Modified files: . : ChangeLog java/io: ObjectInputStream.java ObjectOutputStream.java Log message: 2007-04-16 Andrew Haley [EMAIL

[commit-cp] classpath ChangeLog org/omg/IOP/TaggedComponent...

2007-04-16 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/04/16 14:02:31 Modified files: . : ChangeLog org/omg/IOP: TaggedComponentHelper.java org/omg/PortableServer: Servant.java Log message: 2007-04

Re: Method.invoke() on a non-public class from another package

2007-04-11 Thread Andrew Haley
Andrew Haley writes: Andrew Haley writes: Robert Lougher writes: Had a quick look, and in Classpath-0.93 java.util.AbstractMap contains a class BasicMapEntry which implements getValue(). BasicMapEntry is package-private. This isn't accessible outside the package

org/omg/PortableServer/Servant.java

2007-04-11 Thread Andrew Haley
)._set_delegate(delegate); } So, we have to fix Servant to throw an exception in this case. Andrew. 2007-04-11 Andrew Haley [EMAIL PROTECTED] * org/omg/PortableServer/Servant.java (_get_delegate): Throw if no delegate has been set. Index: Servant.java

org/omg/IOP/TaggedComponentHelper.java

2007-04-11 Thread Andrew Haley
write_octet_array(), not write(). Andrew. 2007-04-11 Andrew Haley [EMAIL PROTECTED] * org/omg/IOP/TaggedComponentHelper.java (read): Use read_octet_array(), not read(). (write): Use write_octet_array(), not write(). Index: omg/IOP/TaggedComponentHelper.java

Re: Method.invoke() on a non-public class from another package

2007-04-10 Thread Andrew Haley
Robert Lougher writes: Had a quick look, and in Classpath-0.93 java.util.AbstractMap contains a class BasicMapEntry which implements getValue(). BasicMapEntry is package-private. This isn't accessible outside the package. In CVS HEAD, this has changed and java.util.AbstractMap

Re: Method.invoke() on a non-public class from another package

2007-04-10 Thread Andrew Haley
Andrew Haley writes: Robert Lougher writes: Had a quick look, and in Classpath-0.93 java.util.AbstractMap contains a class BasicMapEntry which implements getValue(). BasicMapEntry is package-private. This isn't accessible outside the package. In CVS HEAD, this has

Re: Method.invoke() on a non-public class from another package

2007-04-08 Thread Andrew Haley
Mark Wielaard writes: On Sun, 2007-04-08 at 12:53 +0200, Christian Thalinger wrote: Grrr, I hate this access checks. I'll try to fix that _again_. This seems to be pretty subtle and we found multiple runtimes (jamvm, cacao, gcj and kaffe at least) that seem to get this wrong. And the

Re: Method.invoke() on a non-public class from another package

2007-04-08 Thread Andrew Haley
Robert Lougher writes: Anyway, I've found what it broke and my original analysis. After putting this in, BeanShell GUI stopped working with JamVM. This was found during 0.93 testing: ... I don't know where the problem lies. The class java.util.Hashtable$HashEntry is

Re: [cp-patches] ObjectName Serialized Form

2007-04-06 Thread Andrew Haley
Andrew John Hughes writes: Great work (I've been meaning to get on to this for a while) but I don't see this patch on Classpath HEAD. Feel free to ckeck it in. I tend to check patches in as a batch once I've done a thorough set of tests. Andrew. -- Red Hat UK Ltd, Amberley Place, 107-111

[cp-patches] ObjectName Serialized Form

2007-04-04 Thread Andrew Haley
Another patch for JBoss. Andrew. 2007-04-04 Andrew Haley [EMAIL PROTECTED] * javax/management/ObjectName.java serialVersionUID: Declare. Make all fields transient. (parse): Break out from constructor. (writeObject, readObject): New methods. Index

[commit-cp] classpath ChangeLog javax/management/MBeanServe...

2007-04-02 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/04/02 18:24:30 Modified files: . : ChangeLog javax/management: MBeanServerFactory.java ObjectName.java Log message: 2007-04-02 Andrew Haley [EMAIL

Re: Question about license

2007-04-01 Thread Andrew Haley
Audrius Meskauskas writes: I think, you can link your code with GNU Classpath library regardless on how nasty license your code has, and distribute this combination. And likely you can make various tricks with class loaders as well as long as you do not modify the original GNU

[cp-patches] ObjectName.java: Handle 0-length names

2007-03-30 Thread Andrew Haley
Here's another one. Verified by comparison with the Sun JDK. Andrew. 2007-03-30 Andrew Haley [EMAIL PROTECTED] * javax/management/ObjectName.java: Handle 0-length names. Index: ObjectName.java === --- ObjectName.java

Re: [cp-patches] FYI: Disable gnome accessibility

2007-03-29 Thread Andrew Haley
Francis Kung writes: This patch explicitly prevents GNOME accessibility modules from being loaded, as our GTK peers hang when accessibility is enabled. This is a gnome accessibility bug with multithreading, filed as http://bugzilla.gnome.org/show_bug.cgi?id=423057 , and this patch is

Re: [cp-patches] FYI: Disable gnome accessibility

2007-03-29 Thread Andrew Haley
Tom Tromey writes: Andrew == Andrew Haley [EMAIL PROTECTED] writes: This is a gnome accessibility bug with multithreading, filed as http://bugzilla.gnome.org/show_bug.cgi?id=423057 , and this patch is a workaround until that issue is resolved. Andrew Is this the same bug

[cp-patches] MBeanServerFactory: use domain

2007-03-27 Thread Andrew Haley
This seems like a trivial thinko. We are passed a domain but we ignore it and substitute DefaultDomain... Andrew. 2007-03-27 Andrew Haley [EMAIL PROTECTED] * javax/management/MBeanServerFactory.java: Use the domain that we've been passed, not the fixed string DefaultDomain

Re: [cp-patches] Patch: FYI: add gcjh tool

2007-03-16 Thread Andrew Haley
Tom Tromey writes: I'm checking this in. We wanted to add a gcjh compatibility tool, and since it required some minor refactoring in javah, it seemed best to keep this in the Classpath tree. The gcjh compatibility tool isn't compatible. It writes its output file to the wrong place.

Re: [cp-patches] Guidelines for annotations?

2007-03-09 Thread Andrew Haley
Mario Torre writes: Il giorno ven, 09/03/2007 alle 10.35 -0800, Keith Seitz ha scritto: @Override public void foo(); I suggest this one. It seems more clear to me. +1 Andrew.

Regressions from gcj 4.2 to 4.3 involving XML

2007-03-09 Thread Andrew Haley
I've been mystified why Xerces suddenly stopped working with this release of gcj. I think I've found the root cause that triggered this. In sumary: in gcj 4.2 and previous releases, the handling of core URLs was broken. As a result of this, we never found

Re: FOSDEM 2007

2007-02-22 Thread Andrew Haley
Andrew John Hughes writes: Hi everyone, I guess most of you will have noticed that the FOSDEM fun begins tomorrow :-) Are we exchanging contact details beforehand? I notice this was done last year. If so, what's the best forum for this? Shall we just post to the list?

Re: Fosdem Food Drinks

2007-02-22 Thread Andrew Haley
Mark Wielaard writes: Hi, We selected a few places to meet, eat and drink in Brussel during Fosdem (thanks to David Delabassee for calling the restaurants to see if they were open had room). The rough estimate currently is 30 people. To see if that is an good estimate please do add

Re: FOSDEM 2007

2007-02-22 Thread Andrew Haley
Dalibor Topic writes: Andrew Haley wrote: Andrew John Hughes writes: Hi everyone, I guess most of you will have noticed that the FOSDEM fun begins tomorrow :-) Are we exchanging contact details beforehand? I notice this was done last year. If so

Bug in gnu/xml/dom/DomDocumentBuilderFactory.java?

2007-02-20 Thread Andrew Haley
The problem: gcj+Classpath fails to work with Xerces2, but Sun's Java does work. The means that, on Fedora, Ant doesn't run with the latest Classpath. gnu/xml/dom/DomDocumentBuilderFactory.java.newDocumentBuilder() does this: setParameter(config, expand-entity-references,

Re: Bug in gnu/xml/dom/DomDocumentBuilderFactory.java?

2007-02-20 Thread Andrew Haley
Andrew Haley writes: The problem: gcj+Classpath fails to work with Xerces2, but Sun's Java does work. The means that, on Fedora, Ant doesn't run with the latest Classpath. gnu/xml/dom/DomDocumentBuilderFactory.java.newDocumentBuilder() does this: setParameter(config

[cp-patches] (no subject)

2007-02-16 Thread Andrew Haley
-02-16 Andrew Haley [EMAIL PROTECTED] * gnu/java/lang/management/MemoryMXBeanImpl.java, javax/management/MBeanServerDelegate.java: Use gnu.javax.management.ListenerData rather than gnu.classpath.ListenerData. * gnu/javax/management/ListenerData.java: Move

[commit-cp] classpath ChangeLog gnu/java/lang/management/Me...

2007-02-16 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/02/16 17:47:09 Modified files: . : ChangeLog gnu/java/lang/management: MemoryMXBeanImpl.java javax/management: MBeanServerDelegate.java Added files

[commit-cp] classpath ChangeLog java/util/TimeZone.java scr...

2007-02-12 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/02/12 15:17:51 Modified files: . : ChangeLog java/util : TimeZone.java scripts: timezones.pl vm/reference/java/util: VMTimeZone.java

[cp-patches] TimeZone fix for daylight saving

2007-02-09 Thread Andrew Haley
We were faliing in some time zones. This is Jakub's code, tested by me. Andrew. 2007-02-09 Jakub Jelinek [EMAIL PROTECTED] * java/util/TimeZone.java: Handle default (one hour) daylight savings. Index: java/util/TimeZone.java

[cp-patches] java/util/VMTimeZone.java

2007-02-09 Thread Andrew Haley
This is a rewrite of VMTimeZone to handle the new format of the timezone file. It should work well with the old format and the new one. Andrew. 2007-02-09 Jakub Jelinek [EMAIL PROTECTED] * java/util/VMTimeZone.java: Rewrite to handle both the old 'TZif\0' format and the new

[cp-patches] PR classpath/30706: gjavah incompatible with sun javah and gcjh

2007-02-05 Thread Andrew Haley
Like it says. Since we started to use gjavah instead of gcjh, varous projects no longer build because gjavah outputs the wrong filenames: it should be org_gnu_readline_Readline.h, not org/gnu/readline/Readline.h. Andrew. 2007-02-05 Andrew Haley [EMAIL PROTECTED] PR cp-tools/30706

[cp-patches] gen-classlist.sh.in: canonicalize pathnames in lib/classes

2007-01-31 Thread Andrew Haley
Andrew Haley [EMAIL PROTECTED] * lib/gen-classlist.sh.in: Convert relative pathnames to absolute pathnames in lib/classes. Index: gen-classlist.sh.in === --- gen-classlist.sh.in (revision 121108) +++ gen

[commit-cp] classpath ChangeLog java/lang/SecurityManager.java

2007-01-29 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 07/01/29 13:56:22 Modified files: . : ChangeLog java/lang : SecurityManager.java Log message: 2007-01-29 Andrew Haley [EMAIL PROTECTED

Call SecurityManager.checkPackageAccess from Class Loaders

2007-01-26 Thread Andrew Haley
then calls checkPackageAccess we have infinite recursion. Interestingly, this is Sun bug #4242924. Most of this is gcj-specific, but the last one may as well be applied to Classpath. Testcase to follow. Andrew. 2007-01-26 Andrew Haley [EMAIL PROTECTED] * java/lang/natClass.cc

Re: [PATCH] MD4/MD5 fixes

2007-01-07 Thread Andrew Haley
Tom Tromey writes: David == David Daney [EMAIL PROTECTED] writes: -aa = aa 3 | aa -3; +aa = aa 3 | aa (32 - 3); David Java masks all shift counts to the number of bits being operated on. David Your patches are a nop. David I have not tried them, so I don't know

Re: [cp-patches] Re: java.util.Arrays fix

2006-12-21 Thread Andrew Haley
Marco Trudel writes: Andrew Haley wrote: Stuart Ballard writes: Andrew Haley aph at redhat.com writes: No, that's not what I mean by illegal. It's illegal in the sense that the specification places requirements on the implementors of subclasses, and that a subclass

Re: We will have a DevJam during FOSDEM! (Was: Lets have a DevJam during FOSDEM!)

2006-12-19 Thread Andrew Haley
Petter Reinholdtsen writes: OK, we are rolling with this. The next DevJam will be during FOSDEM, 24th and 25th February 2007 in Brussels, Belgium. Those of you who are interested in joining need to put your name on URL:http://wiki.debian.org/Java/DevJam/2007/Fosdem quickly, to give us

Re: [cp-patches] FYI: Another small tools distcheck patchlet

2006-12-16 Thread Andrew Haley
Mark Wielaard writes: Hi, distcheck was broken for tools since the all-classes.lst was never cleaned up. Fixed as follows: 2006-12-16 Mark Wielaard [EMAIL PROTECTED] * tools/Makefile.am (TOOLS_ZIP): Remove all-classes.lst. (clean-local): Likewise. This

Re: [cp-patches] FYI: Another small tools distcheck patchlet

2006-12-16 Thread Andrew Haley
Mark Wielaard writes: Hi Andrew, On Sat, 2006-12-16 at 14:56 +, Andrew Haley wrote: distcheck was broken for tools since the all-classes.lst was never cleaned up. Fixed as follows: 2006-12-16 Mark Wielaard [EMAIL PROTECTED] * tools/Makefile.am

Re: [cp-patches] cp-tools: fix build options

2006-12-16 Thread Andrew Haley
Mark Wielaard writes: Hi Andrew, On Fri, 2006-12-15 at 16:40 +, Andrew Haley wrote: It wasn't possible to debug Classpath tools because they were built with no debuginfo. Also, we weren't passing the full source pathnames to gcj, so gdb couldn't find the source files

Re: [cp-patches] FYI: Another small tools distcheck patchlet

2006-12-16 Thread Andrew Haley
Mark Wielaard writes: On Sat, 2006-12-16 at 15:47 +, Andrew Haley wrote: Mark Wielaard writes: Where is tools.o defined? Is it possible to create an all-classes.lst there? ecj: source - tools.jar gcj: tools.jar - tools.o OK. But I assume you do the second pass

Re: [cp-patches] cp-tools: fix build options

2006-12-16 Thread Andrew Haley
Tom Tromey writes: No, -w is translated by the gcj-ish ecj front end that is being invoked in the libjava build. So the patch in question is actually specific to gcj. OK, so help me out here, please: how do you solve the problem for libgcj.jar? I'm only trying to do the same thinsg

Re: [cp-patches] cp-tools: fix build options

2006-12-16 Thread Andrew Haley
Mark Wielaard writes: On Sat, 2006-12-16 at 15:48 +, Andrew Haley wrote: Mark Wielaard writes: I couldn't find any documentation that describes what -w is supposed to provide, so I don't really know what to suggest as alternative. If this flag is compiler specific you might

Re: [cp-patches] Re: java.util.Arrays fix

2006-12-15 Thread Andrew Haley
Stuart Ballard writes: Andrew Haley aph at redhat.com writes: No, that's not what I mean by illegal. It's illegal in the sense that the specification places requirements on the implementors of subclasses, and that a subclass which does not meet these requirements is not a well

Re: [cp-patches] Re: java.util.Arrays fix

2006-12-15 Thread Andrew Haley
Andrew Haley writes: The result of any operation that involves this class is therefore not well-defined, and whatever happens, it's not a bug. For avoidance of doubt: this applies iff an instance of Foo(null) is created. Andrew.

[cp-patches] cp-tools: fix build options

2006-12-15 Thread Andrew Haley
It wasn't possible to debug Classpath tools because they were built with no debuginfo. Also, we weren't passing the full source pathnames to gcj, so gdb couldn't find the source files. Finally, we weren't passing JAR to Classpath's make. Andrew. 2006-12-15 Andrew Haley [EMAIL PROTECTED

[commit-cp] classpath ChangeLog tools/Makefile.am tools/gnu...

2006-12-15 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Andrew Haley aph 06/12/15 17:43:17 Modified files: . : ChangeLog tools : Makefile.am tools/gnu/classpath/tools/jar: Creator.java Log message: 2006-12-15

Re: [cp-patches] java.util.Arrays fix

2006-12-14 Thread Andrew Haley
Marco Trudel writes: Casey Marshall wrote: On Dec 13, 2006, at 1:28 PM, Marco Trudel wrote: David Daney wrote: Casey Marshall wrote: In general I really urge against going out of our way to support behavior like this. Can you explain that further? You're against

Re: [cp-patches] java.util.Arrays fix

2006-12-14 Thread Andrew Haley
Marco Trudel writes: Andrew Haley wrote: No, I don't mean that. I mean that if we change this behaviour today, we can't guarantee that someone won't chnage it back tomorrow. Change it back in classpath or in a Sun JRE? In Classpath. For the first point we have mauve. I say

Re: [cp-patches] Re: java.util.Arrays fix

2006-12-14 Thread Andrew Haley
Stuart Ballard writes: Andrew Haley aph at redhat.com writes: No, I don't mean that. I mean that if we change this behaviour today, we can't guarantee that someone won't chnage it back tomorrow. So, use this as a temporary hack if you must, but prepare to be disappointed

Re: [cp-patches] java.util.Arrays fix

2006-12-13 Thread Andrew Haley
Marco Trudel writes: Hey guys java.util.Arrays.binarySearch(Object[] a, Object key, Comparator c) exchanges a[i] and key, this can lead to ClassCastExceptions as shown in ComparatorTest.java. Arrays.patch fixes it. Changelog suggestion: 2006-12-13 Marco Trudel [EMAIL

Re: [cp-patches] java.util.Arrays fix

2006-12-13 Thread Andrew Haley
Marco Trudel writes: Andrew Haley wrote: Marco Trudel writes: Hey guys java.util.Arrays.binarySearch(Object[] a, Object key, Comparator c) exchanges a[i] and key, this can lead to ClassCastExceptions as shown in ComparatorTest.java. Arrays.patch fixes

Re: [cp-patches] java.util.Arrays fix

2006-12-13 Thread Andrew Haley
Marco Trudel writes: Andrew Haley wrote: Marco Trudel writes: Andrew Haley wrote: Marco Trudel writes: Hey guys java.util.Arrays.binarySearch(Object[] a, Object key, Comparator c) exchanges a[i] and key, this can lead to ClassCastExceptions

Re: [cp-patches] java.util.Arrays fix

2006-12-13 Thread Andrew Haley
Marco Trudel writes: Andrew Haley wrote: Marco Trudel writes: Andrew Haley wrote: Marco Trudel writes: Andrew Haley wrote: Marco Trudel writes: Hey guys java.util.Arrays.binarySearch(Object[] a, Object key, Comparator c

Re: [cp-patches] java.util.Arrays fix

2006-12-13 Thread Andrew Haley
Marco Trudel writes: Andrew Haley wrote: Marco Trudel writes: Andrew Haley wrote: No. The point is that completely different objects might be passed which have no relation with each other. A stupid example: Object[] o1 = { 22, 23, 24 }; Object o2 = new

Re: [cp-patches] Fix interrupted read/writes

2006-12-06 Thread Andrew Haley
Casey Marshall writes: On Dec 5, 2006, at 2:52 AM, Andrew Haley wrote: The cpnio functions are (should be) trivial and inlined. What more is needed? Now, is VMChannel supposed to be POSIX-specific or not? If it is Yes, it is. supposed to be POSIX-specific, and there seem

Re: [cp-patches] Fix interrupted read/writes

2006-12-05 Thread Andrew Haley
Roman Kennke writes: Hi again, Am Montag, den 04.12.2006, 11:19 -0800 schrieb David Daney: Andrew Haley wrote: Roman Kennke writes: While testing eclipse I sometimes saw interrupted reads occur. VMChannel already had a mechanism for checking the interrupted status

Re: 0.93 branch created

2006-12-02 Thread Andrew Haley
Mark Wielaard writes: On Sat, 2006-12-02 at 10:47 +, Andrew John Hughes wrote: Great news Mark! What's the plan for the generics branch? From this, it sounds like we keep it around until the release itself, which seems sensible (so we have a 0.93 generics release). Yes that

Re: ASM and gnu.bytecode

2006-11-29 Thread Andrew Haley
Mark Wielaard writes: Hi Tom, On Tue, 2006-11-28 at 15:42 -0700, Tom Tromey wrote: Tom Ideally we could just import the ASM sources. I thought this idea was Tom rejected, but I can't find a link. I'd like to revisit this, since Tom this is the simplest way to solve the problem.

Re: ASM and gnu.bytecode

2006-11-29 Thread Andrew Haley
Mark Wielaard writes: Hi Andrew, On Wed, 2006-11-29 at 10:50 +, Andrew Haley wrote: I would import whatever version currently works. Later we could import newer versions, as desired, and update our code to match. What is the exact version that works with all our

RE: SystemProperties secure?

2006-11-28 Thread Andrew Haley
Jeroen Frijters writes: Tom Tromey wrote: Roman == Roman Kennke [EMAIL PROTECTED] writes: Roman We are using the SystemProperties class throughout the Classpath code to Roman access system properties and avoid the security checks in Roman java.lang.System. However, I come to

Re: ASM and gnu.bytecode

2006-11-28 Thread Andrew Haley
Tom Tromey writes: Andrew == Andrew Haley [EMAIL PROTECTED] writes: Andrew Having gcj depend not only on ASM but also on a *specific version* of Andrew ASM is intolerable. If gnu.bytecode will do the job, we should use Andrew it. I suppose it would be best to import some bytecode

[commit-cp] classpath ChangeLog vm/reference/sun/reflect/mi... [generics-branch]

2006-11-28 Thread Andrew Haley
CVSROOT:/cvsroot/classpath Module name:classpath Branch: generics-branch Changes by: Andrew Haley aph 06/11/28 09:27:45 Modified files: . : ChangeLog vm/reference/sun/reflect/misc: ReflectUtil.java Log message: 2006-11-28

[cp-patches] JSR166: sun/reflect/misc/ReflectUtil.java

2006-11-27 Thread Andrew Haley
()); ttt[] a = new ttt[4]; System.out.println(Checking + a.getClass()); sun.reflect.misc.ReflectUtil.checkPackageAccess(a.getClass()); } } Andrew. 2006-11-27 Andrew Haley [EMAIL PROTECTED] * sun

Re: ASM and gnu.bytecode

2006-11-26 Thread Andrew Haley
I recently tried to build Classpath and discovered that to build gjavah and grmic, ASM is required. No problem, thought I, and downloaded the latest version. Oddly, that didn't work. So, I downloaded a few more versions of ASM until I found a version that did work: version

Re: ASM and gnu.bytecode

2006-11-26 Thread Andrew Haley
Thomas Fitzsimmons writes: Audrius Meskauskas wrote: Only part of RMIC (direct bytecode generation) is really dependent from ASM. That part which supports the source code generation is not dependent, was a separate compiler in the past and can be easily separated apart again. If

Re: [cp-patches] [generics] FYI: Adding javac stubs

2006-11-22 Thread Andrew Haley
Andrew John Hughes writes: This patch adds the stubs and implementation necessary to make Sun's javac compile (and run with gcj-eclipse apparently). Woohoo! This is only on generics, so we could dump it during the merge if necessary. We should probably not commit stubs. If they're

Re: The Generics Branch: A Proposal

2006-11-19 Thread Andrew Haley
Andrew John Hughes writes: Hi everyone, Now that: a) gcj has branched for 4.2 and the gcj-eclipse branch is moving to trunk b) there is another Free 1.5 compiler in the form of Sun's javac c) most VMs have support for at least some of the 1.5 native stuff I'd like to suggest

ASM and gnu.bytecode

2006-11-15 Thread Andrew Haley
I recently tried to build Classpath and discovered that to build gjavah and grmic, ASM is required. No problem, thought I, and downloaded the latest version. Oddly, that didn't work. So, I downloaded a few more versions of ASM until I found a version that did work: version 2.3. This looked

RE: Generic Signatures

2006-11-04 Thread Andrew Haley
Jeroen Frijters writes: Andrew Haley wrote: I can't get even simple tests with generic signatures to work. Like this: public class test2 { static class A extends ArrayListString {}; public static void main(String[] args) { A a = new A(); Object x

RE: Generic Signatures

2006-11-04 Thread Andrew Haley
Andrew Haley writes: Jeroen Frijters writes: Andrew Haley wrote: I can't get even simple tests with generic signatures to work. Like this: public class test2 { static class A extends ArrayListString {}; public static void main(String[] args

Generic Signatures

2006-11-03 Thread Andrew Haley
I can't get even simple tests with generic signatures to work. Like this: public class test2 { static class A extends ArrayListString {}; public static void main(String[] args) { A a = new A(); Object x = a; ((Collection)x).add(new Byte((byte) 1));

<    1   2   3   4   5   6   >