[cp-patches] TransformerFactoryImpl

2006-05-06 Thread Jeroen Frijters
Hi Chris, I know nothing about the XML APIs, so I hope this isn't a dumb question but I just debugged some code from a user of IKVM and it did the following: SAXTransformerFactory factory = (SAXTransformerFactory)TransformerFactory.newInstance(); On the JDK this works. Now obviously the document

[cp-patches] FYI: RasterGraphics implementation

2006-05-06 Thread Roman Kennke
Here I provide an implementation of the new Java2D, it's called RasterGraphics and extends AbstractGraphics2D for arbitrary Rasters. This implementation serves two purposes: 1. (most importantly) provide capability to render on BufferedImages 2. demonstrate how a (most simple) backend for Abstract

[cp-patches] FYI: Java2D painting and compositing

2006-05-06 Thread Roman Kennke
I implemented support for painting (Color, Texture and Gradient, at least theoretically - see below) and compositing for the AbstractGraphics2D class. This allows for the following: http://kennke.org/blog/blosxom.cgi/2006/05/06#java2d This means that the rendering pipeline is mostly complete. I h

[cp-patches] FYI: AlphaCompositeContext fixes

2006-05-06 Thread Roman Kennke
I fixed a couple of bugs in my (completely naive and until now untested) implementation of AlphaCompositeContext. Compositing works correctly now, albeit awfully slow: http://kennke.org/~roman/java2d.png 2006-05-07 Roman Kennke <[EMAIL PROTECTED]> * gnu/java/awt/java2d/AlphaCompositeCo

[cp-patches] FYI: ColorPaintContext fix

2006-05-06 Thread Roman Kennke
While experimenting with the rendering pipeline for Java2D I noticed that the ColorPaintContext for java.awt.Color was not working correctly. I committed the following patch to fix it. 2006-05-07 Roman Kennke <[EMAIL PROTECTED]> * java/awt/ColorPaintContext.java (ColorPaintContex

[cp-patches] FYI: Cursor fixes

2006-05-06 Thread Sven de Marothy
Hello, Having GLightweightPeer as a MouseListener (as per Mark's last fix) seems to add problems (clobbering the mouse-listener list). So now the setCursor call is done from Component instead. Also BasicTableHeaderUI didn't reset the cursor properly after changing to right-left on column resizing.

[cp-patches] FYI: GNU L&F handling fix for JTree.

2006-05-06 Thread Audrius Meskauskas
This patch fixes JTree L&F. Indeed, this L&F provides no control icons - these should not be painted. The path also includes the handling of the L&F switching in general. 2006-05-07 Audrius Meskauskas <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicTreeUI.java (NodeDimensionsHandler.

[cp-patches] FYI: GtkImage fix

2006-05-06 Thread Sven de Marothy
2006-05-06 Sven de Marothy <[EMAIL PROTECTED]> Fixed PR27454 * gnu/java/awt/peer/gtk/GtkImage: (drawPixels,drawPixelsScaled): Check for zero image sizes. -- Sven de Marothy <[EMAIL PROTECTED]> Index: gnu/java/awt/peer/gtk/GtkImage.java =

Re: [cp-patches] RFC: appletviewer for GNU Classpath

2006-05-06 Thread Tom Tromey
> "Tom" == Thomas Fitzsimmons <[EMAIL PROTECTED]> writes: Tom> JArgs is a good choice for argument support for a few reasons: it is Tom> very small, being a single source file, it is released under the Tom> modified BSD license, it has a nice API that makes sense to in the Tom> Java language a

[cp-patches] Patch: bug #27461

2006-05-06 Thread Yvan Norsa
Hi, I noticed a difference between Sun's ImageIcon constructor taking a URL parameter and Classpath's one. The Sun API doc says : "The icon's description is initialized to be a string representation of the URL.". Whereas in classpath the doc says : "[...] without any description set." The descrip

Re: [cp-patches] RFC: NIO, Non-blocking & Scatter/Gather (Again)

2006-05-06 Thread Casey Marshall
On May 6, 2006, at 5:30 AM, Michael Barker wrote: One nit is that gnu_java_nio_VMChannel.c doesn't compile with -Werror for me (Darwin/x86, gcc 4.0.1), due to some unused variables and missing prototypes. I'll attach a patch that fixes these warnings. What's the next step? I don't have CVS ac

[cp-patches] FYI: Force calendar complete() before clear(int) [PR27362]

2006-05-06 Thread Olivier Jolly
Hi, this tiny patch ensure that the calendar internal state is completed before the clear(int) main code is performed so that it doesn't swallow pending changes. Seen its size and impact, it's going to be committed in a minut .. Regards +Olivier 2006-05-06 Olivier Jolly <[EMAIL PROTECTED

[cp-patches] FYI: Fix for PR27128

2006-05-06 Thread Olivier Jolly
Committed. Olivier Jolly wrote: Hi, this patch makes sure that the UnmodifiableMap.entrySet() result can't be used to change the wrapped map using toArray() or toArray(Object[]). It does so by recreating a resulting array using UnmodifiableMapEntry, which has been extracted from the inner cl

Re: [cp-patches] RFC: NIO, Non-blocking & Scatter/Gather (Again)

2006-05-06 Thread Michael Barker
> I (finally!) took a look at this patch, and it looks fine to me; any > bugs with it are worth the risk to have a real implementation of > scatter/gather IO, in my opinion. Thanks, there are a couple tests checked into mauve that add further some coverage on this stuff > > One nit is that

[cp-patches] RFC: patch for bug #27454

2006-05-06 Thread Yvan Norsa
Hi, After reporting the bug about empty IconImage, I traced the code, and the problem is coming from trying to draw the "error image" in GTK. I noticed that when not passing width and height to drawImage(), the bug doesn't occur. That is because in drawPixelsScaled, the width and height parameter