[cp-patches] FYI: Simple1LineFormatter amendment

2006-05-07 Thread Raif S. Naffah
hello all, the attached patch --already committed-- delays the class initialization of DateFormat and NumberFormat classes; which otherwise may cause bootstrapping problems with some VMs. 2006-05-07 Raif S. Naffah <[EMAIL PROTECTED]> * gnu/classpath/debug/Simple1LineFormatter.java (D

[cp-patches] FYI: Some Keyring class amendments

2006-05-07 Thread Raif S. Naffah
hello all, the attached patch --already committed-- adds trace/debug/timing to the PasswordEncryptedEntry and PasswordAuthenticatedEntry keyring classes; replaces the instantiation of new SecureRandome in some methods (in the same classes as above) by a call to the PRNG utility; and finally fix

Re: [cp-patches] TransformerFactoryImpl

2006-05-07 Thread Chris Burdess
Jeroen Frijters wrote: 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 obviou

Re: [cp-patches] Patch: JLabel fix

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 15:10 -0400, Lillian Angel wrote: > 2006-05-04 Lillian Angel <[EMAIL PROTECTED]> > > * javax/swing/JLabel.java > (JLabel): Pass in an empty string for the text parameter. > (JLabel): Likewise. > (JLabel): Likewise. Committed to the release

Re: [cp-patches] FYI: bug fix to the keytool ExportCmd

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 09:19 +1000, Raif S. Naffah wrote: > > 2006-05-04 Raif S. Naffah <[EMAIL PROTECTED]> > > * tools/gnu/classpath/tools/keytool/ExportCmd.java (setup): > Use _alias instead of alias. Committed to the release branch. -- Andrew :-) Please avoid sending me Mi

Re: [cp-patches] FYI: JTable fixes

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 14:13 +0200, Roman Kennke wrote: > The attached patch fixes a couple of issues in JTables: > - the border color for selected cells was not correct in the Metal L&F > - the table was not painted correctly. The grid must be painted to the > right and bottom of each cell, we pain

Re: [cp-patches] FYI: More JTable fixes

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 14:19 +0200, Roman Kennke wrote: > I forgot one patch. This one fixes the colors and borders for selected > table cells. > > 2006-05-04 Roman Kennke <[EMAIL PROTECTED]> > > * javax/swing/table/DefaultTableCellModel.java > (noFocusBorder): Fixed width of empt

Re: [cp-patches] FYI: RasterGraphics implementation

2006-05-07 Thread Andrew John Hughes
On Sun, 2006-05-07 at 03:46 +0200, Roman Kennke wrote: > 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 Buffe

Re: [cp-patches] FYI: Java2D painting and compositing

2006-05-07 Thread Andrew John Hughes
On Sun, 2006-05-07 at 03:37 +0200, Roman Kennke wrote: > 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#java2

Re: [cp-patches] FYI: AbstractButton new methods

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 15:14 +0200, Roman Kennke wrote: > I noticed that in AbstractButton we have two new methods since 1.5: > addImp() and setLayout(). After playing around with them I figured that > addImpl() installs an OverlayLayout, but only in the case when the > client app hasn't installed a

Re: [cp-patches] FYI: AlphaCompositeContext fixes

2006-05-07 Thread Andrew John Hughes
On Sun, 2006-05-07 at 03:17 +0200, Roman Kennke wrote: > 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 Ken

Re: [cp-patches] FYI: ColorModel fix

2006-05-07 Thread Andrew John Hughes
On Fri, 2006-05-05 at 15:08 +0200, Roman Kennke wrote: > In ColorModel the method getNormalizedComponents hasn't been implemented > with the remark, that subclasses are expected to implement that method. > This seems not quite right, according to the API specs and I filled in > the missing 'fallbac

Re: [cp-patches] FYI: BasicRadioButtonUI fixlet

2006-05-07 Thread Andrew John Hughes
On Fri, 2006-05-05 at 13:59 +0200, Roman Kennke wrote: > I was having a problem with an application that overrides setEnabled() > and isEnabled() in a JCheckBox in an weird way, which ended up in an > inconstisant state of JCheckBox.isEnabled() and > JCheckBox.getButtonModel().isEnabled(). This cau

