[cp-patches] RFC: Make negative JList.setSelectedIndex() clear the selection

2006-01-09 Thread Mark Wielaard
Hi, I have a program here that seems to expect JList.setSelectedIndex(-1) to clear the current selection. Currently we get into trouble since we unconditionally call setSelectionInterval(-1, -1) in that case. Changing it to call clearSelection() when negative seems to make sense since it is

[cp-patches] FYI: Container fixlet

2006-01-09 Thread Roman Kennke
Hi there, while debugging an application, I found out that Container.remove() must not trigger a repaint(). I removed the repaint() call. 2006-01-09 Roman Kennke [EMAIL PROTECTED] * java/awt/Container.java (remove): Don't repaint the container here. /Roman Index:

[cp-patches] FYI: javax.swing.Popup fixlet

2006-01-09 Thread Roman Kennke
Hi, my previous patch (Container.remove) caused some regressions. Obviously, we need to add some repaint() calls now in Swing. This is one of the obvious ones (needed for JComboBoxes for instance). 2006-01-09 Roman Kennke [EMAIL PROTECTED] * javax/swing/Popup.java

Re: [cp-patches] FYI: Replaced use of JvAssert by assert and removed java-assert.h

2006-01-09 Thread Tom Tromey
Dalibor == Dalibor Topic [EMAIL PROTECTED] writes: `(1 k) 128' failed. mprec overflow... #0 0x2b028df0 in raise () from /lib/libc.so.6 ... 64 bit machine ... Dalibor JvAssert only kicked in if DEBUG was defined, which assert always Dalibor kicks in unless NDEBUG is defined.

Re: [cp-patches] FYI: Replaced use of JvAssert by assert and removed java-assert.h

2006-01-09 Thread Dalibor Topic
Tom Tromey wrote: Dalibor == Dalibor Topic [EMAIL PROTECTED] writes: `(1 k) 128' failed. mprec overflow... #0 0x2b028df0 in raise () from /lib/libc.so.6 ... 64 bit machine ... Dalibor JvAssert only kicked in if DEBUG was defined, which assert always Dalibor kicks

[cp-patches] FYI: First class for javax.management.

