Re: [cp-patches] RFC: Remove default 'Expect 100-continue' usage in HTTP Requests

2006-02-09 Thread Wolfgang Baer
Wolfgang Baer wrote: Hi, this patch removes the default 'Expect 100-continue' usage if the content length exceeds a certain treshold (by default 4096 bytes). There is still support that user intended 'Expect 100-continue' headers will work. The background for this patch was explained in

Re: [cp-patches] RFC: Adding missing IllegalState and null value checks to HTTPURLConnection

2006-02-09 Thread Wolfgang Baer
Wolfgang Baer wrote: Hi, this patch adds missing checks for already connected and a special treatment of null in getRequestProperty. This makes the yesterday committed mauve testcases illegalStateException and nullPointerException and getRequestProperty pass. 2006-02-05 Wolfgang Baer

[cp-patches] FYI: Added ASN.1 encoding/decoding support to RSA keys

2006-02-09 Thread Raif S. Naffah
hello there, the attached patch --already committed-- adds ASN.1 encoding and decoding capabilities to the RSA key-pair implementation. 2006-02-09 Raif S. Naffah [EMAIL PROTECTED] * gnu/java/security/key/rsa/RSAKeyPairX509Codec.java: New file. *

[cp-patches] RFC: GtkScrollbarPeer min == max

2006-02-09 Thread Mark Wielaard
Hi, gtk_range_set_range doesn't allow setting min == max. But Scrollbar does allow that. The following patch makes sure that we set max to be bigger than min and make sure that the page_size is at least max - min so to the user it just looks like a scrollbar that cannot be adjusted (this works

[cp-patches] FYI: BasicTextUI fixlet

2006-02-09 Thread Roman Kennke
While hacking on text stuff and observing Sun's behaviour I noticed that View.setSize() is always called before paint() by the RootView. That makes sense, that makes sure that the layout of a view hierarchy is updated correctly before painting anything. 2006-02-09 Roman Kennke [EMAIL PROTECTED]

[cp-patches] FYI: javax.swing.text update

2006-02-09 Thread Roman Kennke
The attached patch fixes a lot of issues with styled text in Swing and make it more usable with respect to performance and rendering. Try BeanShell for example. 2006-02-09 Roman Kennke [EMAIL PROTECTED] * javax/swing/text/BoxView.java (myAxis): Made field private.

[cp-patches] RFC: gnu.regexp: nested character class expression supported

2006-02-09 Thread Ito Kazumitsu
I think gnu/regexp/RE.java is becoming too big. It would be better if we could separate RE compiler and matcher. 2006-02-09 Ito Kazumitsu [EMAIL PROTECTED] Fixes bug #26166 * gnu/regexp/RE.java(initialize): Parsing of character class expression was moved to a new

[cp-patches] Patch: GtkPanelPeer and GtkWindowPeer fix

2006-02-09 Thread Lillian Angel
Many test cases I have, show that Sun does not call update(Graphics) on Panels or Windows. Only paint(Graphics) is called. Many widgets were being cleared and not repainted properly when update was called. 2006-02-09 Lillian Angel [EMAIL PROTECTED] *

Re: [cp-patches] RFC: GtkScrollbarPeer min == max

2006-02-09 Thread Thomas Fitzsimmons
On Thu, 2006-02-09 at 13:37 +0100, Mark Wielaard wrote: Hi, gtk_range_set_range doesn't allow setting min == max. But Scrollbar does allow that. The following patch makes sure that we set max to be bigger than min and make sure that the page_size is at least max - min so to the user it just

[cp-patches] RFC: JTable.tableChanged(null)

2006-02-09 Thread Mark Wielaard
Hi, I got a program here (the hsqldb DatabaseManagerSwing) that expects to be able to fire null events to a TableModel when everything about the model has changed. JTable wasn't handling that. Here is a proposed patch: 2006-02-09 Mark Wielaard [EMAIL PROTECTED] * javax/swing/JTable.java

Re: [cp-patches] RFC: JTable.tableChanged(null)

