[cp-patches] FYI: Fix bmp writer

2008-06-15 Thread Mario Torre
Last patch for today :) (maybe...)

This one fixes a problem in our bmp writer, where the stream is closed
twice, resulting in an exception.

Once again, the full changelog for all the patchset follows (I'm going
to commit all together... Hey, we really want mercurial soon!!!).

Thanks,
Mario

2008-06-15  Mario Torre  [EMAIL PROTECTED]

* gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): delegate to
setPaint.
(setPaint): fix to set paint context and foreground color.
(imageCache): new field.
(drawImage): new codepath for scaling images.
(prepareImage): new method.
(getPaintContext): set paintContext appropriately.
* gnu/java/awt/java2d/RasterGraphics.java (renderScanline): new method,
override from superclass to detect correct value of y while rendering
the scanline.
* gnu/java/awt/java2d/ScanlineConverter.java (renderShape): revert
previous
patch. 
* gnu/java/awt/peer/x/XEventPump.java (findMouseEventTarget): new
method.
(handleButtonPress): use of findMouseEventTarget to detect the correct
target.
(handleButtonRelease):  likewise.
* gnu/java/awt/peer/x/XGraphics2D.java (rawDrawImage): clip the target
image
so that it is completely contained in the destination pixmaps, as per
X11
specification.
* gnu/java/awt/peer/x/XToolkit.java (createTextField): method
implemented. 
(createButton): likewise.
(prepareImage): likewise.
(createLabel): likewise.
(checkImage): likewise.
(createTextArea): likewise.
(createCheckbox): likewise.
(checkHeadLess): new method.
* gnu/javax/imageio/bmp/BMPImageWriter.java (write):
don't close the stream.
* gnu/javax/imageio/bmp/BMPImageWriterSpi.java (names): added new names
to
the list of known names for BMP.
* java/awt/image/WritableRaster.java (createWritableTranslatedChild): 
* javax/imageio/ImageIO.java (write): call dispose on ImageWriter after
writing of the image.
### Eclipse Workspace Patch 1.0
#P classpath
Index: gnu/javax/imageio/bmp/BMPImageWriter.java
===
RCS file: /sources/classpath/classpath/gnu/javax/imageio/bmp/BMPImageWriter.java,v
retrieving revision 1.1
diff -u -r1.1 BMPImageWriter.java
--- gnu/javax/imageio/bmp/BMPImageWriter.java	20 Mar 2006 22:33:48 -	1.1
+++ gnu/javax/imageio/bmp/BMPImageWriter.java	15 Jun 2008 17:55:38 -
@@ -178,7 +178,6 @@
   encoder.encode(out, streamMetadata, image, param);
 else
   throw new BMPException(Encoder has not been initialized.);
