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 havin

[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

[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 outsid

[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 Ma

[cp-patches] FYI: SpinnerDateModel/SpinnerNumberModel.java - API docs updated

2006-02-09 Thread David Gilbert
I committed this patch to fill in some API documentation: 2006-02-09 David Gilbert <[EMAIL PROTECTED]> * javax/swing/SpinnerDateModel.java: Updated API docs all over, * javax/swing/SpinnerNumberModel.java: Likewise. Regards, Dave Index: javax/swing/SpinnerDateModel.java =

[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.

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 u

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. De

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 attached.

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 ove

[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 tha

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, I

Re: [cp-patches] Patch: GtkPanelPeer and GtkWindowPeer fix

2006-02-09 Thread Lillian Angel
Added more to the checks to prevent any sort of painting assertion errors. 2006-02-09 Lillian Angel <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (handleEvent): Added more to check to prevent assertion errors. * gnu/java/awt/peer/gtk/GtkPanelPeer.java

[cp-patches] FYI: AbstractDocument fix

2006-02-09 Thread Roman Kennke
(second try) I fixed the AbstractDocument.remove() method so that everything is done inside a write lock, and is done in the correct order. 2006-02-09 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/text/AbstractDocument.java (remove): Perform all operations within a write lock

[cp-patches] FYI: AbstractDocument fix

2006-02-09 Thread Roman Kennke
AbstractDocument.remove should perform all operations within a write lock and the order is also fixed up by this patch. 2006-02-09 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/text/AbstractDocument.java (remove): Perform all operations within a write lock and in the co

[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: 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] 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: 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

[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]> * gnu/java/awt/peer/gtk/GtkPanelPeer

[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 meth

[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. (xL

[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] 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 bec

[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. * gnu/java/security/key/rsa/RSA

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 Wolfga

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 i