2006-01-09 Thread Meskauskas Audrius
2006-01-09 Audrius Meskauskas [EMAIL PROTECTED] * javax.management.Attribute.java: New file. /* Attribute.java -- Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms

Re: [cp-patches] FYI: Replaced use of JvAssert by assert and removed java-assert.h

2006-01-09 Thread Christian Thalinger
On Mon, 2006-01-09 at 09:58 -0700, Tom Tromey wrote: The buffer size workaround I applied to mprec isn't completely safe -- it just works in more cases. This is why we need the newer dynamically-allocating mprec. Ok, someone has to take care of that. I'll do it, if you tell me where to get

Re: [cp-patches] FYI: First class for javax.management.

2006-01-09 Thread Tom Tromey
Audrius == Meskauskas Audrius [EMAIL PROTECTED] writes: Audrius 2006-01-09 Audrius Meskauskas [EMAIL PROTECTED] Audrius * javax.management.Attribute.java: New file. Nice! I was thinking we'd end up using MX4J for this package... but I failed to take you into account :-) Audrius *

[cp-patches] Patch: JTree row height fix

2006-01-09 Thread Lillian Angel
Riccardo pointed out some problems with JTree when the icons are larger than the row height. I fixed it so the tree uses the max row height of all the nodes. 2006-01-09 Lillian Angel [EMAIL PROTECTED] * javax/swing/plaf/basic/BasicTreeUI.java: Added new field.

[cp-patches] FYI: patch for DefaultStyledDocument

2006-01-09 Thread Anthony Balkissoon
Now that Lillian and I have good documentation for the ElementBuffer class (http://java.sun.com/products/jfc/tsc/articles/text/element_buffer/index.html) we can finally nail this class down and get it right. I coded some examples suggested in the document linked above and made the following

Re: [cp-patches] RFC: Make negative JList.setSelectedIndex() clear the selection

2006-01-09 Thread Roman Kennke
Hi Mark, Am Montag, den 09.01.2006, 16:43 +0100 schrieb Mark Wielaard: Hi, I have a program here that seems to expect JList.setSelectedIndex(-1) to clear the current selection. Currently we get into trouble since we unconditionally call setSelectionInterval(-1, -1) in that case. Changing

[cp-patches] FYI: XMLEncoder spelling mistakes

2006-01-09 Thread Robert Schuster
What the changelog says :D cya Robert 2006-01-09 Robert Schuster [EMAIL PROTECTED] * java/beans/XMLEncoder.java: Fix spelling mistakes. Index: java/beans/Encoder.java === RCS file:

Re: [cp-patches] RFC: java.net.InetAddress.toString() returns wrong address

2006-01-09 Thread Christian Thalinger
On Mon, 2006-01-09 at 15:30 +0100, Mark Wielaard wrote: So what do you think of the following patch? 2006-01-08 Mark Wielaard [EMAIL PROTECTED] * java/net/InetAddress.java (getInaddrAny): Explicitly set hostName. It fixes the mauve test for me. Ooops, sorry. I nearly forgot this

[cp-patches] FYI: javanet.c fix

2006-01-09 Thread Roman Kennke
Hi there, in javanet.c we fiddle with the fd and localport fields in java.net.SocketImpl. However, if we do DatagramSocket stuff, javanet.c still tries to play with SocketImpl, although it should be DatagramSocketImpl. Surprisingly, this often works, because the field order is the same for both

Re: [cp-patches] FYI: implement java.beans.Introspector.getBeanInfo(Class, int)

2006-01-09 Thread Tom Tromey
Robert == Robert Schuster [EMAIL PROTECTED] writes: Robert this implements one more of those pesky bean methods and Robert should be the cure for PR #25431. Just a reminder... mention the PR in the ChangeLog entry, and in your commit message. This will append a nice patch note to the bug in

[cp-patches] FYI: FileChannel.map() for short files

2006-01-09 Thread Mark Wielaard
Hi, If a file was too short for mmap we would happily bus error when someone tried to put() something in it. Although this is indeed undefined behavior it isn't the nicest way to handle this situation. This patch handles it by just making sure the file is big enough. It also fixes some other

[cp-patches] FYI: PlainDocument patch fixes recent regressions

2006-01-09 Thread Anthony Balkissoon
PlainDocument.insertUpdate needs to explicitly handle the special case of an insertion happening right after a newline. Apparently this worked by accident before, and a recent patch that Lillian and I made to GapContent exposed the weakness. This is fixed and committed now. 2006-01-09 Anthony

[cp-patches] FYI: implemented rest of EventSetDescriptor

2006-01-09 Thread Robert Schuster
Hi, 2 constructors and a method were left to implement java.beans.EventSetDescriptor completely. Now its done. :) 2006-01-09 Robert Schuster [EMAIL PROTECTED] * java/beans/EventSetDescriptor.java: Implemented the two 1.4 constructors. (getGetListenerMethod): New

[cp-patches] FYI: Changed HashMap/WeakHashMap to fix PR 24618

2006-01-09 Thread Jeroen Frijters
Hi, Committed. Regards, Jeroen 2006-01-06 Jeroen Frijters [EMAIL PROTECTED] PR classpath/24618 * java/util/AbstractMap.java (equals(Object,Object)): Test for identity first. * java/util/WeakHashMap.java (WeakBucket.WeakEntry.equals): Use helper method

[cp-testresults] FAIL: regressions for mauve-jamvm on Mon Jan 9 17:33:16 UTC 2006

2006-01-09 Thread cpdev
Baseline from: Thu Jan 5 21:10:25 UTC 2006 Regressions: FAIL: gnu.testlet.javax.swing.text.PlainDocument.multipleLeafs: leafs (number 10) FAIL: gnu.testlet.javax.swing.text.PlainDocument.multipleLeafs: leafs (number 11) FAIL: gnu.testlet.javax.swing.text.PlainDocument.multipleLeafs: leafs

Re: compiling Classpath on cigwin/win

2006-01-09 Thread Enrico Migliore
Hi Mark Make sure you have zip also, not just gzip. Mark you're right! After installing the zip utility, I was finally able to build Classpath on Cygwin. There are still a couple of things I would like to do before using Classpath: 1. Compiling classpath with the Eclipse Java compiler ECJ

LinuxTag 2006 - Call for Papers

2006-01-09 Thread Robert Schuster
Hi all, this years LinuxTag takes place in Wiesbaden/Germany on May 3-6 . Like last year the organizers plan to have a Java track. As a free software event there is lots of interest to have presentations about GNU Classpath and all its related F/OSS projects. Please take this as an opportunity to

javax.security.auth.login.LoginException: no configured modules for application DBLogin

2006-01-09 Thread Radhika
Hi, I am Radhika working as SSE for AppLabs Technologies. This mail is with respect to the Bug No. 25202 posted under http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25202 , and the comments says that Classpath currently has no meaningful implementation of

GPLv3 meeting

2006-01-09 Thread Mark Wielaard
Hi all, As most of you probably know the FSF will go through a design process for the next revision of the GPL this year (http://gplv3.fsf.org/). I have given some feedback on license/legal issues we have seen with the GNU Classpath and related projects (especially about what a pity it is that

Re: 0.20 (next year)

2006-01-09 Thread Mark Wielaard
Hi all, On Sat, 2005-12-24 at 12:02 +0100, Mark Wielaard wrote: I had wanted to push out one more new developer snapshot release (0.20) this year, but got distracted by setting up the new builder machine for automatic regression testing and the eclipse build infrastructure (both very cool

[Bug classpath/25699] javax.crypto.CipherInputStream.available() returns -1

2006-01-09 Thread matighet at bbn dot com
--- Comment #6 from matighet at bbn dot com 2006-01-09 15:14 --- Confirmed to be fixed. Thanks for the quick fix. -- matighet at bbn dot com changed: What|Removed |Added

batik update

2006-01-09 Thread Anthony Green
Jeremias Maerki has submitted a patch to liberate batik: http://issues.apache.org/bugzilla/show_bug.cgi?id=38183 Now it's our job to implement some missing bits, including: javax.imageio.plugins.jpeg.* and java.awt.BasicStroke Sven - did you have a BasicStroke implementation? AG

[Bug classpath/25431] Method Introspector.getBeanInfo(class, int) is not implemented

2006-01-09 Thread thebohemian at gmx dot net
--- Comment #2 from thebohemian at gmx dot net 2006-01-09 18:43 --- Java Trap Rescue Guard (tm) is taking this. ;) -- thebohemian at gmx dot net changed: What|Removed |Added

Re: please test: XMLEncoder patch - version 2

2006-01-09 Thread Roman Kennke
Hi Robert, Is it really necessary to directly reference all those classes in java.beans.Encoder.setupDefaultPersistenceDelegates()? Can you explain what this method does and why the encoder won't work without these persistent delegates? I am asking, because we had discussions about breaking down

[Bug classpath/25727] Hashtable is not secure

2006-01-09 Thread subanark at gmail dot com
--- Comment #2 from subanark at gmail dot com 2006-01-09 19:21 --- That is in fact the point of why Sun's Hashtable does this. The class I presented FakeKey is in fact trying to trick the map into giving it a value for the secure key, which is designed to be a private key. If we take a

[Bug classpath/25431] Method Introspector.getBeanInfo(class, int) is not implemented

2006-01-09 Thread cvs-commit at developer dot classpath dot org
--- Comment #3 from cvs-commit at developer dot classpath dot org 2006-01-09 20:52 --- Subject: Bug 25431 CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Robert Schuster [EMAIL PROTECTED]06/01/09 20:19:57 Modified files: .

Re: javax.security.auth.login.LoginException: no configured modules for application DBLogin

2006-01-09 Thread Casey Marshall
On Jan 9, 2006, at 1:17 AM, Radhika wrote: Hi, I am Radhika working as SSE for AppLabs Technologies. This mail is with respect to the Bug No. 25202 posted under http:// gcc.gnu.org/bugzilla/show_bug.cgi?id=25202 , and the comments says that Classpath currently has no meaningful

Assertion failure

2006-01-09 Thread Archie Cobbs
FYI, Just testing current CVS with JCVM and I'm also getting this assertion failure: jc: mprec.c:100: _Jv_Balloc: Assertion `(1 k) 32' failed. This is on SuSE 10 on an x86 laptop (Dell Latitude D810). -Archie __

Re: Assertion failure

2006-01-09 Thread Christian Thalinger
On Mon, 2006-01-09 at 18:02 -0600, Archie Cobbs wrote: FYI, Just testing current CVS with JCVM and I'm also getting this assertion failure: jc: mprec.c:100: _Jv_Balloc: Assertion `(1 k) 32' failed. This is on SuSE 10 on an x86 laptop (Dell Latitude D810). It's interesting that

Re: gnu.xml.dom.DomText implements Text and NodeList.

2006-01-09 Thread Pedro Izecksohn
We ask that people agree to the GNU Classpath Hackers requirements before granting CVS commit permissions. You can find them at: http://www.gnu.org/software/classpath/docs/hacking.html#SEC2 I'm submiting source code to this list to be included in the GNU classpath project, assuring that I wrote

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

2006-01-09 Thread Audrius Meskauskas
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Audrius Meskauskas [EMAIL PROTECTED] 06/01/09 17:33:57 Modified files: . : ChangeLog Added files: javax/management: Attribute.java Log message: 2006-01-09

[commit-cp] classpath ./ChangeLog java/net/InetAddress.java

2006-01-09 Thread Mark Wielaard
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Mark Wielaard [EMAIL PROTECTED] 06/01/09 18:39:22 Modified files: . : ChangeLog java/net : InetAddress.java Log message: * java/net/InetAddress.java

[commit-cp] classpath ./ChangeLog java/beans/Introspector.java

2006-01-09 Thread Robert Schuster
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Robert Schuster [EMAIL PROTECTED] 06/01/09 20:19:57 Modified files: . : ChangeLog java/beans : Introspector.java Log message: Fixes PR #25431

[commit-cp] classpath ./ChangeLog javax/swing/text/DefaultS...

2006-01-09 Thread Anthony Balkissoon
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Anthony Balkissoon [EMAIL PROTECTED] 06/01/09 18:57:23 Modified files: . : ChangeLog javax/swing/text: DefaultStyledDocument.java Log message: 2006-01-09 Anthony

[commit-cp] classpath ./ChangeLog gnu/java/nio/channels/Fil...

2006-01-09 Thread Mark Wielaard
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Mark Wielaard [EMAIL PROTECTED] 06/01/09 20:42:43 Modified files: . : ChangeLog gnu/java/nio/channels: FileChannelImpl.java native/jni/java-nio:

[commit-cp] classpath ./ChangeLog native/jni/java-net/gnu_j...

2006-01-09 Thread Roman Kennke
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Roman Kennke [EMAIL PROTECTED]06/01/09 21:30:15 Modified files: . : ChangeLog native/jni/java-net: gnu_java_net_VMPlainDatagramSocketImpl.c

[commit-cp] classpath ./ChangeLog java/beans/EventSetDescri...

2006-01-09 Thread Robert Schuster
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Robert Schuster [EMAIL PROTECTED] 06/01/09 23:40:48 Modified files: . : ChangeLog java/beans : EventSetDescriptor.java Log message: Makes

[commit-cp] classpath ./ChangeLog java/util/AbstractMap.jav...

2006-01-09 Thread Jeroen Frijters
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Jeroen Frijters [EMAIL PROTECTED] 06/01/10 07:26:04 Modified files: . : ChangeLog java/util : AbstractMap.java WeakHashMap.java Log message: 2006-01-06