-out.close();
   }
   
   /**
Index: gnu/javax/imageio/bmp/BMPImageWriterSpi.java
===
RCS file: /sources/classpath/classpath/gnu/javax/imageio/bmp/BMPImageWriterSpi.java,v
retrieving revision 1.1
diff -u -r1.1 BMPImageWriterSpi.java
--- gnu/javax/imageio/bmp/BMPImageWriterSpi.java	20 Mar 2006 22:33:48 -	1.1
+++ gnu/javax/imageio/bmp/BMPImageWriterSpi.java	15 Jun 2008 17:55:38 -
@@ -51,7 +51,7 @@
   static final String vendorName = GNU;
   static final String version = 0.1;
   static final String writerClassName = gnu.javax.imageio.bmp.BMPImageWriter;
-  static final String[] names = { Microsoft Windows BMP };
+  static final String[] names = { bmp, BMP, Microsoft Windows BMP };
   static final String[] suffixes = { .bmp, .bm };
   static final String[] MIMETypes = { image/bmp, image/x-windows-bmp };
   static final String[] readerSpiNames = { gnu.javax.imageio.bmp.BMPImageReaderSpi };
Index: javax/imageio/ImageIO.java
===
RCS file: /sources/classpath/classpath/javax/imageio/ImageIO.java,v
retrieving revision 1.12
diff -u -r1.12 ImageIO.java
--- javax/imageio/ImageIO.java	10 Dec 2006 20:25:46 -	1.12
+++ javax/imageio/ImageIO.java	15 Jun 2008 17:55:39 -
@@ -851,6 +851,7 @@
   }
 
 w.write(null, img, null);
+w.dispose();
 output.close();
 return true;
   }


[cp-patches] FYI: clip target image when painting on a Pixmaps in escher.

2008-06-15 Thread Mario Torre
Second patch out of 3 patches...

This one fixes a problem in the escher peer, when we paint over a
pixmaps.

The X11 specs says that the image has to be fully contained in the
pixmaps, or a nice BatMatch is all we get :) (see the xlib::getImage
function for details if you are interested).

Again, the full changelog for all the patchset follows.

Thanks,
Mario

2008-06-15  Mario Torre  [EMAIL PROTECTED]

* gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): delegate to
setPaint.
(setPaint): fix to set paint context and foreground color.
(imageCache): new field.
(drawImage): new codepath for scaling images.
(prepareImage): new method.
(getPaintContext): set paintContext appropriately.
* gnu/java/awt/java2d/RasterGraphics.java (renderScanline): new method,
override from superclass to detect correct value of y while rendering
the scanline.
* gnu/java/awt/java2d/ScanlineConverter.java (renderShape): revert
previous
patch. 
* gnu/java/awt/peer/x/XEventPump.java (findMouseEventTarget): new
method.
(handleButtonPress): use of findMouseEventTarget to detect the correct
target.
(handleButtonRelease):  likewise.
* gnu/java/awt/peer/x/XGraphics2D.java (rawDrawImage): clip the target
image
so that it is completely contained in the destination pixmaps, as per
X11
specification.
* gnu/java/awt/peer/x/XToolkit.java (createTextField): method
implemented. 
(createButton): likewise.
(prepareImage): likewise.
(createLabel): likewise.
(checkImage): likewise.
(createTextArea): likewise.
(createCheckbox): likewise.
(checkHeadLess): new method.
* gnu/javax/imageio/bmp/BMPImageWriter.java (write):
don't close the stream.
* gnu/javax/imageio/bmp/BMPImageWriterSpi.java (names): added new names
to
the list of known names for BMP.
* java/awt/image/WritableRaster.java (createWritableTranslatedChild): 
* javax/imageio/ImageIO.java (write): call dispose on ImageWriter after
writing of the image.
-- 
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-53
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt

Please, support open standards:
http://opendocumentfellowship.org/petition/
http://www.nosoftwarepatents.com/
### Eclipse Workspace Patch 1.0
#P classpath
Index: gnu/java/awt/peer/x/XGraphics2D.java
===
RCS file: /sources/classpath/classpath/gnu/java/awt/peer/x/XGraphics2D.java,v
retrieving revision 1.11
diff -u -r1.11 XGraphics2D.java
--- gnu/java/awt/peer/x/XGraphics2D.java	7 May 2008 14:21:57 -	1.11
+++ gnu/java/awt/peer/x/XGraphics2D.java	15 Jun 2008 17:54:47 -
@@ -394,9 +394,23 @@
 xdrawable.put_image(xgc, zpixmap, x, y);
 imageCache.put(image, zpixmap);
   } else {
-ZPixmap zpixmap = (ZPixmap) xdrawable.image(x, y, w, h,
-0x,
-   gnu.x11.image.Image.Format.ZPIXMAP);
+
+// TODO optimize reusing the rectangles
+Rectangle source =
+  new Rectangle(0, 0, xdrawable.width, xdrawable.height);
+Rectangle target = new Rectangle(x, y, w, h);
+
+Rectangle destination = source.intersection(target); 
+
+x = destination.x;
+y = destination.y;
+w = destination.width;
+h = destination.height;
+
+ZPixmap zpixmap =
+  (ZPixmap) xdrawable.image(x, y, w, h,
+0x,
+gnu.x11.image.Image.Format.ZPIXMAP);
 for (int yy = 0; yy  h; yy++)
   {
 for (int xx = 0; xx  w; xx++)


Re: [cp-patches] FYI: scanline fix and image scaling for escher.

2008-06-15 Thread Andrew John Hughes
On 15/06/2008, Mario Torre [EMAIL PROTECTED] wrote:
  One of 3 patches, i wish we could already use hg with the record
   extension...
 
   This patch fixes a few problems in AbstractGraphics2D
   and RasterGraphics (which is not fully working yet anyway, but at least
   we avoid some nasty exceptions).
 
   Also, I'm syncing the image scaler code for escher that Roman wrote in
   Jamaica.
 
   The full changelog for all the patchset follows.
 
   Thanks,
   Mario
 
   2008-06-15  Mario Torre  [EMAIL PROTECTED]
 
  * gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): delegate to
  setPaint.
  (setPaint): fix to set paint context and foreground color.
  (imageCache): new field.
  (drawImage): new codepath for scaling images.
  (prepareImage): new method.
  (getPaintContext): set paintContext appropriately.
  * gnu/java/awt/java2d/RasterGraphics.java (renderScanline):
new method,
  override from superclass to detect correct value of y while rendering
  the scanline.
  * gnu/java/awt/java2d/ScanlineConverter.java (renderShape): revert
   previous
  patch.
  * gnu/java/awt/peer/x/XEventPump.java (findMouseEventTarget): new
   method.
  (handleButtonPress): use of findMouseEventTarget to detect
the correct
  target.
  (handleButtonRelease):  likewise.
  * gnu/java/awt/peer/x/XGraphics2D.java (rawDrawImage): clip
the target
   image
  so that it is completely contained in the destination pixmaps, as per
   X11
  specification.
  * gnu/java/awt/peer/x/XToolkit.java (createTextField): method
   implemented.
  (createButton): likewise.
  (prepareImage): likewise.
  (createLabel): likewise.
  (checkImage): likewise.
  (createTextArea): likewise.
  (createCheckbox): likewise.
  (checkHeadLess): new method.
  * gnu/javax/imageio/bmp/BMPImageWriter.java (write):
  don't close the stream.
  * gnu/javax/imageio/bmp/BMPImageWriterSpi.java (names):
added new names
   to
  the list of known names for BMP.
  * java/awt/image/WritableRaster.java (createWritableTranslatedChild):
  * javax/imageio/ImageIO.java (write): call dispose on
ImageWriter after
  writing of the image.
   --
   Mario Torre, Software Developer, http://www.jroller.com/neugens/
   aicas Allerton Interworks Computer Automated Systems GmbH
   Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
   http://www.aicas.com   * Tel: +49-721-663 968-53
   pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
   Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF
 
   USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
   Geschäftsführer: Dr. James J. Hunt
 
   Please, support open standards:
   http://opendocumentfellowship.org/petition/
   http://www.nosoftwarepatents.com/
 
 


This change breaks the build:

 Index: gnu/java/awt/java2d/RasterGraphics.java
 ===
 RCS file: 
/sources/classpath/classpath/gnu/java/awt/java2d/RasterGraphics.java,v
 retrieving revision 1.4
 diff -u -r1.4 RasterGraphics.java
 --- gnu/java/awt/java2d/RasterGraphics.java 29 May 2008 16:41:39
-  1.4
 +++ gnu/java/awt/java2d/RasterGraphics.java 15 Jun 2008 17:54:00 -
 @@ -38,6 +38,9 @@

  package gnu.java.awt.java2d;

 +import gnu.x11.image.ZPixmap;
 +
 +import java.awt.Color;

 --
 Andrew :-)

 Support Free Java!
 Contribute to GNU Classpath and the OpenJDK
 http://www.gnu.org/software/classpath
 http://openjdk.java.net

 PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
 Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8


Re: [cp-patches] FYI: scanline fix and image scaling for escher.

2008-06-15 Thread Mario Torre
Il giorno dom, 15/06/2008 alle 20.56 +0100, Andrew John Hughes ha
scritto:

 
 This change breaks the build:
 
 Index: gnu/java/awt/java2d/RasterGraphics.java
 ===
 RCS file: 
 /sources/classpath/classpath/gnu/java/awt/java2d/RasterGraphics.java,v
 retrieving revision 1.4
 diff -u -r1.4 RasterGraphics.java
 --- gnu/java/awt/java2d/RasterGraphics.java   29 May 2008 16:41:39 -  
 1.4
 +++ gnu/java/awt/java2d/RasterGraphics.java   15 Jun 2008 17:54:00 -
 @@ -38,6 +38,9 @@
 
  package gnu.java.awt.java2d;
 
 +import gnu.x11.image.ZPixmap;
 +
 +import java.awt.Color;

Ops, sorry, patch already committed :)

Mario

-- 
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-53
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt

Please, support open standards:
http://opendocumentfellowship.org/petition/
http://www.nosoftwarepatents.com/
### Eclipse Workspace Patch 1.0
#P classpath
Index: gnu/java/awt/java2d/RasterGraphics.java
===
RCS file: /sources/classpath/classpath/gnu/java/awt/java2d/RasterGraphics.java,v
retrieving revision 1.5
diff -u -r1.5 RasterGraphics.java
--- gnu/java/awt/java2d/RasterGraphics.java	15 Jun 2008 18:14:55 -	1.5
+++ gnu/java/awt/java2d/RasterGraphics.java	15 Jun 2008 20:57:12 -
@@ -38,9 +38,6 @@
 
 package gnu.java.awt.java2d;
 
-import gnu.x11.image.ZPixmap;
-
-import java.awt.Color;
 import java.awt.GraphicsConfiguration;
 import java.awt.Rectangle;
 import java.awt.image.ColorModel;
Index: ChangeLog
===
RCS file: /sources/classpath/classpath/ChangeLog,v
retrieving revision 1.9642
diff -u -r1.9642 ChangeLog
--- ChangeLog	15 Jun 2008 18:14:56 -	1.9642
+++ ChangeLog	15 Jun 2008 20:57:12 -
@@ -1,4 +1,9 @@
 2008-06-15  Mario Torre  [EMAIL PROTECTED]
+
+	* gnu/java/awt/java2d/RasterGraphics.java: remove unused import that cause
+	compilation to fail when xpeers are not enabled.
+
+2008-06-15  Mario Torre  [EMAIL PROTECTED]
  
 * gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): delegate to
 setPaint.


[cp-patches] FYI: PR36477: Fix CPStringBuilder over-allocation issue

2008-06-15 Thread Andrew John Hughes
This fixes PR36477 by allocating a different new capacity when
allocating a new array following a write rather than growing.
CPStringBuilder was continually allocating larger and larger arrays
even when the current array was still underused.

ChangeLog:

2008-06-15  Andrew John Hughes  [EMAIL PROTECTED]

PR classpath/36477:
* gnu/java/lang/CPStringBuilder.java,
(setLength(int)): Don't ensure capacity when
new length is 0.
(ensureCapacity(int)): Allocate double the minimum
capacity rather than double the array length when
allocating a new array after a write.

--
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: gnu/java/lang/CPStringBuilder.java
===
RCS file: /sources/classpath/classpath/gnu/java/lang/CPStringBuilder.java,v
retrieving revision 1.9
diff -u -u -r1.9 CPStringBuilder.java
--- gnu/java/lang/CPStringBuilder.java  11 May 2008 22:57:16 -  1.9
+++ gnu/java/lang/CPStringBuilder.java  15 Jun 2008 21:25:21 -
@@ -204,8 +204,11 @@
 int valueLength = value.length;
 
 /* Always call ensureCapacity in order to preserve
-   copy-on-write semantics.  */
-ensureCapacity(newLength);
+   copy-on-write semantics, except when the position
+   is simply being reset
+*/
+if (newLength  0)
+  ensureCapacity(newLength);
 
 if (newLength  valueLength)
   {
@@ -1036,18 +1039,24 @@
* Increase the capacity of this codeStringBuilder/code. This will
* ensure that an expensive growing operation will not occur until either
* codeminimumCapacity/code is reached or the array has been allocated.
-   * The buffer is grown to the larger of codeminimumCapacity/code and
+   * The buffer is grown to either codeminimumCapacity * 2/code, if
+   * the array has been allocated or the larger of 
codeminimumCapacity/code and 
* codecapacity() * 2 + 2/code, if it is not already large enough.
*
* @param minimumCapacity the new capacity
-   * @see #capacity()
+   * @see #length()
*/
   public void ensureCapacity(int minimumCapacity)
   {
 if (allocated || minimumCapacity  value.length)
   {
-int max = value.length * 2 + 2;
-minimumCapacity = (minimumCapacity  max ? max : minimumCapacity);
+   if (minimumCapacity  value.length)
+ {
+   int max = value.length * 2 + 2;
+   minimumCapacity = (minimumCapacity  max ? max : minimumCapacity);
+ }
+   else
+ minimumCapacity *= 2;
allocateArray(minimumCapacity);
   }
   }


[cp-patches] FYI: PR36522 Fix typo in gnu.java.security.PolicyFile

2008-06-15 Thread Andrew John Hughes
This fixes a typo in gnu.java.security.PolicyFile identified
by PR36522.

ChangeLog:

2008-06-15  Andrew John Hughes  [EMAIL PROTECTED]

PR classpath/36522:
* gnu/java/security/PolicyFile.java:
Correct typo changing seperator to separator.

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: gnu/java/security/PolicyFile.java
===
RCS file: /sources/classpath/classpath/gnu/java/security/PolicyFile.java,v
retrieving revision 1.10
diff -u -u -r1.10 PolicyFile.java
--- gnu/java/security/PolicyFile.java   5 May 2008 17:12:40 -   1.10
+++ gnu/java/security/PolicyFile.java   15 Jun 2008 22:01:51 -
@@ -152,7 +152,7 @@
 
   protected static final Logger logger = SystemLogger.SYSTEM;
   // Added to cut redundant AccessController.doPrivileged calls
-  private static GetPropertyAction prop = new 
GetPropertyAction(file.seperator);
+  private static GetPropertyAction prop = new 
GetPropertyAction(file.separator);
   private static final String fs = (String) 
AccessController.doPrivileged(prop);
   
   private static final String DEFAULT_POLICY =


[cp-patches] FYI: Generic fixes

2008-06-15 Thread Andrew John Hughes
This patch fixes a few warnings due to the use of generics
in javax.management.openmbean.

ChangeLog:

2008-06-15  Andrew John Hughes  [EMAIL PROTECTED]

* javax/management/openmbean/TabularDataSupport.java,
* javax/management/openmbean/TabularType.java:
Fix warnings due to use of generics.

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
Index: javax/management/openmbean/TabularDataSupport.java
===
RCS file: 
/sources/classpath/classpath/javax/management/openmbean/TabularDataSupport.java,v
retrieving revision 1.2
diff -u -u -r1.2 TabularDataSupport.java
--- javax/management/openmbean/TabularDataSupport.java  5 Mar 2007 23:19:44 
-   1.2
+++ javax/management/openmbean/TabularDataSupport.java  16 Jun 2008 00:40:17 
-
@@ -68,7 +68,7 @@
*
* @serial the map of rows to column values.
*/
-  private MapObject,Object dataMap;
+  private HashMapObject,Object dataMap;
 
   /**
* The tabular type which represents this tabular data instance.
@@ -141,14 +141,10 @@
   throw new InvalidOpenTypeException(The type of the given value  +
 does not match the row type  +
 of this instance.);
-List indexNames = tabularType.getIndexNames();
-List matchingIndicies = new ArrayList(indexNames.size());
-Iterator it = indexNames.iterator();
-while (it.hasNext())
-  {
-   String name = (String) it.next();
-   matchingIndicies.add(val.get(name));
-  }
+ListString indexNames = tabularType.getIndexNames();
+ListString matchingIndicies = new ArrayListString(indexNames.size());
+for (String name : indexNames)
+  matchingIndicies.add(val.get(name).toString());
 return matchingIndicies.toArray();
   }
 
@@ -173,7 +169,7 @@
 try
   {
clone = (TabularDataSupport) super.clone();
-   clone.setMap((HashMap) ((HashMap) dataMap).clone());
+   clone.setMap((HashMapObject,Object) dataMap.clone());
   }
 catch (CloneNotSupportedException e)
   {
@@ -390,11 +386,11 @@
*/
   private boolean isKeyValid(Object[] key)
   {
-Iterator it = tabularType.getIndexNames().iterator();
+IteratorString it = tabularType.getIndexNames().iterator();
 CompositeType rowType = tabularType.getRowType();
 for (int a = 0; it.hasNext(); ++a)
   {
-   OpenType type = rowType.getType((String) it.next());
+   OpenType? type = rowType.getType(it.next());
if (!(type.isValue(key[a])))
  return false;
   }
@@ -496,7 +492,7 @@
   {
 if (vals == null || vals.length == 0)
   return;
-Map mapToAdd = new HashMap(vals.length);
+MapObject,Object mapToAdd = new HashMapObject,Object(vals.length);
 for (int a = 0; a  vals.length; ++a)
   {
Object[] key = calculateIndex(vals[a]);
@@ -539,9 +535,9 @@
   {
 if (m == null || m.size() == 0)
   return;
-Collection vals = m.values();
+Collection? vals = m.values();
 CompositeData[] data = new CompositeData[vals.size()];
-Iterator it = vals.iterator();
+Iterator? it = vals.iterator();
 for (int a = 0; it.hasNext(); ++a)
   {
data[a] = (CompositeData) it.next();
@@ -591,12 +587,12 @@
   }
 
   /**
-   * Package-private method to set the internal [EMAIL PROTECTED] 
java.util.Map}
+   * Private method to set the internal [EMAIL PROTECTED] java.util.Map}
* instance (used in cloning).
*
* @param map the new map used.
*/
-  void setMap(Map map)
+  private void setMap(HashMapObject,Object map)
   {
 dataMap = map;
   }
Index: javax/management/openmbean/TabularType.java
===
RCS file: 
/sources/classpath/classpath/javax/management/openmbean/TabularType.java,v
retrieving revision 1.3
diff -u -u -r1.3 TabularType.java
--- javax/management/openmbean/TabularType.java 5 Mar 2007 23:19:44 -   
1.3
+++ javax/management/openmbean/TabularType.java 16 Jun 2008 00:40:17 -
@@ -206,9 +206,8 @@
 if (hashCode == null)
   {
int elementTotal = 0;
-   Iterator it = indexNames.iterator();
-   while (it.hasNext())
- elementTotal += it.next().hashCode();
+   for (String s : indexNames)
+ elementTotal += s.hashCode();
hashCode = Integer.valueOf(elementTotal 
   + getTypeName().hashCode()
   + rowType.hashCode());


[cp-testresults] FAIL: regressions for mauve-jamvm on Sun Jun 15 06:40:11 UTC 2008

2008-06-15 Thread cpdev
Baseline from: Thu Jun 12 08:39:44 UTC 2008

Regressions:
FAIL: gnu.java.security.jce.TestOfHttps
FAIL: java.awt.Graphics.TestPaintGraphics
FAIL: java.lang.Thread.sleep
FAIL: java.nio.channels.FileChannel.map
FAIL: javax.net.ssl.SSLEngine.TestHandshake

Totals:
PASS: 2937
XPASS: 0
FAIL: 194
XFAIL: 0


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: regressions for mauve-kaffe on Sun Jun 15 10:26:28 UTC 2008

2008-06-15 Thread cpdev
Baseline from: Tue Jun  3 14:27:37 UTC 2008

Regressions:
FAIL: java.awt.Scrollbar.ScrollbarPaintTest
FAIL: java.util.Timer.taskException

Totals:
PASS: 2929
XPASS: 0
FAIL: 201
XFAIL: 0


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: jamvm release build on Sun Jun 15 15:46:08 UTC 2008

2008-06-15 Thread cpdev
4. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 236)
CPStringBuilder sb = new CPStringBuilder(128);
^^^
CPStringBuilder cannot be resolved to a type
--
5. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 236)
CPStringBuilder sb = new CPStringBuilder(128);
 ^^^
CPStringBuilder cannot be resolved to a type
--
6. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 258)
static void addTypeParameters(CPStringBuilder sb, TypeVariable[] 
typeArgs)
  ^^^
CPStringBuilder cannot be resolved to a type
--
7. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 274)
CPStringBuilder sb = new CPStringBuilder(128);
^^^
CPStringBuilder cannot be resolved to a type
--
8. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 274)
CPStringBuilder sb = new CPStringBuilder(128);
 ^^^
CPStringBuilder cannot be resolved to a type
--
8 problems (6 errors, 2 warnings)make[2]: *** [classes.zip] Error 255
make[2]: Leaving directory `/home/cpdev/Nightly/jamvm-release/build/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpdev/Nightly/jamvm-release/build/lib'
make: *** [all-recursive] Error 1


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: cacao build on Sun Jun 15 15:48:31 UTC 2008

2008-06-15 Thread cpdev
   ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:242: 
warning: .
  native int getInt(Object o)
   ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:243: 
error: Class or interface declaration expected.
  }
 ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:249: 
error: syntax error.
  private synchronized native MapClass? extends Annotation, Annotation 
declaredAnnotations();
 ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:249: 
warning: .
   * @param o the object to get the value of this Field from
  ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:251: 
error: Class or interface declaration expected.
}
   ^
../../../cacao/src/classes/gnuclasspath/sun/misc/Unsafe.java:229: error: 
Invalid character '@' in input.
@Deprecated
   ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: 
error: '{' expected.
public final class ConstructorT
 ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: 
confused by earlier errors, bailing out
make[3]: *** [vm.zip] Error 1
make[3]: Leaving directory `/home/cpdev/Nightly/cacao/build/src/classes'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cpdev/Nightly/cacao/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpdev/Nightly/cacao/build'
make: *** [all] Error 2


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: regressions for mauve-jamvm on Sun Jun 15 16:48:09 UTC 2008

2008-06-15 Thread cpdev
Baseline from: Thu Jun 12 08:39:44 UTC 2008

Regressions:
FAIL: gnu.java.security.jce.TestOfHttps
FAIL: java.lang.Thread.sleep

Totals:
PASS: 2940
XPASS: 0
FAIL: 191
XFAIL: 0


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: regressions for mauve-kaffe on Sun Jun 15 19:46:19 UTC 2008

2008-06-15 Thread cpdev
Baseline from: Tue Jun  3 14:27:37 UTC 2008

Regressions:
FAIL: java.awt.Scrollbar.ScrollbarPaintTest

Improvements:
PASS: org.omg.CORBA.ORB.parallelRunTest

Totals:
PASS: 2931
XPASS: 0
FAIL: 199
XFAIL: 0


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: jamvm release build on Mon Jun 16 01:03:08 UTC 2008

2008-06-15 Thread cpdev
4. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 236)
CPStringBuilder sb = new CPStringBuilder(128);
^^^
CPStringBuilder cannot be resolved to a type
--
5. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 236)
CPStringBuilder sb = new CPStringBuilder(128);
 ^^^
CPStringBuilder cannot be resolved to a type
--
6. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 258)
static void addTypeParameters(CPStringBuilder sb, TypeVariable[] 
typeArgs)
  ^^^
CPStringBuilder cannot be resolved to a type
--
7. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 274)
CPStringBuilder sb = new CPStringBuilder(128);
^^^
CPStringBuilder cannot be resolved to a type
--
8. ERROR in ../../jamvm/lib/java/lang/reflect/Constructor.java (at line 274)
CPStringBuilder sb = new CPStringBuilder(128);
 ^^^
CPStringBuilder cannot be resolved to a type
--
8 problems (6 errors, 2 warnings)make[2]: *** [classes.zip] Error 255
make[2]: Leaving directory `/home/cpdev/Nightly/jamvm-release/build/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpdev/Nightly/jamvm-release/build/lib'
make: *** [all-recursive] Error 1


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: cacao build on Mon Jun 16 01:05:17 UTC 2008

2008-06-15 Thread cpdev
   ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:242: 
warning: .
  native int getInt(Object o)
   ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:243: 
error: Class or interface declaration expected.
  }
 ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:249: 
error: syntax error.
  private synchronized native MapClass? extends Annotation, Annotation 
declaredAnnotations();
 ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMField.java:249: 
warning: .
   * @param o the object to get the value of this Field from
  ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/VMMethod.java:251: 
error: Class or interface declaration expected.
}
   ^
../../../cacao/src/classes/gnuclasspath/sun/misc/Unsafe.java:229: error: 
Invalid character '@' in input.
@Deprecated
   ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: 
error: '{' expected.
public final class ConstructorT
 ^
../../../cacao/src/classes/gnuclasspath/java/lang/reflect/Constructor.java:81: 
confused by earlier errors, bailing out
make[3]: *** [vm.zip] Error 1
make[3]: Leaving directory `/home/cpdev/Nightly/cacao/build/src/classes'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cpdev/Nightly/cacao/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpdev/Nightly/cacao/build'
make: *** [all] Error 2


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


[cp-testresults] FAIL: regressions for mauve-kaffe on Mon Jun 16 05:57:43 UTC 2008

2008-06-15 Thread cpdev
Baseline from: Tue Jun  3 14:27:37 UTC 2008

Regressions:
FAIL: java.awt.Scrollbar.ScrollbarPaintTest
FAIL: java.util.HashMap.AcuniaHashMapTest
FAIL: javax.swing.JComboBox.ComboRobot

Improvements:
PASS: org.omg.CORBA.ORB.parallelRunTest

Totals:
PASS: 2929
XPASS: 0
FAIL: 201
XFAIL: 0


___
Classpath-testresults mailing list
Classpath-testresults@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-testresults


Re: CACAO 0.99 released.

2008-06-15 Thread Mario Torre
Il giorno sab, 14/06/2008 alle 16.54 +0200, Christian Thalinger ha
scritto:
 CACAO 0.99 Just one step left... released.

Hey, auguri!! :)

Mario
-- 
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-53
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt

Please, support open standards:
http://opendocumentfellowship.org/petition/
http://www.nosoftwarepatents.com/




[commit-cp] classpath ChangeLog include/jni.h

2008-06-15 Thread Tom Tromey
CVSROOT:/cvsroot/classpath
Module name:classpath
Changes by: Tom Tromey tromey 08/06/15 17:12:10

Modified files:
.  : ChangeLog 
include: jni.h 

Log message:
* include/jni.h (_jobjectRefType, jobjectRefType): Always
declare.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpathr1=1.9640r2=1.9641
http://cvs.savannah.gnu.org/viewcvs/classpath/include/jni.h?cvsroot=classpathr1=1.11r2=1.12




[commit-cp] classpath gnu/java/awt/java2d/RasterGraphics.ja...

2008-06-15 Thread Mario Torre
CVSROOT:/sources/classpath
Module name:classpath
Changes by: Mario Torre neugens   08/06/15 20:58:12

Modified files:
gnu/java/awt/java2d: RasterGraphics.java 
.  : ChangeLog 

Log message:
2008-06-15  Mario Torre  [EMAIL PROTECTED]

* gnu/java/awt/java2d/RasterGraphics.java: remove unused import 
that cause
compilation to fail when xpeers are not enabled.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/java2d/RasterGraphics.java?cvsroot=classpathr1=1.5r2=1.6
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpathr1=1.9642r2=1.9643




[commit-cp] classpath ChangeLog gnu/java/lang/CPStringBuild...

2008-06-15 Thread Andrew John Hughes
CVSROOT:/sources/classpath
Module name:classpath
Changes by: Andrew John Hughes gnu_andrew 08/06/15 21:33:57