2006-02-09 Thread Roman Kennke
Hi Mark, Am Donnerstag, den 09.02.2006, 17:31 +0100 schrieb Mark Wielaard: Hi, I got a program here (the hsqldb DatabaseManagerSwing) that expects to be able to fire null events to a TableModel when everything about the model has changed. JTable wasn't handling that. Here is a proposed

[cp-patches] FYI: DefaultCaret fix

2006-02-09 Thread Roman Kennke
I added some checks and code to make sure the dot location in DefaultCaret is always valid. 2006-02-09 Roman Kennke [EMAIL PROTECTED] * javax/swing/text/DefaultCaret.java (DocumentHandler.removeUpdate): When update policy is 'on eventqueue', and the update doesn't come

Re: [cp-patches] RFC: Time out HTTP keep-alive connections

2006-02-09 Thread David Daney
David Daney wrote: +class GetPropertiesAction + implements PrivilegedAction +{ + public Object run() + { +String ttl = System.getProperty(classpath.net.http.keepAliveTTL); +connectionTTL = (ttl != null ttl.length() 0) ? + 1000 * Math.max(1,

[cp-patches] FYI: Added rmic code generator to the /tools

2006-02-09 Thread Audrius Meskauskas
This patch adds java.rmi version jdk 1.2+ stub generator to the classpath tools package. Unlike rmic from the cp-tools project (that generates classes but cannot generate the source code) this version generates only source code that must be compiled with any java compiler. Source code (rather

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-09 Thread Wolfgang Baer
Hi all, Wolfgang Baer wrote: Hi, David Daney wrote: Perhaps make isError() a member of Response Yes, I also thought of this. Its in HTTPURLConnection because there is already a method isRedirect(Response r). Both should be moved to Response. Committed as attached. Changes over the

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-09 Thread David Daney
Wolfgang Baer wrote: Hi all, Wolfgang Baer wrote: Hi, David Daney wrote: Perhaps make isError() a member of Response Yes, I also thought of this. Its in HTTPURLConnection because there is already a method isRedirect(Response r). Both should be moved to Response. Committed as

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-09 Thread Wolfgang Baer
David Daney wrote: Thanks, please update: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26081 as appropriate. If this fixes that bug (which I think it does) the changelog should be prefixed with 'PR classpath/26081' Sorry forgot to include this in the changelog - I have updated it now.

Re: [cp-patches] RFC: HTTPURLConnection fixlet

2006-02-09 Thread David Daney
Wolfgang Baer wrote: David Daney wrote: Thanks, please update: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26081 as appropriate. If this fixes that bug (which I think it does) the changelog should be prefixed with 'PR classpath/26081' Sorry forgot to include this in the changelog - I have

[cp-patches] FYI: SpinnerDateModel/SpinnerNumberModel.java - removed tabs

2006-02-09 Thread David Gilbert
I committed this patch to remove tabs from two files, these mess up the source code output in the gjdoc-generated API documentation: 2006-02-09 David Gilbert [EMAIL PROTECTED] * javax/swing/SpinnerDateModel.java: Removed tabs, * javax/swing/SpinnerNumberModel.java: Likewise.

[cp-patches] FYI: Tools build correction

2006-02-09 Thread Audrius Meskauskas
2006-02-09 Audrius Meskauskas [EMAIL PROTECTED] tools/makefile.am: Handle rmi and giop folders separately. Index: Makefile.am === RCS file: /sources/classpath/classpath/tools/Makefile.am,v retrieving revision 1.4 diff -u -r1.4

[cp-patches] FYI: More styled text

2006-02-09 Thread Roman Kennke
Some more robustness, correctness and completeness fixes for javax.swing.text Views. This corrects a misinterpretation in modelToView. We have been throwing BadLocationExceptions when the position is outside of the view's bounds. However, this should really only be thrown if the position is

[cp-patches] RFC: Don't unnecessary double queue GtkComponentPeer.repaint() events

2006-02-09 Thread Mark Wielaard
Hi, While debugging some awt gtk+ peer issues I noticed that we always route repaint events through 2 queues. First we create a Timer and put it in there. Second we put it in the actual system event queue. If the repaint is requested immediately that is overkill. And looking at a couple of sample

Re: [cp-patches] FYI: Added rmic code generator to the /tools

2006-02-09 Thread Tom Tromey
Audrius == Audrius Meskauskas [EMAIL PROTECTED] writes: Audrius This patch adds java.rmi version jdk 1.2+ stub generator to the Audrius classpath tools package. We used to have rmic in classpath. Then we moved it to classpath-tools. Then Archit rewrote it to use ASM instead of having it

Usage of System.getProperty() vs. SystemProperties.getProperty()

2006-02-09 Thread Wolfgang Baer
Hi all, I am a bit confused when to use the internal SystemProperties.getProperty() method over the normal System.getProperty() method. Until now I thought SystemProperties.getProperty() is to be used inside the internal gnu.* namespace as it should be save here to call without the security

Re: Classpath on Cgwin: UnsatisfiedLinkError problem

2006-02-09 Thread Dalibor Topic
On Wed, 2006-02-08 at 21:11 -0600, Archie Cobbs wrote: S. Meslin-Weber wrote: VM writers typically handle the delegated loadLibrary() call via their implementation of the VM* interface classes and in their own native code. As cygwin uses a decidedly odd naming convention for its dlls,

Re: Usage of System.getProperty() vs. SystemProperties.getProperty()

2006-02-09 Thread Gary Benson
Jeroen Frijters wrote: Wolfgang Baer wrote: I am a bit confused when to use the internal SystemProperties.getProperty() method over the normal System.getProperty() method. When writing new code (or modifying existing code) you should almost always use SystemProperties.getProperty().

GtkComponentPeer realization

2006-02-09 Thread Mark Wielaard
Hi, After a lot of debugging I finally found out why a program I was testing was crashing sometimes. (The hsqldb AWT frontend - try the org.hsqldb.util.DatabaseManager class from the hsqldb.jar as distributed with OpenOffice for example.) A GtkGraphics object is created differently for realized

Re: GtkComponentPeer realization

2006-02-09 Thread Thomas Fitzsimmons
On Thu, 2006-02-09 at 13:52 +0100, Mark Wielaard wrote: Hi, After a lot of debugging I finally found out why a program I was testing was crashing sometimes. (The hsqldb AWT frontend - try the org.hsqldb.util.DatabaseManager class from the hsqldb.jar as distributed with OpenOffice for

Re: Classpath on Cgwin: UnsatisfiedLinkError problem

2006-02-09 Thread Enrico Migliore
Archie Cobbs wrote: S. Meslin-Weber wrote: VM writers typically handle the delegated loadLibrary() call via their implementation of the VM* interface classes and in their own native code. As cygwin uses a decidedly odd naming convention for its dlls, I'd say those parts of jc would need to

Re: Usage of System.getProperty() vs. SystemProperties.getProperty()

2006-02-09 Thread Tom Tromey
Gary == Gary Benson [EMAIL PROTECTED] writes: The reason there is still a lot of code that uses System.getProperty() is either historical (i.e. SystemProperties was introduced after that code was written) or because the author was unaware of SystemProperties. We've not been as careful about

Re: Usage of System.getProperty() vs. SystemProperties.getProperty()

2006-02-09 Thread David Daney
Tom Tromey wrote: Gary == Gary Benson [EMAIL PROTECTED] writes: The reason there is still a lot of code that uses System.getProperty() is either historical (i.e. SystemProperties was introduced after that code was written) or because the author was unaware of SystemProperties. We've not

Re: Usage of System.getProperty() vs. SystemProperties.getProperty()

2006-02-09 Thread Tom Tromey
David == David Daney [EMAIL PROTECTED] writes: David So what should happen in a class like David gnu/java/net/protocol/http/HTTPConnection when we have to read David properties? David Should it use SystemProperties or PrivilegedAction? SystemProperties. David And is the answer documented

Re: GtkComponentPeer realization

2006-02-09 Thread Mark Wielaard
Hi Tom, On Thu, 2006-02-09 at 09:53 -0500, Thomas Fitzsimmons wrote: On Thu, 2006-02-09 at 13:52 +0100, Mark Wielaard wrote: I like to debug this a bit further, but I couldn't find good documentation on the handling of (un)realized GtkComponentPeers. Does anybody have a link or an

Re: Crypto/Security component in Bugzilla

2006-02-09 Thread Tom Tromey
Mark == Mark Wielaard [EMAIL PROTECTED] writes: Mark In that case it seems we don't need a keyword or meta-bug but just a new Mark 'security' component covering java.security.* (Permissions, Policies, Mark SecurityManager)? As I recall the discussion was about security as cross-cutting concern

Re: Qt-Peer thread design broken

2006-02-09 Thread Tom Tromey
Holger == Holger Schurig [EMAIL PROTECTED] writes: Holger I've create a VERY simply AWT app (in fact I copied it from Holger somewhere, as I'm not really a Java coder) [ Qt/AWT questions and patches and stuff ] I didn't see a reply to this on the list. Did anybody every reply to you? I'm not a

[commit-cp] classpath gnu/java/net/protocol/http/HTTPURLCon...

2006-02-09 Thread Wolfgang Baer
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Wolfgang Baer [EMAIL PROTECTED] 06/02/09 09:37:08 Modified files: gnu/java/net/protocol/http: HTTPURLConnection.java . : ChangeLog java/net :

[commit-cp] classpath gnu/java/security/jce/sig/EncodedKeyF...

2006-02-09 Thread Raif S. Naffah
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Raif S. Naffah [EMAIL PROTECTED] 06/02/09 11:52:49 Modified files: gnu/java/security/jce/sig: EncodedKeyFactory.java RSAKeyPairGeneratorSpi.java

[commit-cp] classpath ./ChangeLog gnu/regexp/RE.java gnu/re...

2006-02-09 Thread Ito Kazumitsu
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Ito Kazumitsu [EMAIL PROTECTED] 06/02/09 13:44:59 Modified files: . : ChangeLog gnu/regexp : RE.java REMatch.java java/util/regex: Matcher.java Log

[commit-cp] classpath ./ChangeLog gnu/java/awt/peer/gtk/Gtk...

2006-02-09 Thread Lillian Angel
CVSROOT:/sources/classpath Module name:classpath Branch: Changes by: Lillian Angel [EMAIL PROTECTED] 06/02/09 15:41:35 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkPanelPeer.java GtkWindowPeer.java Log message:

[commit-cp] classpath javax/swing/plaf/basic/BasicTextUI.ja...

2006-02-09 Thread Roman Kennke
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Roman Kennke [EMAIL PROTECTED]06/02/09 13:56:29 Modified files: javax/swing/plaf/basic: BasicTextUI.java . : ChangeLog Log message: 2006-02-09 Roman

[commit-cp] classpath ./ChangeLog native/jni/gtk-peer/gnu_j...

2006-02-09 Thread Mark Wielaard
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Mark Wielaard [EMAIL PROTECTED] 06/02/09 16:00:49 Modified files: . : ChangeLog native/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkScrollbarPeer.c Log message: *

[commit-cp] classpath/javax/swing/text DefaultCaret.java

2006-02-09 Thread Roman Kennke
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Roman Kennke [EMAIL PROTECTED]06/02/09 17:15:33 Modified files: javax/swing/text: DefaultCaret.java Log message: 2006-02-09 Roman Kennke [EMAIL PROTECTED] *

[commit-cp] classpath gnu/java/net/protocol/http/HTTPURLCon...

2006-02-09 Thread Wolfgang Baer
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Wolfgang Baer [EMAIL PROTECTED] 06/02/09 20:54:56 Modified files: gnu/java/net/protocol/http: HTTPURLConnection.java Response.java . : ChangeLog Log message:

[commit-cp] classpath ./ChangeLog doc/unicode/SpecialCasing...

2006-02-09 Thread Anthony Balkissoon
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Anthony Balkissoon [EMAIL PROTECTED] 06/02/09 21:15:55 Modified files: . : ChangeLog Added files: doc/unicode: SpecialCasing-4.0.0.txt UnicodeData-4.0.0.txt Log

[commit-cp] classpath ChangeLog

2006-02-09 Thread Wolfgang Baer
CVSROOT:/cvsroot/classpath Module name:classpath Branch: Changes by: Wolfgang Baer [EMAIL PROTECTED] 06/02/09 21:21:17 Modified files: . : ChangeLog Log message: Fixed changelog to include PR number CVSWeb URLs: