[cp-patches] FYI: scatter-gather NIO

2006-05-13 Thread Casey Marshall
Hi. I'm (finally) checking in Michael Barker's patch to better support socket and pipe channel scatter/gather IO. It seems to work fine for me on cacao/linux/x86 and jamvm/darwin/x86. 2006-05-13 Casey Marshall <[EMAIL PROTECTED]> Patch by Michael Barker <[EMAIL PROTECTED]>.

[cp-patches] RFC: fix for PR 27597

2006-05-13 Thread Robert Schuster
Hi, this patch should fix PR 27597[0], a problem that happening on the RI too but can be easily avoided. @Roman and the other Swing hackers: Do you think it is the correct way to fix this issue? The ChangeLog would look like this: 2006-05-14 Robert Schuster <[EMAIL PROTECTED]> * javax

Re: [cp-patches] FYI: fix for PR 27595

2006-05-13 Thread Robert Schuster
Hi, since this affects the users of 0.91 I would like to have that in the release branch. cya Robert Robert Schuster wrote: > Hi, > this patch fixes a problem where the filtering of newlines in a PlainDocument > instance used by a JTextField was not active because > AbstractDocument.replace() >

[cp-patches] FYI: fix for PR 27595

2006-05-13 Thread Robert Schuster
Hi, this patch fixes a problem where the filtering of newlines in a PlainDocument instance used by a JTextField was not active because AbstractDocument.replace() was not calling insertString but insertStringImpl. The former method has to be called because it is public and is overridden in PlainDocu

Re: [cp-patches] Patch: FYI: implementing missing nio method

2006-05-13 Thread Tom Tromey
> "Mark" == Mark Wielaard <[EMAIL PROTECTED]> writes: >> 2006-05-01 Tom Tromey <[EMAIL PROTECTED]> >> * java/nio/ByteBufferImpl.java (compact): Don't reset position >> in empty case. Mark> This does introduce a mauve regression. Sorry about that. Mark> Could you take a look? Fixed as app

[cp-patches] FYI2: improve JavaPrinterGraphics

2006-05-13 Thread Sven de Marothy
2006-05-13 Sven de Marothy <[EMAIL PROTECTED]> * gnu/java/awt/print/JavaPrinterGraphics.java (spoolPostScript): Use a faster writer. Index: gnu/java/awt/print/JavaPrinterGraphics.java === RCS file: /sources/cla

Re: [cp-patches] FYI: Cast null argument to String in appletviewer main

2006-05-13 Thread Tom Tromey
> "Mark" == Mark Wielaard <[EMAIL PROTECTED]> writes: Mark> 2006-05-11 Mark Wielaard <[EMAIL PROTECTED]> Mark> * tools/gnu/classpath/tools/appletviewer/Main.java (main): Cast Mark> Option constructor null argument to String. You can also just remove the final 'null' argument in

[cp-patches] FYI: improve JavaPrinterGraphics

2006-05-13 Thread Sven de Marothy
2006-05-13 Sven de Marothy <[EMAIL PROTECTED]> * gnu/java/awt/print/JavaPrinterGraphics.java (colorTripleHex): Reimplement better. -- Sven de Marothy <[EMAIL PROTECTED]> Index: gnu/java/awt/print/JavaPrinterGraphics.java

Re: [cp-patches] FYI: Socket timeout impl and fix

2006-05-13 Thread Michael Koch
On Sat, May 13, 2006 at 05:11:16PM +0200, Sven de Marothy wrote: > On Sat, 2006-05-13 at 16:58 +0200, Michael Koch wrote: > > > AFAIK Linux is the only one. If we want to stay portable we need to use > > select() and wait for the time of the timeout. In libgcj its already > > handled this way. Tha

[cp-patches] FYI: Implement java.awt.print

2006-05-13 Thread Sven de Marothy
So, here's a first implementation, thanks to Wolfgang's work. ATM it's fairly stupid, printing to an image and printing that (have patience if you think it's slow). But it's a big step up from nothing! 2006-05-13 Sven de Marothy <[EMAIL PROTECTED]> * gnu/javax/print/ipp/IppRequest.java

Re: [cp-patches] FYI: Socket timeout impl and fix