Re: [cp-patches] FYI: JLabel fixlets

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 15:30 +0200, Roman Kennke wrote: > I tagged some methods in JLabel as not implemented, added comments to > others and changed paramString() to return super.paramString() which > provides more meaningful information than "JLabel". > > 2006-05-04 Roman Kennke <[EMAIL PROTECTED

Re: [cp-patches] FYI: BasicButtonListener fixlet

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 16:48 +0200, Roman Kennke wrote: > When playing with some apps I noticed that our conditions in > BasicButtonListener.mouseEntered() where not quite right. Fixed by the > attached patch. > > 2006-05-04 Roman Kennke <[EMAIL PROTECTED]> > > * javax/swing/plaf/basic/Ba

Re: [cp-patches] FYI: AccessibleJOptionPane fixlet

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 16:12 +0200, Roman Kennke wrote: > I implemented one stubbed method in AccessibleJOptionPane. > > 2006-05-04 Roman Kennke <[EMAIL PROTECTED]> > > * javax/swing/JOptionPane.java > (AccessibleJOptionPane.getAccessibleRole): Implemented method. > > /Roman Com

Re: [cp-patches] FYI: JComponent painting fixlet

2006-05-07 Thread Andrew John Hughes
On Thu, 2006-05-04 at 15:22 +0200, Roman Kennke wrote: > I added a null check in JComponent.paint() to avoid an NPE when the clip > is null. The clip is allowed to be null, but with the GTK peers it seems > it never becomes actually null. I came across this while playing with my > XAWT peers. > >

Re: [cp-patches] FYI: JTable fix

2006-05-07 Thread Andrew John Hughes
On Fri, 2006-05-05 at 11:42 +0200, Roman Kennke wrote: > The selection model of a JTable must be synced when the table model > changes (i.e. insertion/removal of rows). This patch fixes this. > > 2006-05-05 Roman Kennke <[EMAIL PROTECTED]> > > * javax/swing/JTable.java > (tableCh

[cp-patches] FYI: Fix for PR#27311

2006-05-07 Thread Andrew John Hughes
I'm committing the attached patch to fix PR#27311. The exponent shouldn't be calculated when the number is 0 or below, as the log is either negative infinity or NaN. We can also now use log10 rather than dividing two separate logarithms. I'll commit this to the release branch as well. Changelog:

Re: [cp-patches] FYI: Cursor fixes

2006-05-07 Thread Andrew John Hughes
On Sun, 2006-05-07 at 02:13 +0200, Sven de Marothy wrote: > 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 rese

Re: [cp-patches] FYI: GtkImage fix

2006-05-07 Thread Andrew John Hughes
On Sat, 2006-05-06 at 23:07 +0200, Sven de Marothy wrote: > 2006-05-06 Sven de Marothy <[EMAIL PROTECTED]> > > Fixed PR27454 > * gnu/java/awt/peer/gtk/GtkImage: (drawPixels,drawPixelsScaled): > Check for zero image sizes. Committed to the release branch. -- Andrew :-) Please avoi

[cp-patches] FYI: JInternalFrame icon fix

2006-05-07 Thread Sven de Marothy
2006-05-07 Sven de Marothy <[EMAIL PROTECTED]> Fixed PR27463 * javax/swing/plaf/metal/MetalInternalFrameTitlePane.java (propertyChange): Handle FRAME_ICON_PROPERTY property. Index: javax/swing/plaf/metal/MetalInternalFrameTitlePane.java ==

Re: [cp-patches] FYI: JInternalFrame icon fix

2006-05-07 Thread Andrew John Hughes
On Sun, 2006-05-07 at 23:42 +0200, Sven de Marothy wrote: > 2006-05-07 Sven de Marothy <[EMAIL PROTECTED]> > > Fixed PR27463 > * javax/swing/plaf/metal/MetalInternalFrameTitlePane.java > (propertyChange): Handle FRAME_ICON_PROPERTY property. > Committed to the release br

[cp-patches] FYI: Calendar fix (PR 27343)

2006-05-07 Thread Sven de Marothy
2006-05-07 Sven de Marothy <[EMAIL PROTECTED]> Fixed PR27343 * java/util/Calendar.java (setTimeZone): Force recalculation. Index: java/util/Calendar.java === RCS file: /sources/classpath/classpath/java/util/

[cp-patches] FYI: PR#27435 fix

2006-05-07 Thread Andrew John Hughes
I'm committing the attached patch to fix bug #27435. The buffer should be emptied when it gets full to prevent an ArrayOutOfBoundsException. Changelog: 2006-05-07 Andrew John Hughes <[EMAIL PROTECTED]> PR classpath/27435: * java/util/zip/DeflaterEngine.java: (deflateFas

Re: [cp-patches] FYI: PR#27435 fix

2006-05-07 Thread Andrew John Hughes
On Mon, 2006-05-08 at 00:00 +0100, Andrew John Hughes wrote: > I'm committing the attached patch to fix bug #27435. > The buffer should be emptied when it gets full to prevent > an ArrayOutOfBoundsException. > > Changelog: > > 2006-05-07 Andrew John Hughes <[EMAIL PROTECTED]> > > PR clas

Re: [cp-patches] FYI: Calendar fix (PR 27343)

2006-05-07 Thread Andrew John Hughes
On Mon, 2006-05-08 at 00:46 +0200, Sven de Marothy wrote: > 2006-05-07 Sven de Marothy <[EMAIL PROTECTED]> > > Fixed PR27343 > * java/util/Calendar.java (setTimeZone): Force recalculation. > > Committed to the release branch. -- Andrew :) Department of Computer Science Univ