Modified files:
.  : ChangeLog 
gnu/java/lang  : CPStringBuilder.java 

Log message:
2008-06-15  Andrew John Hughes  [EMAIL PROTECTED]

PR classpath/36477:
* gnu/java/lang/CPStringBuilder.java,
(setLength(int)): Don't ensure capacity when
new length is 0.
(ensureCapacity(int)): Allocate double the minimum
capacity rather than double the array length when
allocating a new array after a write.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpathr1=1.9643r2=1.9644
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/lang/CPStringBuilder.java?cvsroot=classpathr1=1.9r2=1.10




[commit-cp] classpath ChangeLog gnu/java/security/PolicyFil...

2008-06-15 Thread Andrew John Hughes
CVSROOT:/sources/classpath
Module name:classpath
Changes by: Andrew John Hughes gnu_andrew 08/06/15 22:07:30

Modified files:
.  : ChangeLog 
gnu/java/security: PolicyFile.java 

Log message:
2008-06-15  Andrew John Hughes  [EMAIL PROTECTED]

PR classpath/36522:
* gnu/java/security/PolicyFile.java:
Correct typo changing seperator to separator.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpathr1=1.9644r2=1.9645
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/security/PolicyFile.java?cvsroot=classpathr1=1.10r2=1.11




[commit-cp] classpath ChangeLog javax/management/openmbean/...

2008-06-15 Thread Andrew John Hughes
CVSROOT:/sources/classpath
Module name:classpath
Changes by: Andrew John Hughes gnu_andrew 08/06/16 00:44:26

Modified files:
.  : ChangeLog 
javax/management/openmbean: TabularDataSupport.java 
TabularType.java 

Log message:
2008-06-15  Andrew John Hughes  [EMAIL PROTECTED]

* javax/management/openmbean/TabularDataSupport.java,
* javax/management/openmbean/TabularType.java:
Fix warnings due to use of generics.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpathr1=1.9645r2=1.9646
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/openmbean/TabularDataSupport.java?cvsroot=classpathr1=1.2r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/openmbean/TabularType.java?cvsroot=classpathr1=1.3r2=1.4