2006-05-13 Thread Sven de Marothy
On Sat, 2006-05-13 at 16:58 +0200, Michael Koch wrote: > AFAIK Linux is the only one. If we want to stay portable we need to use > select() and wait for the time of the timeout. In libgcj its already > handled this way. Thats the safest. Actually, I don't think we need to stay portable though. T

[cp-patches] Re: FYI: Implement java.awt.print (demo)

2006-05-13 Thread Sven de Marothy
Here's a little working demo program. /Sven import java.awt.*; import java.awt.event.*; import java.awt.print.*; public class Draw extends Frame implements ActionListener, Printable { public Draw() { setLayout(new BorderLayout()); Button b = new Button("Print"); add(b, BorderLayo

Re: [cp-patches] FYI: Socket timeout impl and fix

2006-05-13 Thread Michael Koch
On Sat, May 13, 2006 at 04:54:02PM +0200, Sven de Marothy wrote: > On Sat, 2006-05-13 at 13:54 +0200, Robert Schuster wrote: > > Hi, > > could you test whether Socket.setSoTimeout() really sets the send and > > receive > > timeout? > > > > I did, and it seems to work fine for me (A difference in

Re: [cp-patches] FYI: Socket timeout impl and fix

2006-05-13 Thread Sven de Marothy
On Sat, 2006-05-13 at 13:54 +0200, Robert Schuster wrote: > Hi, > could you test whether Socket.setSoTimeout() really sets the send and receive > timeout? > I did, and it seems to work fine for me (A difference in 3 minutes and 1 second timeout when you're setting it to 1 second is quite noticabl

FYI:Regression fix:Re: [cp-patches] FYI:JTree view and navigation fixes during the multiple selection

2006-05-13 Thread Audrius Meskauskas
2006-05-13 Audrius Meskauskas <[EMAIL PROTECTED]> * javax/swing/tree/DefaultTreeSelectionModel.java (leadRow): Initialise to -1. Mark Wielaard wrote: Hi Audrius, On Wed, 2006-04-26 at 14:28 +0200, Audrius Meskauskas wrote: 2006-04-26 Audrius Meskauskas <[EMAIL PROTECTED]> * java

[cp-patches] FYI: final fix for PR27220

2006-05-13 Thread Robert Schuster
Hi, this patch is the final bit that is needed to finish the work on PR27220[0]. It changes the TextAction implementation for forward, backward, upward and downward movement and selection to use the method getNextVisualPositionFrom. Through a helper method in Utilities this results in a call to th

Re: [cp-patches] FYI: Socket timeout impl and fix

2006-05-13 Thread Robert Schuster
Hi, could you test whether Socket.setSoTimeout() really sets the send and receive timeout? cya Robert Sven de Marothy wrote: > This adds the 1.5 timeout methods in URLConnection and implements them > for HttUrlConnection (and HttpsUrlConnection). > > It also fixes a long-standing bug in the na

[cp-patches] FYI: NavigationFilterDemo fix

2006-05-13 Thread Robert Schuster
Hi, this patch makes the NavigationFilterDemo a bit more robust. The magic caret postion is allowed to be null, so we have to check for this case. The ChangeLog: 2006-05-13 Robert Schuster <[EMAIL PROTECTED]> * examples/gnu/classpath/examples/swing/NavigationFilterDemo.java: (W

[cp-patches] FYI: Utilities fixes and additions

2006-05-13 Thread Robert Schuster
Hi, this patch adds a helper method which I need for the TextAction instances in DefaultEditorKit which I am currently rewriting (in other words the code is not used yet). More important are the small fixes to getWordStart and getPreviousWord. I found out that the RI gives other return values and

FYI:Regression fix:Re: [cp-patches] FYI:JTree view and navigation fixes during the multiple selection

2006-05-13 Thread Audrius Meskauskas
2006-05-13 Audrius Meskauskas <[EMAIL PROTECTED]> * javax/swing/tree/DefaultTreeSelectionModel.java (leadRow): Initialise to -1. Mark Wielaard wrote: Hi Audrius, On Wed, 2006-04-26 at 14:28 +0200, Audrius Meskauskas wrote: 2006-04-26 Audrius Meskauskas <[EMAIL PROTECTED]> *