[cp-patches] [generics] FYI: Method Constructor fix

2006-03-27 Thread Jeroen Frijters
Hi,

Committed.

Regards,
Jeroen

2006-03-27  Jeroen Frijters  [EMAIL PROTECTED]

* vm/reference/java/lang/reflect/Constructor.java
(getTypeParameters): Check return value of getSignature for
null.
* vm/reference/java/lang/reflect/Method.java
(getTypeParameters): Check return value of getSignature for
null.
Index: vm/reference/java/lang/reflect/Constructor.java
===
RCS file: 
/cvsroot/classpath/classpath/vm/reference/java/lang/reflect/Constructor.java,v
retrieving revision 1.11.2.11
diff -u -r1.11.2.11 Constructor.java
--- vm/reference/java/lang/reflect/Constructor.java 25 Mar 2006 01:46:13 
-  1.11.2.11
+++ vm/reference/java/lang/reflect/Constructor.java 27 Mar 2006 09:44:22 
-
@@ -265,6 +265,8 @@
   public TypeVariableConstructorT[] getTypeParameters()
   {
 String sig = getSignature();
+if (sig == null)
+  return new TypeVariable[0];
 MethodSignatureParser p = new MethodSignatureParser(this, sig);
 return p.getTypeParameters();
   }
Index: vm/reference/java/lang/reflect/Method.java
===
RCS file: 
/cvsroot/classpath/classpath/vm/reference/java/lang/reflect/Method.java,v
retrieving revision 1.12.2.9
diff -u -r1.12.2.9 Method.java
--- vm/reference/java/lang/reflect/Method.java  25 Mar 2006 01:46:13 -  
1.12.2.9
+++ vm/reference/java/lang/reflect/Method.java  27 Mar 2006 09:36:30 -
@@ -302,6 +302,8 @@
   public TypeVariableMethod[] getTypeParameters()
   {
 String sig = getSignature();
+if (sig == null)
+  return new TypeVariable[0];
 MethodSignatureParser p = new MethodSignatureParser(this, sig);
 return p.getTypeParameters();
   }


[cp-patches] FYI: JSlider.AccessibleContext - minor update

2006-03-27 Thread David Gilbert
This patch (committed) removes a NotImplementedException declaration that I left in 
by mistake with an earlier patch, and makes a couple of small changes to the API docs:


2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/JSlider.java
(AccessibleJSlider.AccessibleJSlider): Minor API doc edit,
(AccessibleJSlider.getAccessibleRole): Removed declaration of
NotImplementedException,
(AccessibleJSlider.getAccessibleValue): Updated API docs.

Regards,

Dave
Index: javax/swing/JSlider.java
===
RCS file: /sources/classpath/classpath/javax/swing/JSlider.java,v
retrieving revision 1.22
diff -u -r1.22 JSlider.java
--- javax/swing/JSlider.java23 Mar 2006 17:16:23 -  1.22
+++ javax/swing/JSlider.java27 Mar 2006 10:14:00 -
@@ -128,7 +128,7 @@
 private static final long serialVersionUID = -6301740148041106789L;
   
 /**
- * Creates a new AccessibleJSlider object.
+ * Creates a new codeAccessibleJSlider/code instance.
  */
 protected AccessibleJSlider()
 {
@@ -157,13 +157,14 @@
  * @return [EMAIL PROTECTED] AccessibleRole#SLIDER}.
  */
 public AccessibleRole getAccessibleRole()
-  throws NotImplementedException
 {
   return AccessibleRole.SLIDER;
 }
 
 /**
- * Returns an object that provides access to the accessible value.
+ * Returns an object that provides access to the current, minimum and 
+ * maximum values for the [EMAIL PROTECTED] JSlider}.  Since this class 
implements 
+ * [EMAIL PROTECTED] AccessibleValue}, it returns itself.
  *
  * @return The accessible value.
  */


[cp-patches] FYI: PlainView/FieldView fixes

2006-03-27 Thread Roman Kennke
I fixed the PlainView and FieldView to not include the trailing \n
character in string width calculations and drawString. We did skip the
newline in some places and in other places didn't, this patch makes the
code consitently skip the newline.

2006-03-27  Roman Kennke  [EMAIL PROTECTED]

* javax/swing/text/FieldView.java
(getPreferredSpan): Don't include trailing newline in
calculations.
* javax/swing/text/PlainView.java
(drawLine): Don't include trailing newline.
(determineMaxLineLength): Don't include trailing newline.
(getLineBuffer): Made method final.

/Roman

-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: javax/swing/text/PlainView.java
===
RCS file: /cvsroot/classpath/classpath/javax/swing/text/PlainView.java,v
retrieving revision 1.39
diff -u -1 -0 -r1.39 PlainView.java
--- javax/swing/text/PlainView.java	17 Mar 2006 15:29:33 -	1.39
+++ javax/swing/text/PlainView.java	27 Mar 2006 13:09:40 -
@@ -157,21 +157,21 @@
* @param g the graphics to use for drawing the text
* @param x the X coordinate of the baseline
* @param y the Y coordinate of the baseline
*/
   protected void drawLine(int lineIndex, Graphics g, int x, int y)
   {
 try
   {
 Element line = getElement().getElement(lineIndex);
 int startOffset = line.getStartOffset();
-int endOffset = line.getEndOffset();
+int endOffset = line.getEndOffset() - 1;
 
 if (selectionStart = startOffset)
   // Selection starts before the line ...
   if (selectionEnd = startOffset)
 {
   // end ends before the line: Draw completely unselected text.
   drawUnselectedText(g, x, y, startOffset, endOffset);
 }
   else if (selectionEnd = endOffset)
 {
@@ -318,21 +318,21 @@
   return maxLineLength;
 
 // otherwise we have to go through all the lines and find it
 Element el = getElement();
 Segment seg = getLineBuffer();
 float span = 0;
 for (int i = 0; i  el.getElementCount(); i++)
   {
 Element child = el.getElement(i);
 int start = child.getStartOffset();
-int end = child.getEndOffset();
+int end = child.getEndOffset() - 1;
 try
   {
 el.getDocument().getText(start, end - start, seg);
   }
 catch (BadLocationException ex)
   {
 AssertionError ae = new AssertionError(Unexpected bad location);
 	ae.initCause(ex);
 	throw ae;
   }
@@ -511,21 +511,21 @@
 // are longer than the previous longest line
 Segment seg = getLineBuffer();
 float longestNewLength = 0;
 Element longestNewLine = null;
 
 // Loop through the added lines to check their length
 for (int i = 0; i  newElements.length; i++)
   {
 Element child = newElements[i];
 int start = child.getStartOffset();
-int end = child.getEndOffset();
+int end = child.getEndOffset() - 1;
 try
   {
 el.getDocument().getText(start, end - start, seg);
   }
 catch (BadLocationException ex)
   {
 AssertionError ae = new AssertionError(Unexpected bad location);
 	ae.initCause(ex);
 	throw ae;
   }
@@ -630,18 +630,18 @@
   }
   }
 
   /**
* Provides a [EMAIL PROTECTED] Segment} object, that can be used to fetch text from
* the document.
*
* @returna [EMAIL PROTECTED] Segment} object, that can be used to fetch text from
*  the document
*/
-  protected Segment getLineBuffer()
+  protected final Segment getLineBuffer()
   {
 if (lineBuffer == null)
   lineBuffer = new Segment();
 return lineBuffer;
   }
 }
 
Index: javax/swing/text/FieldView.java
===
RCS file: /cvsroot/classpath/classpath/javax/swing/text/FieldView.java,v
retrieving revision 1.11
diff -u -1 -0 -r1.11 FieldView.java
--- javax/swing/text/FieldView.java	17 Mar 2006 17:50:53 -	1.11
+++ javax/swing/text/FieldView.java	27 Mar 2006 13:09:40 -
@@ -119,21 +119,21 @@
 
 if (axis == Y_AXIS)
   return super.getPreferredSpan(axis);
 
 String text;
 Element elem = getElement();
 
 try
   {
 text = elem.getDocument().getText(elem.getStartOffset(),
-  elem.getEndOffset());
+  elem.getEndOffset() - 1);
   }
 catch (BadLocationException e)
   {
 	// Should never happen
 	AssertionError ae = new AssertionError();
 	ae.initCause(e);
 	throw ae;
   }
 
 return fm.stringWidth(text);


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[cp-patches] FYI: jarsigner -help option

2006-03-27 Thread Raif S. Naffah
hello all,

the following patch --already committed-- adds a -help option to the 
tool's possible options and checks for null args on the command line.

the ChangeLog entry looks like so:

2006-03-28  Raif S. Naffah  [EMAIL PROTECTED]

* tools/gnu/classpath/tools/jarsigner/Main.java (processArgs): Check
for null args.
Check for -help option.
* tools/gnu/classpath/tools/jarsigner/jarsigner.txt: Added -help 
option.


cheers;
rsn
Index: jarsigner.txt
===
RCS file: /cvsroot/classpath/classpath/tools/gnu/classpath/tools/jarsigner/jarsigner.txt,v
retrieving revision 1.1
diff -u -r1.1 jarsigner.txt
--- jarsigner.txt	25 Mar 2006 12:38:20 -	1.1
+++ jarsigner.txt	27 Mar 2006 13:29:23 -
@@ -99,3 +99,5 @@
 implementation of the Security Provider capable of managing a
 Key Store of the designated, or default, type.

+   -helpPrints this help text.
+
Index: Main.java
===
RCS file: /cvsroot/classpath/classpath/tools/gnu/classpath/tools/jarsigner/Main.java,v
retrieving revision 1.2
diff -u -r1.2 Main.java
--- Main.java	26 Mar 2006 05:26:40 -	1.2
+++ Main.java	27 Mar 2006 13:30:03 -
@@ -63,6 +63,7 @@
 import javax.security.auth.callback.UnsupportedCallbackException;

 import gnu.classpath.SystemProperties;
+import gnu.classpath.tools.HelpPrinter;
 import gnu.java.security.OID;
 import gnu.java.security.Registry;
 import gnu.javax.security.auth.callback.ConsoleCallbackHandler;
@@ -167,6 +168,10 @@
   {
 log.entering(Main, processArgs, args);

+HelpPrinter.checkHelpKey(args, HELP_PATH);
+if (args == null || args.length == 0)
+  HelpPrinter.printHelpAndExit(HELP_PATH);
+
 int limit = args.length;
 log.finest(args.length= + limit);
 int i = 0;


pgpbzQS9199QV.pgp
Description: PGP signature


[cp-patches] RFC. was: Generating jarsigner script

2006-03-27 Thread Raif S. Naffah
hello there,

following my previous patch re. the above, here is a more serious, and 
working version --tested with jamvm:

* a jarsigner.sh.in template is used by...

* configure.ac to generate a jarsigner.sh.  this is a plain shell script 
that (a) attempts to locate a suitable java executable and launches it 
with the correct options to invoke the jarsigner main class.

* the Makefile, generated from the Makefile.am in the tools folder will 
copy+customize the jarsigner.sh into ${bindir}/jarsigner.

as Michael Koch suggested, no BASH is looked up, instead the shell 
template has the /bin/sh hard-wired.  the search for a JAVA executable 
is nevertheless done in the script instead of configure.ac.


comments are welcome.


the ChangeLog entry will look like so:

2006-03-28  Raif S. Naffah  [EMAIL PROTECTED]

* configure.ac: Generate tools/jarsigner.sh from tools/jarsigner.sh.in
* tools/gnu/classpath/tools/jarsigner.sh.in: New file
* tools/Makefile.am: Generate jarsigner in $(bindir)


cheers;
rsn
Index: jarsigner.sh.in
===
RCS file: jarsigner.sh.in
diff -N jarsigner.sh.in
--- /dev/null	1 Jan 1970 00:00:00 -
+++ jarsigner.sh.in	1 Jan 1970 00:00:00 -
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+## Copyright 2006 Free Software Foundation, Inc.
+##
+## This file is a part of GNU Classpath.
+##
+## GNU Classpath is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or (at
+## your option) any later version.
+##
+## GNU Classpath is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with GNU Classpath; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+## USA
+##
+## Linking this library statically or dynamically with other modules is
+## making a combined work based on this library.  Thus, the terms and
+## conditions of the GNU General Public License cover the whole
+## combination.
+##
+## As a special exception, the copyright holders of this library give you
+## permission to link this library with independent modules to produce an
+## executable, regardless of the license terms of these independent
+## modules, and to copy and distribute the resulting executable under
+## terms of your choice, provided that you also meet, for each linked
+## independent module, the terms and conditions of the license of that
+## module.  An independent module is a module which is not derived from
+## or based on this library.  If you modify this library, you may extend
+## this exception to your version of the library, but you are not
+## obligated to do so.  If you do not wish to do so, delete this
+## exception statement from your version.
+##
+##
+## A simple script to launch the GNU Classpath jarsigner tool.
+##
+
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@/@PACKAGE@
+tools_cp=${tools_dir}/tools.zip
+
+# find the java executable...
+if [ -z ${JAVA} ] ; then
+  if [ -n ${JAVA_HOME}  ] ; then
+if [ -x ${JAVA_HOME}/jre/sh/java ] ; then
+  JAVA=${JAVA_HOME}/jre/sh/java
+else
+  JAVA=${JAVA_HOME}/bin/java
+fi
+  else
+JAVA=`which java 2 /dev/null `
+if [ -z ${JAVA} ] ; then
+JAVA=java
+fi
+  fi
+fi
+
+exec ${JAVA} -cp ${tools_cp} gnu.classpath.tools.jarsigner.Main $@
Index: Makefile.am
===
RCS file: /cvsroot/classpath/classpath/tools/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- Makefile.am	10 Mar 2006 01:49:42 -	1.7
+++ Makefile.am	27 Mar 2006 13:39:50 -
@@ -19,6 +19,15 @@
 endif
 endif

+bin_SCRIPTS = jarsigner
+CLEANFILES = $(bin_SCRIPTS)
+EXTRA_DIST = jarsigner.sh.in
+
+jarsigner: $(srcdir)/jarsigner.sh
+	rm -f $(bindir)/jarsigner
+	cat $(srcdir)/jarsigner.sh  $(bindir)/jarsigner
+	chmod ugo+x $(bindir)/jarsigner
+
 # All our example java source files
 TOOLS_JAVA_FILES = $(srcdir)/gnu/classpath/tools/*.java $(srcdir)/gnu/classpath/tools/*/*.java $(srcdir)/gnu/classpath/tools/*/*/*.java

@@ -30,7 +39,7 @@
 BUILT_SOURCES = $(TOOLS_ZIP)

 # The templates that must be included into the generated zip file.
-GRMIC_TEMPLATES = $(srcdir)/gnu/classpath/tools/giop/grmic/templates/*.jav
+GRMIC_TEMPLATES = $(srcdir)/gnu/classpath/tools/giop/grmic/templates/*.jav
 RMIC_TEMPLATES = $(srcdir)/gnu/classpath/tools/rmi/rmic/templates/*.jav

 TOOLS_TEMPLATES = $(GRMIC_TEMPLATES) $(RMIC_TEMPLATES)
@@ -38,8 +47,9 @@
 # This covers the built-in help texts, both for giop and rmic subpackages.
 GIOP_HELPS = $(srcdir)/gnu/classpath/tools/giop/*.txt
 RMI_HELPS = 

[cp-patches] FYI: JSlider.java - replaced TABs with spaces

2006-03-27 Thread David Gilbert
I replaced the tabs in the JSlider.java file with spaces so that the source listing 
in the API docs is formatted correctly - I'm sure this problem occurs in a lot of 
other classes:


2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/JSlider.java: Replaced TABs with spaces.

Regards,

Dave
Index: javax/swing/JSlider.java
===
RCS file: /sources/classpath/classpath/javax/swing/JSlider.java,v
retrieving revision 1.24
diff -u -r1.24 JSlider.java
--- javax/swing/JSlider.java27 Mar 2006 14:20:51 -  1.24
+++ javax/swing/JSlider.java27 Mar 2006 14:29:51 -
@@ -347,7 +347,8 @@
   {
 sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum);
 if (orientation != HORIZONTAL  orientation != VERTICAL)
-  throw new IllegalArgumentException(orientation +  is not a legal 
orientation);
+  throw new IllegalArgumentException(orientation 
+ +  is not a legal orientation);
 this.orientation = orientation;
 changeListener = createChangeListener();
 sliderModel.addChangeListener(changeListener);
@@ -451,13 +452,13 @@
   {
 return new ChangeListener()
   {
-   public void stateChanged(ChangeEvent ce)
-   {
- // No need to trigger a repaint since the UI listens to the model
- // as well. All we need to do is pass on the stateChanged event 
- // to our listeners.
- fireStateChanged();
-   }
+public void stateChanged(ChangeEvent ce)
+{
+  // No need to trigger a repaint since the UI listens to the model
+  // as well. All we need to do is pass on the stateChanged event 
+  // to our listeners.
+  fireStateChanged();
+}
   };
   }
 
@@ -500,8 +501,8 @@
   changeEvent = new ChangeEvent(this);
 for (int i = changeListeners.length - 2; i = 0; i -= 2)
   {
-   if (changeListeners[i] == ChangeListener.class)
- ((ChangeListener) changeListeners[i + 1]).stateChanged(changeEvent);
+if (changeListeners[i] == ChangeListener.class)
+  ((ChangeListener) changeListeners[i + 1]).stateChanged(changeEvent);
   }
   }
 
@@ -551,11 +552,11 @@
 // and bork the next time it tries to access the model.
 if (model != sliderModel)
   {
-   BoundedRangeModel oldModel = sliderModel;
-   sliderModel = model;
-   oldModel.removeChangeListener(changeListener);
-   sliderModel.addChangeListener(changeListener);
-   firePropertyChange(model, oldModel, sliderModel);
+BoundedRangeModel oldModel = sliderModel;
+sliderModel = model;
+oldModel.removeChangeListener(changeListener);
+sliderModel.addChangeListener(changeListener);
+firePropertyChange(model, oldModel, sliderModel);
   }
   }
 
@@ -713,13 +714,13 @@
   public void setOrientation(int orientation)
   {
 if (orientation != VERTICAL  orientation != HORIZONTAL)
-  throw new IllegalArgumentException(orientation must be one of: 
VERTICAL, HORIZONTAL);
+  throw new IllegalArgumentException(
+  orientation must be one of: VERTICAL, HORIZONTAL);
 if (orientation != this.orientation)
   {
-   int oldOrientation = this.orientation;
-   this.orientation = orientation;
-   firePropertyChange(orientation, oldOrientation,
-  this.orientation);
+int oldOrientation = this.orientation;
+this.orientation = orientation;
+firePropertyChange(orientation, oldOrientation, this.orientation);
   }
   }
 
@@ -748,9 +749,9 @@
   {
 if (table != labelTable)
   {
-   Dictionary oldTable = labelTable;
-   labelTable = table;
-   firePropertyChange(labelTable, oldTable, labelTable);
+Dictionary oldTable = labelTable;
+labelTable = table;
+firePropertyChange(labelTable, oldTable, labelTable);
   }
   }
 
@@ -764,8 +765,8 @@
   return;
 for (Enumeration list = labelTable.elements(); list.hasMoreElements();)
   {
-   JLabel label = (JLabel) list.nextElement();
-   label.updateUI();
+JLabel label = (JLabel) list.nextElement();
+label.updateUI();
   }
   }
 
@@ -816,17 +817,17 @@
 
 for (int i = start; i = max; i += increment)
   {
-   label = new JLabel(String.valueOf(i));
-   label.setVerticalAlignment(CENTER);
-   label.setHorizontalAlignment(CENTER);
-   
-   // Make sure these labels have the width and height
-   // they want.
-   dim = label.getPreferredSize();
-   label.setBounds(label.getX(), label.getY(),
-   (int) dim.getWidth(),
-   (int) dim.getHeight()); 
-   table.put(new Integer(i), label);
+label = new JLabel(String.valueOf(i));
+label.setVerticalAlignment(CENTER);
+label.setHorizontalAlignment(CENTER);
+
+// Make sure 

[cp-patches] FYI: BasicSliderUI - marked stubbed methods

2006-03-27 Thread David Gilbert
This patch (committed) marks some yet-to-be-implemented methods in the BasicSliderUI 
class:


2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/plaf/basic/BasicSliderUI.java
(FocusHandler.focusGained): Marked as stub,
(FocusHandler.focusLost): Likewise,
(installKeyboardActions): Likewise,
(uninstallKeyBoardActions): Likewise.

Regards,

Dave
Index: javax/swing/plaf/basic/BasicSliderUI.java
===
RCS file: 
/sources/classpath/classpath/javax/swing/plaf/basic/BasicSliderUI.java,v
retrieving revision 1.23
diff -u -r1.23 BasicSliderUI.java
--- javax/swing/plaf/basic/BasicSliderUI.java   14 Mar 2006 20:15:06 -  
1.23
+++ javax/swing/plaf/basic/BasicSliderUI.java   27 Mar 2006 14:51:51 -
@@ -1,5 +1,5 @@
 /* BasicSliderUI.java --
-   Copyright (C) 2004, 2005  Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006,  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -38,6 +38,8 @@
 
 package javax.swing.plaf.basic;
 
+import gnu.classpath.NotImplementedException;
+
 import java.awt.Color;
 import java.awt.Component;
 import java.awt.ComponentOrientation;
@@ -204,6 +206,7 @@
  * @param e A [EMAIL PROTECTED] FocusEvent}.
  */
 public void focusGained(FocusEvent e)
+  throws NotImplementedException
 {
   // FIXME: implement.
 }
@@ -215,6 +218,7 @@
  * @param e A [EMAIL PROTECTED] FocusEvent}.
  */
 public void focusLost(FocusEvent e)
+  throws NotImplementedException
 {
   // FIXME: implement.
 }
@@ -864,6 +868,7 @@
*installed.
*/
   protected void installKeyboardActions(JSlider slider)
+throws NotImplementedException
   {
 // FIXME: implement.
   }
@@ -876,6 +881,7 @@
*uninstalled.
*/
   protected void uninstallKeyboardActions(JSlider slider)
+throws NotImplementedException
   {
 // FIXME: implement.
   }


[cp-patches] FYI: RepaintManager fixlet

2006-03-27 Thread Roman Kennke
In the RepaintManager we are using the Graphics.drawImage() method, that
takes 11 parameters to paint a part of the buffer to a part of the
screen. Looking at the native code this seems rather inefficient (there
are 1-2 temporary images created there, a scaling is performed etc,
which is all unnecessary). I replaced this by the simple 4-argument
drawImage() call and let the clipping sort out the rest.

2006-03-27  Roman Kennke  [EMAIL PROTECTED]

* javax/swing/RepaintManager.java
(commitBuffer): Use simple drawImage() method instead of the
scaling version.

/Roman

-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: javax/swing/RepaintManager.java
===
RCS file: /cvsroot/classpath/classpath/javax/swing/RepaintManager.java,v
retrieving revision 1.28
diff -u -1 -0 -r1.28 RepaintManager.java
--- javax/swing/RepaintManager.java	3 Mar 2006 10:06:10 -	1.28
+++ javax/swing/RepaintManager.java	27 Mar 2006 14:54:08 -
@@ -36,21 +36,20 @@
 exception statement from your version. */
 
 
 package javax.swing;
 
 import java.awt.Component;
 import java.awt.Dimension;
 import java.awt.Graphics;
 import java.awt.Image;
 import java.awt.Rectangle;
-import java.awt.Window;
 import java.awt.image.VolatileImage;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.Set;
 import java.util.WeakHashMap;
 
@@ -407,21 +406,20 @@
* @see #getDirtyRegion
* @see #isCompletelyDirty
* @see #markCompletelyClean
* @see #markCompletelyDirty
*/
   public void addDirtyRegion(JComponent component, int x, int y,
  int w, int h)
   {
 if (w = 0 || h = 0 || !component.isShowing())
   return;
-
 component.computeVisibleRect(rectCache);
 SwingUtilities.computeIntersection(x, y, w, h, rectCache);
 
 if (! rectCache.isEmpty())
   {
 if (dirtyComponents.containsKey(component))
   {
 SwingUtilities.computeUnion(rectCache.x, rectCache.y,
 rectCache.width, rectCache.height,
(Rectangle) dirtyComponents.get(component));
@@ -656,22 +654,21 @@
 //when a component is inside a JViewport, and the component has
 //a size that would reach beyond the window size.
 // 2. Graphics.drawImage() should not behave strange when trying
 //to draw regions outside the image.
 int bufferWidth = buffer.getWidth(root);
 int bufferHeight = buffer.getHeight(root);
 dx1 = Math.min(bufferWidth, dx1);
 dy1 = Math.min(bufferHeight, dy1);
 dx2 = Math.min(bufferWidth, dx2);
 dy2 = Math.min(bufferHeight, dy2);
-g.drawImage(buffer, dx1, dy1, dx2, dy2,
-dx1, dy1, dx2, dy2, root);
+g.drawImage(buffer, 0, 0, root);
 g.dispose();
   }
 // Otherwise queue this request up, until all the RepaintManager work
 // is done.
 else
   {
 if (commitRequests.containsKey(root))
   SwingUtilities.computeUnion(area.x, area.y, area.width,
   area.height,
  (Rectangle) commitRequests.get(root));


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[cp-patches] FYI: DefaultCaret fixes

2006-03-27 Thread Robert Schuster
Hi,
attached is a patch which fixes some issues with the DefaultCaret.

At first I rewrote the word selection (by mouse) part after seeing that it does
not worked as expected in all cases. Now it reacts in the way the documentation
describes it.

The other fix changes the caret's height to the height of the text line it is
in. In previous versions the height of the component the caret is installed in
was used which caused odd behavior with scrolling in JTextAreas. This is also
described in PR #26809.

The ChangeLog:

2006-03-27  Robert Schuster  [EMAIL PROTECTED]

* javax/swing/text/DefaultCaret.java:
(mouseClicked): Word selection rewritten.
(paint): Draw line inside the bounding rectangle.
(damage): Retrieve caret height from line height.

cya
Robert
Index: javax/swing/text/DefaultCaret.java
===
RCS file: /cvsroot/classpath/classpath/javax/swing/text/DefaultCaret.java,v
retrieving revision 1.36
diff -u -r1.36 DefaultCaret.java
--- javax/swing/text/DefaultCaret.java	23 Mar 2006 21:17:22 -	1.36
+++ javax/swing/text/DefaultCaret.java	27 Mar 2006 15:20:14 -
@@ -399,19 +399,20 @@
   }
 else
   {
-int nextWord = Utilities.getNextWord(t, newDot);
+int wordStart = Utilities.getWordStart(t, newDot);
 
 // When the mouse points at the offset of the first character
 // in a word Utilities().getPreviousWord will not return that
 // word but we want to select that. We have to use
-// Utilities.nextWord() to get it.
-if (newDot == nextWord)
+// Utilities.getWordStart() to get it.
+if (newDot == wordStart)
   {
-setDot(nextWord);
-moveDot(Utilities.getNextWord(t, nextWord));
+setDot(wordStart);
+moveDot(Utilities.getWordEnd(t, wordStart));
   }
 else
   {
+int nextWord = Utilities.getNextWord(t, newDot);
 int previousWord = Utilities.getPreviousWord(t, newDot);
 int previousWordEnd = Utilities.getWordEnd(t, previousWord);
 
@@ -833,7 +834,7 @@
 if (visible)
   {
 g.setColor(textComponent.getCaretColor());
-g.drawLine(rect.x, rect.y, rect.x, rect.y + rect.height);
+g.drawLine(rect.x, rect.y, rect.x, rect.y + rect.height - 1);
   }
   }
 
@@ -1100,7 +1101,16 @@
 // must set a valid value here, since otherwise the painting mechanism
 // sets a zero clip and never calls paint.
 if (height = 0)
-  height = getComponent().getHeight();
+  try
+{
+  height = textComponent.modelToView(dot).height;
+}
+  catch (BadLocationException ble)
+{
+  // Should not happen.
+  throw new InternalError(Caret location not within document range.);
+}
+  
 repaint();
   }
 


signature.asc
Description: OpenPGP digital signature


[cp-patches] RFC: java.sql.* doc comment updates

2006-03-27 Thread Carsten Neumann


Hi,

the attached patch removes all warnings I got from eclipse about doc 
comment @param tags not matching method signatures and similar. It also 
documents some previously undocumented methods.
Please note that my copyright assignment is pending, I'll ping this 
message when the paper shuffling is finished.


Thanks,
Carsten

ChangeLog (also attached):

2006-03-27  Carsten Neumann  [EMAIL PROTECTED]

* java/sql/Time.java (Time): Fixed doc comment.
* java/sql/Timestamp.java: Fixed doc comments.
* java/sql/Statement.java: Fixed doc comments.
* java/sql/SQLWarning.java (SQLWarning): Fixed doc comment.
* java/sql/SQLOutput.java: Made the method parameter names more
consistent and adapted doc comments.
(writeURL): Documented.
* java/sql/SQLData.java (readSQL): Fixed doc comment.
* java/sql/Driver.java (connect): Fixed doc comment.
(acceptsURL): Likewise.
* java/sql/DriverManager.java (setLoginTimeout): Fixed doc comment.
(setLogStream): Likewise.
(println): Likewise.
* java/sql/Date.java (Date): Fixed doc comment.
* java/sql/DatabaseMetaData.java: Made the method parameter names more
consistent and adapted doc comments.
(supportsSavepoints): Documented.
(supportsNamedParameters): Likewise.
(supportsMultipleOpenResults): Likewise.
(supportsResultSetHoldability): Likewise.
(getResultSetHoldability): Likewise.
(getDatabaseMajorVersion): Likewise.
(getDatabaseMinorVersion): Likewise.
(getJDBCMajorVersion): Likewise.
(getJDBCMinorVersion): Likewise.
* java/sql/Connection.java: Made the method parameter names more
consistent and adapted doc comments.
(setHoldability): Documented.
(getHoldability): Likewise.
(setSavepoint): Likewise.
(setSavepoint): Likewise.
(rollback): Likewise.
(releaseSavepoint): Likewise.
(createStatement): Likewise.
(prepareStatement): Likewise.
(prepareCall): Likewise.
* java/sql/ResultSet.java: Made the method parameter names more
 consistent and adapted doc comments.
(getURL): Documented.
(updateRef): Likewise.
(updateBlob): Likewise.
(updateClob): Likewise.
(updateArray): Likewise.
* java/sql/ResultSetMetaData.java: Made the method parameter names more
 consistent and adapted doc comments.
* java/sql/PreparedStatement.java: Made the method parameter names more
 consistent and adapted doc comments.
(setURL): Documented.
(getParameterMetaData): Likewise.
* java/sql/Clob.java: Made the method parameter names more consistent 
and
adapted doc comments.
(setString): Documented.
(setAsciiStream): Likewise.
(setCharacterStream): Likewise.
(truncate): Likewise.
* java/sql/CallableStatement.java: Made the method parameter names more
consistent and adapted doc comments.
(getURL): Documented.
(setURL): Likewise.
(setNull): Likewise.
(setBoolean): Likewise.
(setByte): Likewise.
(setShort): Likewise.
(setInt): Likewise.
(setLong): Likewise.
(setFloat): Likewise.
(setDouble): Likewise.
(setBigDecimal): Likewise.
(setString): Likewise.
(setBytes): Likewise.
(setDate): Likewise.
(setTime): Likewise.
(setTimestamp): Likewise.
(setAsciiStream): Likewise.
(setBinaryStream): Likewise.
(setObject): Likewise.
(setCharacterStream): Likewise.
(setDate): Likewise.
(setTime): Likewise.
(setTimestamp): Likewise.
(setNull): Likewise.
(getString): Likewise.
(getBoolean): Likewise.
(getByte): Likewise.
(getShort): Likewise.
(getInt): Likewise.
(getLong): Likewise.
(getFloat): Likewise.
(getDouble): Likewise.
(getBytes): Likewise.
(getDate): Likewise.
(getTime): Likewise.
(getTimestamp): Likewise.
(getObject): Likewise.
(getBigDecimal): Likewise.
(getRef): Likewise.
(getBlob): Likewise.
(getClob): Likewise.
(getArray): Likewise.
(getURL): Likewise.
* java/sql/Blob.java: Made the method parameter names more consistent 
and
adapted doc comments.
(setBytes): Documented.
(setBinaryStream): Likewise.
(truncate): Likewise.
* java/sql/Array.java: Made the method parmater names more consistent 
and
adapted doc comments.



java.sql.diff.gz
Description: application/gzip
2006-03-27  Carsten Neumann  [EMAIL PROTECTED]

* java/sql/Time.java (Time): Fixed doc comment.
* java/sql/Timestamp.java: Fixed doc comments.
* 

Re: [cp-patches] Re: Patch: RFC: changing parts of VM reflection API

2006-03-27 Thread Mark Wielaard
On Sun, 2006-03-26 at 18:42 -0700, Tom Tromey wrote:
  Tom == Tom Tromey [EMAIL PROTECTED] writes:
 
 Tom This is the patch to change Method/Field/Constructor to have a
 Tom 'getModifiersInternal' method, which returns the un-masked modifiers
 Tom as read from the .class file.  This lets us implement the new
 Tom 1.5 reflection predicates such as isSynthetic.
 
 I'm checking this in now.
 
 VM folks, you will need some updates now, as Constructor et all will
 now inherit an abstract isSynthetic method.

Since builder.classpath.org tries to build jamvm from CVS I have
temporarily applied the attached patch there to get us dummy
isSynthetic() methods till jamvm gets a real implementation.

 I updated NEWS.

Thanks,

Mark
Index: lib/java/lang/reflect/Constructor.java
===
RCS file: /cvsroot/jamvm/jamvm/lib/java/lang/reflect/Constructor.java,v
retrieving revision 1.3
diff -u -r1.3 Constructor.java
--- lib/java/lang/reflect/Constructor.java	14 Nov 2005 03:15:08 -	1.3
+++ lib/java/lang/reflect/Constructor.java	27 Mar 2006 15:47:39 -
@@ -270,4 +270,10 @@
 boolean noAccessCheck)
 throws InstantiationException, IllegalAccessException,
InvocationTargetException;
+
+public boolean isSynthetic()
+{
+  return false;
+}
+
 }
Index: lib/java/lang/reflect/Field.java
===
RCS file: /cvsroot/jamvm/jamvm/lib/java/lang/reflect/Field.java,v
retrieving revision 1.3
diff -u -r1.3 Field.java
--- lib/java/lang/reflect/Field.java	14 Nov 2005 03:15:08 -	1.3
+++ lib/java/lang/reflect/Field.java	27 Mar 2006 15:47:39 -
@@ -647,4 +647,9 @@
   private native void setCField(Object o, Class declaringClass, Class type, int slot, boolean noAccessCheck, int type_no, char c);
   private native void setSField(Object o, Class declaringClass, Class type, int slot, boolean noAccessCheck, int type_no, short s);
   private native void setBField(Object o, Class declaringClass, Class type, int slot, boolean noAccessCheck, int type_no, byte b);
+
+public boolean isSynthetic()
+{
+  return false;
+}
 }
Index: lib/java/lang/reflect/Method.java
===
RCS file: /cvsroot/jamvm/jamvm/lib/java/lang/reflect/Method.java,v
retrieving revision 1.3
diff -u -r1.3 Method.java
--- lib/java/lang/reflect/Method.java	14 Nov 2005 03:15:08 -	1.3
+++ lib/java/lang/reflect/Method.java	27 Mar 2006 15:47:39 -
@@ -363,4 +363,9 @@
  Class[] parameterTypes, Class returnType,
  int slot, boolean noAccessCheck)
 throws IllegalAccessException, InvocationTargetException;
+
+public boolean isSynthetic()
+{
+  return false;
+}
 }


signature.asc
Description: This is a digitally signed message part


[cp-patches] FYI: BasicSliderUI - minor update

2006-03-27 Thread David Gilbert
This patch (committed) removes a TODO that I left in the getThumbSize() method last 
time I worked on this class.  I tested Sun's implementation and found that this 
method DOES return a new instance every time it is called even though the size 
returned is constant.  That could be because Dimension instances can be modified 
directly, so you can't (safely) define a constant Dimension instance to return every 
time:


2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/plaf/basic/BasicSliderUI.java
(getThumbSize): Removed TODO and updated API docs.

Regards,

Dave
Index: javax/swing/plaf/basic/BasicSliderUI.java
===
RCS file: 
/sources/classpath/classpath/javax/swing/plaf/basic/BasicSliderUI.java,v
retrieving revision 1.24
diff -u -r1.24 BasicSliderUI.java
--- javax/swing/plaf/basic/BasicSliderUI.java   27 Mar 2006 14:53:06 -  
1.24
+++ javax/swing/plaf/basic/BasicSliderUI.java   27 Mar 2006 15:56:53 -
@@ -1201,13 +1201,17 @@
   }
 
   /**
-   * This method returns the size of the thumbRect.
+   * Returns the size of the slider's thumb.  The size is hard coded to
+   * code11 x 20/code for horizontal sliders, and code20 x 11/code for 
+   * vertical sliders. Note that a new instance of [EMAIL PROTECTED] 
Dimension} is 
+   * returned for every call to this method (this seems wasteful, but 
+   * [EMAIL PROTECTED] Dimension} instances are not immutable, so this is 
probably 
+   * unavoidable).
*
-   * @return The dimensions of the thumb.
+   * @return The size of the slider's thumb.
*/
   protected Dimension getThumbSize()
   {
-// TODO: shouldn't create new objects every time
 if (slider.getOrientation() == JSlider.HORIZONTAL)
   return new Dimension(11, 20);
 else


Re: [cp-patches] Re: RFC: gdkpixbuf looking vs main gdk lock

2006-03-27 Thread Thomas Fitzsimmons
On Sun, 2006-03-26 at 11:13 +0200, Michael Koch wrote:
 On Mon, Mar 20, 2006 at 01:28:30PM -0500, Thomas Fitzsimmons wrote:
  On Mon, 2006-03-20 at 19:20 +0100, Mark Wielaard wrote:
   Hi Rob,
   
   On Mon, 2006-03-20 at 15:37 +, Robert Lougher wrote:
On 3/20/06, Mark Wielaard [EMAIL PROTECTED] wrote:
 Done. If you have a scroll mouse please try out WW2D with Cacao (I
 didn't get it working with jamvm yet, which seems to crash after 
 loading
 jawt).
   
What version of JamVM are you using (i.e. is it CVS or a released
version)?  Can you give details as to how to reproduce?
   
   Sorry for the vague bug report. It is with the last release of jamvm
   1.4.2. To be really honest I cannot remember how to recreate the
   libjawt.so from the one in /usr/local/classpath/lib/classpath
   The jogl library is very specific in how it wants this named and loaded.
   If you have that (Christian/Tom?) then you can replicate the issue with
   the instructions (just replace cacao with jamvm) of
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348504
  
  We use this invocation in java-gcj-compat:
  
  echo | gcc -shared -O2 -fPIC -o libjawt.so -Wl,-soname,libjawt.so -xc -
  -lgcjawt
  
  to create a binary-compatible replacement for Sun's libjawt.so.  (Note
  that libgcj's version of libjawtgnu.so is called libgcjawt.so.  I would
  like to change this and have all free runtime environments standardize
  on the name libjawtgnu.so).
 
 Why do we use another name then libjawt.so anyway?

Naming it libjawt.so caused a conflict between libgcj and Sun:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20790

  The lib is put into
 $prefix/lib/classpath anyway and will never collide with SUNs. And we
 dont need do such a hack as Tom mentioned for java-gcj-compat (which is
 not really needed either, IMO). When classpath uses a different name
 every runtime depending on it need do some hack to rename it to
 libjawt.so again as real world apps do System.loadLibrary(jawt);.

Agreed, for GNU Classpath deviating from libjawt.so doesn't make
sense.  Let's rename libjawtgnu.so to simply libjawt.so.  As for libgcj,
we already have custom handling for the native libraries in libgcj so we
can just update it to rename libjawt.so locally.

Tom





Re: [cp-patches] Re: RFC: gdkpixbuf looking vs main gdk lock

2006-03-27 Thread Mark Wielaard
On Sun, 2006-03-26 at 11:13 +0200, Michael Koch wrote:
  We use this invocation in java-gcj-compat:
  
  echo | gcc -shared -O2 -fPIC -o libjawt.so -Wl,-soname,libjawt.so -xc -
  -lgcjawt
  
  to create a binary-compatible replacement for Sun's libjawt.so.  (Note
  that libgcj's version of libjawtgnu.so is called libgcjawt.so.  I would
  like to change this and have all free runtime environments standardize
  on the name libjawtgnu.so).
 
 Why do we use another name then libjawt.so anyway? The lib is put into
 $prefix/lib/classpath anyway and will never collide with SUNs. And we
 dont need do such a hack as Tom mentioned for java-gcj-compat (which is
 not really needed either, IMO). When classpath uses a different name
 every runtime depending on it need do some hack to rename it to
 libjawt.so again as real world apps do System.loadLibrary(jawt);.

It is kind of strange that real world apps do that. jawt isn't
normal/jni library. You would expect that they have a jni library linked
against the jawt library of the platform (and so jawt is loaded
automatically when the shared library used by the application is
loaded). But if real world applications do try to load it through such a
call to System.loadLibrary() then it makes sense to name it libjawt.so.
The only disadvantage to this might be that we don't want to clash with
other libjawt.so files on the system. I believe that was the original
reason for going with libjawtgnu.so since it is specific to our gtk-peer
implementation. Tom?

Cheers,

Mark




signature.asc
Description: This is a digitally signed message part


[cp-patches] FYI: small acinclude fixlet

2006-03-27 Thread Dalibor Topic
Hi all,

the attached patch fixes a FIXME om acinclude.

2006-03-27  Dalibor Topic  [EMAIL PROTECTED]

* m4/acinclude.m4 (CLASSPATH_FIND_JAVAC): Use
AC_MSG_ERROR instead of echoing the error message
that no compiler has been found manually.


cheers,
dalibor topic
--- acinclude.m4.~1.10.~	2006-02-11 21:56:08.0 +0100
+++ acinclude.m4	2006-03-27 19:34:55.0 +0200
@@ -24,9 +24,7 @@
   AM_CONDITIONAL(FOUND_GCJX, test x${user_specified_javac} = xgcjx)
 
   if test x${GCJ} = x  test x${JIKES} = x  test x${user_specified_javac} != xkjc  test x${user_specified_javac} != xgcjx  test x${user_specified_javac} != xecj; then
-  # FIXME: use autoconf error function
-  echo configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx 12
-  exit 1
+  AC_MSG_ERROR([cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx])
   fi
 ])
 


Re: [cp-patches] Re: RFC: gdkpixbuf looking vs main gdk lock

2006-03-27 Thread Thomas Fitzsimmons
On Mon, 2006-03-27 at 18:30 +0200, Mark Wielaard wrote:
 On Sun, 2006-03-26 at 11:13 +0200, Michael Koch wrote:
   We use this invocation in java-gcj-compat:
   
   echo | gcc -shared -O2 -fPIC -o libjawt.so -Wl,-soname,libjawt.so -xc -
   -lgcjawt
   
   to create a binary-compatible replacement for Sun's libjawt.so.  (Note
   that libgcj's version of libjawtgnu.so is called libgcjawt.so.  I would
   like to change this and have all free runtime environments standardize
   on the name libjawtgnu.so).
  
  Why do we use another name then libjawt.so anyway? The lib is put into
  $prefix/lib/classpath anyway and will never collide with SUNs. And we
  dont need do such a hack as Tom mentioned for java-gcj-compat (which is
  not really needed either, IMO). When classpath uses a different name
  every runtime depending on it need do some hack to rename it to
  libjawt.so again as real world apps do System.loadLibrary(jawt);.
 
 It is kind of strange that real world apps do that. jawt isn't
 normal/jni library. You would expect that they have a jni library linked
 against the jawt library of the platform (and so jawt is loaded
 automatically when the shared library used by the application is
 loaded).

Right, that is the normal use case.  But you still need a libjawt.so
binary in that case if you don't want to/cannot relink the
libjawt.so-using JNI parts of the app.

  But if real world applications do try to load it through such a
 call to System.loadLibrary() then it makes sense to name it libjawt.so.
 The only disadvantage to this might be that we don't want to clash with
 other libjawt.so files on the system. I believe that was the original
 reason for going with libjawtgnu.so since it is specific to our gtk-peer
 implementation. Tom?

Yes but this is a libgcj problem that doesn't affect GNU Classpath:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20790

Tom





[cp-patches] [jessie-nio] Mac ByteBuffer support; encrypter/decrypter classes

2006-03-27 Thread Casey Marshall
This adds an `update' method to Mac and an `engineUpdate' method to  
MacSpi that take a ByteBuffer as input. The default implementation of  
`engineUpdate' works by using a small byte array to get bytes from  
the buffer, then passes that byte array to another `engineUpdate'. I  
have a Mauve testlet for this.


This also adds some security parameters classes, which handle  
encryption, MAC verification, and compression of SSL records. I'm  
also refactoring some classes to use `foo' accessors instead of  
`getFoo' ones.


Thanks.

2006-03-27  Casey Marshall  [EMAIL PROTECTED]

* gnu/javax/net/ssl/provider/Record.java
(getContentType, getFragment, getFragment, getLength, getVersion):
call new accessors.
(contentType, fragment, fragment, length, version): new methods.
* gnu/javax/net/ssl/provider/CipheredStruct.java,
* gnu/javax/net/ssl/provider/GenericBlockCipher.java,
* gnu/javax/net/ssl/provider/GenericStreamCipher.java,
* gnu/javax/net/ssl/provider/InputSecurityParameters.java,  
* gnu/javax/net/ssl/provider/OutputSecurityParameters.java: new
files.
* javax/crypto/Mac.java (update): new method.
* javax/crypto/MacSpi.java (engineUpdate): new method.

Index: gnu/javax/net/ssl/provider/Record.java
===
RCS file: 
/cvsroot/classpath/classpath/gnu/javax/net/ssl/provider/Attic/Record.java,v
retrieving revision 1.1.2.1
diff -u -B -b -r1.1.2.1 Record.java
--- gnu/javax/net/ssl/provider/Record.java  7 Mar 2006 05:39:54 -   
1.1.2.1
+++ gnu/javax/net/ssl/provider/Record.java  27 Mar 2006 18:33:22 -
@@ -64,29 +64,47 @@
 this.buffer = buffer;
   }
 
+  // XXX remove
+  ContentType getContentType ()
+  {
+return contentType ();
+  }
+
   /**
* Gets the content type field.
*
* @return The content type field.
*/
-  ContentType getContentType ()
+  ContentType contentType ()
   {
 return ContentType.forInteger (buffer.get (0)  0xFF);
   }
 
+  // XXX remove.
+  int getFragment (final ByteBuffer sink)
+  {
+return fragment (sink);
+  }
+
   /**
* Get the fragment content, storing it into codesink/code.
*
* @param sink The sink for the fragment bytes.
* @return The number of bytes put into codesink/code
*/
-  int getFragment (final ByteBuffer sink)
+  int fragment (final ByteBuffer sink)
   {
-int length = getLength ();
+int length = length ();
 sink.put (((ByteBuffer) buffer.limit (5 + length).position (5)).slice ());
 return length;
   }
 
+  // XXX remove.
+  ByteBuffer getFragment ()
+  {
+return fragment ();
+  }
+
   /**
* Returns the fragment field as a ByteBuffer. The returned buffer
* is shared with this object's underlying buffer, so it will share
@@ -95,28 +113,39 @@
*
* @return The fragment buffer.
*/
-  ByteBuffer getFragment ()
+  ByteBuffer fragment ()
   {
 int length = getLength ();
 return ((ByteBuffer) buffer.limit (5 + length).position (5)).slice ();
   }
 
+  // XXX remove.
+  int getLength ()
+  {
+return length ();
+  }
+
   /**
* Gets the fragment length.
*
* @return The fragment length.
*/
-  int getLength ()
+  int length ()
   {
 return buffer.getShort (3)  0x;
   }
 
+  ProtocolVersion getVersion ()
+  {
+return version ();
+  }
+
   /**
* Gets the protocol version field.
*
* @return The protocol version field.
*/
-  ProtocolVersion getVersion ()
+  ProtocolVersion version ()
   {
 int major = buffer.get (1)  0xFF;
 int minor = buffer.get (2)  0xFF;
Index: gnu/javax/net/ssl/provider/CipheredStruct.java
===
RCS file: gnu/javax/net/ssl/provider/CipheredStruct.java
diff -N gnu/javax/net/ssl/provider/CipheredStruct.java
--- /dev/null   1 Jan 1970 00:00:00 -
+++ gnu/javax/net/ssl/provider/CipheredStruct.java  27 Mar 2006 18:33:22 
-
@@ -0,0 +1,84 @@
+/* CipheredStruct.java -- abstract 
+   Copyright (C) 2006  Free Software Foundation, Inc.
+
+This file is a part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at
+your option) any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+USA
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the 

Re: [cp-patches] [NATIVE-LAYER] Last methods implemented

2006-03-27 Thread Mark Wielaard
Hi Guilhem,

On Sat, 2006-03-25 at 18:08 +0100, Guilhem Lavaux wrote:
 Here is a patch to implement the last missing methods needed to override 
 completely the target layer (which has already been removed). I have 
 done some basic tests and I can run jamvm on some simple tests involving 
 IOs, sockets and process spawning.

Nice. What needs to be done to merge the branch to head?

Cheers,

Mark


signature.asc
Description: This is a digitally signed message part


Re: [cp-patches] [Patch] randome locale data udpates

2006-03-27 Thread Mark Wielaard
Hi Michael,

On Sat, 2006-03-25 at 20:18 +, Michael Koch wrote:
 2006-03-25  Michael Koch  [EMAIL PROTECTED]
 
   * resource/gnu/java/locale/LocaleInformation_fa.properties,
   resource/gnu/java/locale/LocaleInformation_kn.properties,
   resource/gnu/java/locale/LocaleInformation_kn_IN.properties,
   resource/gnu/java/locale/LocaleInformation_ko.properties,
   resource/gnu/java/locale/LocaleInformation_sl.properties,
   resource/gnu/java/locale/LocaleInformation_so.properties,
   resource/gnu/java/locale/LocaleInformation_so_DJ.properties,
   resource/gnu/java/locale/LocaleInformation_so_ET.properties,
   resource/gnu/java/locale/LocaleInformation_so_SO.properties,
   resource/gnu/java/locale/LocaleInformation_sr.properties:
   Random fixes I forgot to commit before.

That is a little cryptic. Could you explain where these fixes come from?
These files are generated by gnu.localegen. Are these fixes done by
hand? If so how do we prevent them from disappearing again when the
files are regenerated?

Thanks,

Mark


signature.asc
Description: This is a digitally signed message part


[cp-patches] Patch: GdkGraphics fix

2006-03-27 Thread Lillian Angel
This patch fixes the assertion errors I found when running several awt
applications in maemo. If the colormap is null, we should not reference
memory, unreference memory or allocate color for it.

2006-03-27  Lillian Angel  [EMAIL PROTECTED]

* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics_nativeDispose):
Added check for colormap. Prevents assertion error.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_setFGColor):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_nativeCopyState):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_initState__II):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_initFromImage):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_initStateUnlocked):
Likewise.

Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
===
RCS file: /sources/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,v
retrieving revision 1.34
diff -u -r1.34 gnu_java_awt_peer_gtk_GdkGraphics.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c	16 Mar 2006 03:24:18 -	1.34
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c	27 Mar 2006 20:01:39 -
@@ -160,7 +160,8 @@
   else /* GDK_IS_WINDOW (g-drawable) */
 g_object_ref (g-drawable);
 
-  g_object_ref (g-cm);
+  if (g-cm != NULL)
+g_object_ref (g-cm);
 
   NSA_SET_G_PTR (env, obj, g);
 
@@ -181,7 +182,9 @@
   g-drawable = (GdkDrawable *) gdk_pixmap_new (NULL, width, height, 
 		gdk_rgb_get_visual ()-depth);
   g-cm = gdk_rgb_get_colormap ();
-  g_object_ref (g-cm);
+  
+  if (g-cm != NULL)
+g_object_ref (g-cm);
   g-gc = gdk_gc_new (g-drawable);
 
   NSA_SET_G_PTR (env, obj, g);
@@ -208,7 +211,9 @@
   g-drawable = (GdkDrawable *)pixmap;
 
   g-cm = gdk_drawable_get_colormap (g-drawable);
-  g_object_ref (g-cm);
+  
+  if (g-cm != NULL)
+g_object_ref (g-cm);
   g-gc = gdk_gc_new (g-drawable);
 
   NSA_SET_G_PTR (env, obj, g);
@@ -235,7 +240,10 @@
 
   g_object_ref (g-drawable);
   g-cm = gtk_widget_get_colormap (widget);
-  g_object_ref (g-cm);
+  
+  if (g-cm != NULL)
+g_object_ref (g-cm);
+
   g-gc = gdk_gc_new (g-drawable);
   gdk_gc_copy (g-gc, widget-style-fg_gc[GTK_STATE_NORMAL]);
   color = widget-style-fg[GTK_STATE_NORMAL];
@@ -293,15 +301,17 @@
 }
 
   XFlush (GDK_DISPLAY ());
-
-  g_object_unref (g-gc);
+  
+  if (g-gc != NULL)
+g_object_unref (g-gc);
 
   if (GDK_STABLE_IS_PIXMAP (g-drawable))
 g_object_unref (g-drawable);
-  else /* GDK_IS_WINDOW (g-drawable) */
+  else if (g-drawable != NULL)
 g_object_unref (g-drawable);
 
-  g_object_unref (g-cm);
+  if (g-cm != NULL)
+g_object_unref (g-cm);
 
   g_free (g);
 
@@ -536,10 +546,12 @@
   color.blue = blue  8;
 
   g = (struct graphics *) NSA_GET_G_PTR (env, obj);
-
-  gdk_colormap_alloc_color (g-cm, color, TRUE, TRUE);
+  
+  if (g-cm != NULL)
+gdk_colormap_alloc_color (g-cm, color, TRUE, TRUE);
+
   gdk_gc_set_foreground (g-gc, color);
-
+  
   gdk_threads_leave ();
 }
 


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

2006-03-27 Thread Michael Barker
Hi,

Another punt at the Non-blocking IO and Scatter/Gather stuff.  This
patch also adds scatter/gather support to the FileChannelImpl.

ChangeLog:

2006-03-19  Michael Barker [EMAIL PROTECTED]

* vm/reference/gnu/java/nio/VMChannel.java: Added, supports setting 
non-blocking and scatter-gather io operations.
* gnu/java/nio/PipeImpl.java: Retrofitted to use VMChannel
* gnu/java/nio/SelectorImpl.java
(register) Added condition for
gnu.java.nio.SocketChannelSelectionKeyImpl
* gnu/java/nio/SocketChannelSelectionKeyImpl.java Added.
* gnu/java/nio/channels/FileChannelImpl.java: Retrofitted to use
VMChannel
* java/nio/FileChannel.java
(read (ByteBuffer)) Changed to call abstract method.
(write (ByteBuffer)) Changed to call abstract method.
* include/gnu_java_nio_VMChannel.h: Added.
* native/jni/java-nio/gnu_java_nio_VMChannel.c: Added.

Regards,
Michael Barker
Index: ChangeLog
===
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.6923
diff -u -r1.6923 ChangeLog
--- ChangeLog	27 Mar 2006 20:05:15 -	1.6923
+++ ChangeLog	27 Mar 2006 20:15:10 -
@@ -1360,6 +1360,21 @@
 	* vm/reference/gnu/classpath/Unsafe.java:
 	New class to handle low-level facilities for concurrency.
 
+2006-03-19  Michael Barker [EMAIL PROTECTED]
+	
+	* vm/reference/gnu/java/nio/VMChannel.java: Added, supports setting 
+	non-blocking and scatter-gather io operations.
+	* gnu/java/nio/PipeImpl.java: Retrofitted to use VMChannel
+	* gnu/java/nio/SelectorImpl.java
+	(register) Added condition for gnu.java.nio.SocketChannelSelectionKeyImpl
+	* gnu/java/nio/SocketChannelSelectionKeyImpl.java Added.
+	* gnu/java/nio/channels/FileChannelImpl.java: Retrofitted to use VMChannel
+	* java/nio/FileChannel.java
+	(read (ByteBuffer)) Changed to call abstract method.
+	(write (ByteBuffer)) Changed to call abstract method.
+	* include/gnu_java_nio_VMChannel.h: Added.
+	* native/jni/java-nio/gnu_java_nio_VMChannel.c: Added.
+
 2006-03-19  Mark Wielaard  [EMAIL PROTECTED]
 
 	* include/Makefile.am: Rename PlainDatagramSocketImpl to
Index: gnu/java/nio/PipeImpl.java
===
RCS file: /cvsroot/classpath/classpath/gnu/java/nio/PipeImpl.java,v
retrieving revision 1.11
diff -u -r1.11 PipeImpl.java
--- gnu/java/nio/PipeImpl.java	2 Jul 2005 20:32:13 -	1.11
+++ gnu/java/nio/PipeImpl.java	27 Mar 2006 20:15:12 -
@@ -37,6 +37,7 @@
 
 package gnu.java.nio;
 
+
 import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.nio.channels.Pipe;
@@ -47,12 +48,14 @@
   public static final class SourceChannelImpl extends Pipe.SourceChannel
   {
 private int native_fd;
+private VMChannel vmch;
 
 public SourceChannelImpl (SelectorProvider selectorProvider,
   int native_fd)
 {
   super (selectorProvider);
   this.native_fd = native_fd;
+  vmch = VMChannel.getVMChannel(this);
 }
 
 protected final void implCloseSelectableChannel()
@@ -64,19 +67,19 @@
 protected void implConfigureBlocking (boolean blocking)
   throws IOException
 {
-  throw new Error (Not implemented);
+  vmch.setBlocking(blocking);
 }
 
 public final int read (ByteBuffer src)
   throws IOException
 {
-  throw new Error (Not implemented);
+  return vmch.read(src);
 }
 
 public final long read (ByteBuffer[] srcs)
   throws IOException
 {
-  return read (srcs, 0, srcs.length);
+  return vmch.readScattering(srcs, 0, srcs.length);
 }
 
 public final synchronized long read (ByteBuffer[] srcs, int offset,
@@ -89,13 +92,7 @@
 	  || len  srcs.length - offset)
 	throw new IndexOutOfBoundsException();
 
-  long bytesRead = 0;
-  
-  for (int index = 0; index  len; index++)
-	bytesRead += read (srcs [offset + index]);
-
-  return bytesRead;
-
+  return vmch.readScattering(srcs, offset, len);
 }
 
 public final int getNativeFD()
@@ -107,12 +104,14 @@
   public static final class SinkChannelImpl extends Pipe.SinkChannel
   {
 private int native_fd;
+private VMChannel vmch;
 
 public SinkChannelImpl (SelectorProvider selectorProvider,
 int native_fd)
 {
   super (selectorProvider);
   this.native_fd = native_fd;
+  vmch = VMChannel.getVMChannel(this);
 }
 
 protected final void implCloseSelectableChannel()
@@ -124,19 +123,19 @@
 protected final void implConfigureBlocking (boolean blocking)
   throws IOException
 {
-  throw new Error (Not implemented);
+  vmch.setBlocking(blocking);
 }
 
 public final int write (ByteBuffer dst)
   throws IOException
 {
-  throw new Error (Not implemented);
+  return vmch.write(dst);
 }
 
 public final long write (ByteBuffer[] srcs)
   

[cp-patches] FYI: [generics] Update documentation of java.io.CharArrayWriter

2006-03-27 Thread Andrew John Hughes
I'm committing the attached patch which adds documentation to the
three new methods in java.io.CharArrayWriter.

Changelog:

2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/io/CharArrayWriter.java:
(append(char)): Documented.
(append(CharSequence)): Likewise.
(append(CharSequence,int,int)): Likewise.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn. 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/io/CharArrayWriter.java
===
RCS file: /cvsroot/classpath/classpath/java/io/CharArrayWriter.java,v
retrieving revision 1.9.2.4
diff -u -3 -p -u -r1.9.2.4 CharArrayWriter.java
--- java/io/CharArrayWriter.java2 Aug 2005 20:12:16 -   1.9.2.4
+++ java/io/CharArrayWriter.java27 Mar 2006 21:17:31 -
@@ -242,14 +242,37 @@ public class CharArrayWriter extends Wri
   }
   }
 
-  /** @since 1.5 */
+  /** 
+   * Appends the Unicode character, codec/code, to the output stream
+   * underlying this writer.  This is equivalent to codewrite(c)/code.
+   *
+   * @param c the character to append.
+   * @return a reference to this object.
+   * @since 1.5 
+   */
   public CharArrayWriter append(char c)
   {
 write(c);
 return this;
   }
 
-  /** @since 1.5 */
+  /** 
+   * Appends the specified sequence of Unicode characters to the
+   * output stream underlying this writer.  This is equivalent to
+   * appending the results of calling codetoString()/code on the
+   * character sequence.  As a result, the entire sequence may not be
+   * appended, as it depends on the implementation of
+   * codetoString()/code provided by the
+   * codeCharSequence/code.  For example, if the character
+   * sequence is wrapped around an input buffer, the results will
+   * depend on the current position and length of that buffer.
+   *
+   * @param seq the character sequence to append.  If seq is null,
+   *then the string null (the string representation of null)
+   *is appended.
+   * @return a reference to this object.
+   * @since 1.5 
+   */
   public CharArrayWriter append(CharSequence cs)
   {
 try
@@ -263,7 +286,27 @@ public class CharArrayWriter extends Wri
 return this;
   }
 
-  /** @since 1.5 */
+  /** 
+   * Appends the specified subsequence of Unicode characters to the
+   * output stream underlying this writer, starting and ending at the
+   * specified positions within the sequence.  The behaviour of this
+   * method matches the behaviour of writing the result of
+   * codeappend(seq.subSequence(start,end))/code when the sequence
+   * is not null.
+   *
+   * @param seq the character sequence to append.  If seq is null,
+   *then the string null (the string representation of null)
+   *is appended.
+   * @param start the index of the first Unicode character to use from
+   *the sequence.
+   * @param end the index of the last Unicode character to use from the
+   *sequence.
+   * @return a reference to this object.
+   * @throws IndexOutOfBoundsException if either of the indices are negative,
+   * the start index occurs after the end index, or the end index is
+   * beyond the end of the sequence.
+   * @since 1.5
+   */
   public CharArrayWriter append(CharSequence cs, int start, int end)
   {
 try


signature.asc
Description: Digital signature


[cp-patches] FYI: Merging java.io.CharArrayWriter from the generics branch

2006-03-27 Thread Andrew John Hughes
I'm committing the attached patch which merges in the additions
to java.io.CharArrayWriter from the generics branch.

Changelog:

2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/io/CharArrayWriter.java:
(append(char)): Documented.
(append(CharSequence)): Likewise.
(append(CharSequence,int,int)): Likewise.

2006-03-27  Tom Tromey  [EMAIL PROTECTED]
   
* java/io/CharArrayWriter.java (append): New overloads.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn. 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/io/CharArrayWriter.java
===
RCS file: /cvsroot/classpath/classpath/java/io/CharArrayWriter.java,v
retrieving revision 1.12
diff -u -3 -p -u -r1.12 CharArrayWriter.java
--- java/io/CharArrayWriter.java2 Jul 2005 20:32:37 -   1.12
+++ java/io/CharArrayWriter.java27 Mar 2006 21:29:01 -
@@ -242,6 +242,84 @@ public class CharArrayWriter extends Wri
   }
   }
 
+  /** 
+   * Appends the Unicode character, codec/code, to the output stream
+   * underlying this writer.  This is equivalent to codewrite(c)/code.
+   *
+   * @param c the character to append.
+   * @return a reference to this object.
+   * @since 1.5 
+   */
+  public CharArrayWriter append(char c)
+  {
+write(c);
+return this;
+  }
+
+  /** 
+   * Appends the specified sequence of Unicode characters to the
+   * output stream underlying this writer.  This is equivalent to
+   * appending the results of calling codetoString()/code on the
+   * character sequence.  As a result, the entire sequence may not be
+   * appended, as it depends on the implementation of
+   * codetoString()/code provided by the
+   * codeCharSequence/code.  For example, if the character
+   * sequence is wrapped around an input buffer, the results will
+   * depend on the current position and length of that buffer.
+   *
+   * @param seq the character sequence to append.  If seq is null,
+   *then the string null (the string representation of null)
+   *is appended.
+   * @return a reference to this object.
+   * @since 1.5 
+   */
+  public CharArrayWriter append(CharSequence cs)
+  {
+try
+  {
+   write(cs == null ? null : cs.toString());
+  }
+catch (IOException _)
+  {
+   // Can't happen.
+  }
+return this;
+  }
+
+  /** 
+   * Appends the specified subsequence of Unicode characters to the
+   * output stream underlying this writer, starting and ending at the
+   * specified positions within the sequence.  The behaviour of this
+   * method matches the behaviour of writing the result of
+   * codeappend(seq.subSequence(start,end))/code when the sequence
+   * is not null.
+   *
+   * @param seq the character sequence to append.  If seq is null,
+   *then the string null (the string representation of null)
+   *is appended.
+   * @param start the index of the first Unicode character to use from
+   *the sequence.
+   * @param end the index of the last Unicode character to use from the
+   *sequence.
+   * @return a reference to this object.
+   * @throws IndexOutOfBoundsException if either of the indices are negative,
+   * the start index occurs after the end index, or the end index is
+   * beyond the end of the sequence.
+   * @since 1.5
+   */
+  public CharArrayWriter append(CharSequence cs, int start, int end)
+  {
+try
+  {
+   write(cs == null ? null : cs.subSequence(start, end).toString());
+  }
+catch (IOException _)
+  {
+   // Can't happen.
+  }
+return this;
+  }
+
   /**
* This private method makes the buffer bigger when we run out of room
* by allocating a larger buffer and copying the valid chars from the


signature.asc
Description: Digital signature


[cp-patches] FYI: Make ActivationGroup_Stub final.

2006-03-27 Thread Andrew John Hughes
I'm committing the attached patch which fixes a bug found by
reverse JAPI.

Changelog:

2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/rmi/activation/ActivationGroup_Stub.java:
Made final.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn. 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/rmi/activation/ActivationGroup_Stub.java
===
RCS file: 
/cvsroot/classpath/classpath/java/rmi/activation/ActivationGroup_Stub.java,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 ActivationGroup_Stub.java
--- java/rmi/activation/ActivationGroup_Stub.java   29 Sep 2005 16:24:39 
-  1.2
+++ java/rmi/activation/ActivationGroup_Stub.java   27 Mar 2006 21:41:17 
-
@@ -51,7 +51,7 @@ import java.rmi.server.RemoteStub;
  *
  * @author Roman Kennke ([EMAIL PROTECTED])
  */
-public class ActivationGroup_Stub extends RemoteStub
+public final class ActivationGroup_Stub extends RemoteStub
   implements ActivationInstantiator, Remote
 {
   private static final long serialVersionUID = 2L;


signature.asc
Description: Digital signature


Re: [cp-patches] [NATIVE-LAYER] Last methods implemented

2006-03-27 Thread Guilhem Lavaux
Mark Wielaard wrote:

Hi Guilhem,

On Sat, 2006-03-25 at 18:08 +0100, Guilhem Lavaux wrote:
  

Here is a patch to implement the last missing methods needed to override 
completely the target layer (which has already been removed). I have 
done some basic tests and I can run jamvm on some simple tests involving 
IOs, sockets and process spawning.



Nice. What needs to be done to merge the branch to head?

Cheers,

Mark
  


I need to change implementation of socket timeouts to use poll/select
because it is a lot more portable than using SO_RCVTIMEO (which is
largely not implemented everywhere). So I have partially done this in my
tree.

After that, I want to do a full mauve comparison between the two
implementations to see if there are regressions, resynchronize the
branch with HEAD and merge it eventually.

Cheers,

Guilhem.



[cp-patches] FYI: [generics] Fix serialization UIDs for the new enums.

2006-03-27 Thread Andrew John Hughes
I'm committing the attached patch which fixes the serialization UIDs for two
new enumerations.

Changelog:

2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/math/RoundingMode.java:
Fixed serialization UID.
* java/net/Proxy.java:
(Type): Likewise.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn. 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/math/RoundingMode.java
===
RCS file: /cvsroot/classpath/classpath/java/math/Attic/RoundingMode.java,v
retrieving revision 1.1.2.1
diff -u -3 -p -u -r1.1.2.1 RoundingMode.java
--- java/math/RoundingMode.java 21 Feb 2006 15:35:08 -  1.1.2.1
+++ java/math/RoundingMode.java 27 Mar 2006 21:37:08 -
@@ -47,6 +47,11 @@ package java.math;
 public enum RoundingMode
 {
   UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN, HALF_EVEN, UNNECESSARY;
+
+  /**
+   * For compatability with Sun's JDK
+   */
+  private static final long serialVersionUID = 432302042773881265L;
   
   /**
* Returns the RoundingMode object corresponding to the legacy rounding modes
Index: java/net/Proxy.java
===
RCS file: /cvsroot/classpath/classpath/java/net/Attic/Proxy.java,v
retrieving revision 1.1.2.2
diff -u -3 -p -u -r1.1.2.2 Proxy.java
--- java/net/Proxy.java 8 Mar 2006 12:01:37 -   1.1.2.2
+++ java/net/Proxy.java 27 Mar 2006 21:37:08 -
@@ -49,7 +49,15 @@ public class Proxy
   /**
* Represents the proxy type.
*/
-  public enum Type { DIRECT, HTTP, SOCKS };
+  public enum Type 
+  { 
+DIRECT, HTTP, SOCKS 
+
+/**
+ * For compatability with Sun's JDK
+ */
+private static final long serialVersionUID = -2231209257930100533L;
+  };
 
   public static final Proxy NO_PROXY = new Proxy(Type.DIRECT, null);
 


signature.asc
Description: Digital signature


[cp-testresults] FAIL: jamvm build on Mon Mar 27 10:21:29 UTC 2006

2006-03-27 Thread cpdev
--
235. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 269)
Class[] parameterTypes, int slot,
^^^
The type Class[] is deprecated
--
236. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 271)
throws InstantiationException, IllegalAccessException,
   ^^
The type InstantiationException is deprecated
--
237. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 271)
throws InstantiationException, IllegalAccessException,
   ^^
The type IllegalAccessException is deprecated
--
238. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 272)
InvocationTargetException;
^
The type InvocationTargetException is deprecated
--
238 problems (1 error, 237 warnings)make[2]: *** [classes.zip] Error 255
make[2]: Leaving directory `/home/cpdev/Nightly/jamvm/build/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpdev/Nightly/jamvm/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: ecj built with ecj on jamvm on Mon Mar 27 10:31:13 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: No such file or directory


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


[cp-testresults] FAIL: regressions for libgcj on Mon Mar 27 11:05:09 UTC 2006

2006-03-27 Thread cpdev
Baseline from: Mon Mar 27 06:27:33 UTC 2006

Regressions:
FAIL: Thread_Sleep output - source compiled test

Totals:
PASS: 3412
XPASS: 4
FAIL: 1
XFAIL: 15


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


[cp-testresults] Japi diffs for classpath

2006-03-27 Thread Stuart Ballard
Japi diff jdk15 vs classpath:
Full results:
http://www.kaffe.org/~stuart/japi/htmlout/h-jdk15-classpath.html

Changes since last run:

-Comparison run at Sun Mar 26 11:05:59 2006 GMT
-jdk15 API scanned at 2006/03/26 05:07:22 EST
-classpath API scanned at 2006/03/26 05:49:57 EST
+Comparison run at Mon Mar 27 11:05:41 2006 GMT
+jdk15 API scanned at 2006/03/27 05:07:15 EST
+classpath API scanned at 2006/03/27 05:49:44 EST
-java.lang.reflect: 78.16% good, 5.17% bad, 16.66% missing
+java.lang.reflect: 79.77% good, 5.12% bad, 15.09% missing
-java.io: 97.73% good, 1.02% bad, 1.24% missing
+java.io: 97.8% good, 0.96% bad, 1.23% missing
-java.security: 80.29% good, 1.23% bad, 18.46% missing
+java.security: 80.31% good, 1.23% bad, 18.45% missing
-java.util.jar: 86.4% good, 1.84% bad, 11.75% missing
+java.util.jar: 86.43% good, 1.83% bad, 11.72% missing
-java.util.zip: 99.11% good, 0.17% bad, 0.7% missing
+java.util.zip: 99.12% good, 0.17% bad, 0.7% missing
-javax.sound.sampled: 98.45% good, 1.54% bad
+javax.sound.sampled: 98.46% good, 1.53% bad
-Total: 89.91% good, 0.22% minor, 0.75% bad, 9.1% missing
+Total: 89.91% good, 0.22% minor, 0.75% bad, 9.09% missing
-Classes: 212 minor, 156 bad, 147 missing.
+Classes: 212 minor, 155 bad, 147 missing.
-Methods: 98 minor, 1009 bad, 679 missing.
+Methods: 98 minor, 1009 bad, 674 missing.
-method java.lang.reflect.Constructor.isVarArgs(): missing in classpath
-method java.lang.reflect.Field.isEnumConstant(): missing in classpath
-method java.lang.reflect.Member.isSynthetic(): missing in classpath
-method java.lang.reflect.Method.isBridge(): missing in classpath
-method java.lang.reflect.Method.isVarArgs(): missing in classpath
-class java.io.InputStream: implements java.io.Closeable in jdk15, but doesn't 
implement java.io.Closeable in classpath


Japi diff classpath vs jdk15:
Full results:
http://www.kaffe.org/~stuart/japi/htmlout/h-classpath-jdk15.html

Changes since last run:

-Comparison run at Sun Mar 26 11:08:21 2006 GMT
-classpath API scanned at 2006/03/26 05:49:57 EST
-jdk15 API scanned at 2006/03/26 05:07:22 EST
+Comparison run at Mon Mar 27 11:08:04 2006 GMT
+classpath API scanned at 2006/03/27 05:49:44 EST
+jdk15 API scanned at 2006/03/27 05:07:15 EST
-java.lang.reflect: 100% good, 0.33% abs.add
+java.lang.reflect: 100% good
-Methods: 35 bad, 21 missing, 17 abs.add.
+Methods: 35 bad, 21 missing, 16 abs.add.
-java.lang.reflect:
-Abs.add
-method java.lang.reflect.Member.isSynthetic(): new interface method in jdk15
-




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


[cp-testresults] FAIL: jamvm build on Mon Mar 27 14:55:18 UTC 2006

2006-03-27 Thread cpdev
--
235. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 269)
Class[] parameterTypes, int slot,
^^^
The type Class[] is deprecated
--
236. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 271)
throws InstantiationException, IllegalAccessException,
   ^^
The type InstantiationException is deprecated
--
237. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 271)
throws InstantiationException, IllegalAccessException,
   ^^
The type IllegalAccessException is deprecated
--
238. WARNING in ../../jamvm/lib/java/lang/reflect/Constructor.java
 (at line 272)
InvocationTargetException;
^
The type InvocationTargetException is deprecated
--
238 problems (1 error, 237 warnings)make[2]: *** [classes.zip] Error 255
make[2]: Leaving directory `/home/cpdev/Nightly/jamvm/build/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cpdev/Nightly/jamvm/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: ecj built with ecj on jamvm on Mon Mar 27 15:06:20 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: No such file or directory


___
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 Mar 26 09:36:30 UTC 2006

2006-03-27 Thread cpdev
Baseline from: Sun Mar 26 04:11:28 UTC 2006

Regressions:
FAIL: gnu.testlet.java.lang.Thread.sleep: Interrupted sleep (number 2)

New fails:
FAIL: 
gnu.testlet.gnu.javax.swing.text.html.parser.support.Parser.HTML_randomTable: 
Exception: java.lang.Exception: 'htmlhead/headbodytabletr td  
C_0_0tdC_0_1tdC_0_2tdC_0_3/td/tr  /tbody/table/body/html' - 
'htmlhead/headbodytabletbodytrtd'C_0_0'/tdtd'C_0_1'/tdtd'C_0_2'/tdtd'C_0_3'/td/tr/tbody/tbody/table/body/html'
 expected 
'htmlhead/headbodytabletbodytrtd'C_0_0'/tdtd'C_0_1'/tdtd'C_0_2'/tdtd'C_0_3'/td/tr/tbody/table/body/html'
 (number 1)
FAIL: gnu.testlet.org.omg.CORBA_2_3.ORB.ValueTypeTest: 
org.omg.CORBA.COMM_FAILURE: Unable to open a socket at 208.185.251.117:1127 
Minor: c9 (201). Completed: not completed, Sun fixed this in 1.4.2 only. 
(number 1)

Totals:
PASS: 25447
XPASS: 0
FAIL: 444
XFAIL: 0


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


[cp-testresults] FAIL: ecj built with ecj on jamvm on Mon Mar 27 05:49:25 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: No such file or directory


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


[cp-testresults] FAIL: japi build on Wed Mar 22 08:35:14 UTC 2006

2006-03-27 Thread cpdev
cd src  jikes -d .. -classpath 
/home/cpdev/Nightly/classpath/gcjx-install/share/classpath/glibj.zip: 
net/wuffies/japi/*.java

Found 1 system error and issued 1 warning:

*** Semantic Warning: I/O warning: No such file or directory while trying to 
open /home/cpdev/Nightly/classpath/gcjx-install/share/classpath/glibj.zip.


*** Semantic Error: You need to modify your classpath, sourcepath, 
bootclasspath, and/or extdirs setup. Jikes could not find package java.lang 
in: 

/home/cpdev/Nightly/classpath/gcjx-install/share/classpath/glibj.zip
.

make: *** [classes] Error 1


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


[cp-testresults] FAIL: classpath build with jikes on Wed Mar 22 08:18:52 UTC 2006

2006-03-27 Thread cpdev

   101.   String data = getImageData(ev.getPoint());
^-^
*** Semantic Error: No accessible method with signature 
getImageData(java.awt.Point) was found in type 
javax.swing.text.html.FormView$MouseEventListener.

Issued 2 semantic warnings compiling 
../../classpath/javax/swing/plaf/metal/MetalSliderUI.java:

   129.   protected final int TICK_BUFFER = 4;
  ^-^
*** Semantic Warning: Final field TICK_BUFFER is initialized with a constant 
expression and could be made static to save space.


   132.   protected final String SLIDER_FILL = JSlider.isFilled;
 ^--^
*** Semantic Warning: Final field SLIDER_FILL is initialized with a constant 
expression and could be made static to save space.

Issued 1 semantic warning compiling 
../../classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java:

   168. protected final int RESIZE_NONE = 0;
^-^
*** Semantic Warning: Final field RESIZE_NONE is initialized with a constant 
expression and could be made static to save space.

Issued 1 lexical warning in 
../../classpath/gnu/java/rmi/registry/RegistryImpl_Stub.java:

61. private static java.lang.reflect.Method $method_bind_0;
^^
*** Lexical Warning: The use of $ in an identifier, while legal, is strongly 
discouraged, since it can conflict with compiler-generated names. If you are 
trying to access a nested type, use . instead of $.
make[1]: *** [compile-classes] Error 1
make[1]: Leaving directory `/home/cpdev/Nightly/classpath/jikes-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: ecj built with ecj on jamvm on Thu Mar 23 09:30:58 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: terminated by signal 11


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


[cp-testresults] FAIL: regressions for mauve-jamvm on Fri Mar 24 03:17:23 UTC 2006

2006-03-27 Thread cpdev
Baseline from: Thu Mar 23 21:55:42 UTC 2006

Regressions:
FAIL: gnu.testlet.java.lang.Thread.sleep: Interrupted sleep (number 2)

New fails:
FAIL: 
gnu.testlet.gnu.javax.swing.text.html.parser.support.Parser.HTML_randomTable: 
Exception: java.lang.Exception: 'htmlhead/headbodytable  tbody 
tr  tdC_0_0/td tdC_0_1/td tr   td   C_1_0 /td  /tr   tr  
td C_2_0  /td  td  C_2_1tr   tdC_3_0/td  
tdC_3_1/tdtdC_3_2tdC_3_3/td/tr/tbody/table/body/html' - 
'htmlhead/headbodytabletbodytrtd'C_0_0'/tdtd'C_0_1'/td/trtrtd'C_1_0'/td/trtrtd'C_2_0'/tdtd'C_2_1'/td/trtrtd'C_3_0'/tdtd'C_3_1'/tdtd'C_3_2'/tdtd'C_3_3'/td/tr/tbody/tbody/table/body/html'
 expected 
'htmlhead/headbodytabletbodytrtd'C_0_0'/tdtd'C_0_1'/td/trtrtd'C_1_0'/td/trtrtd'C_2_0'/tdtd'C_2_1'/td/trtrtd'C_3_0'/tdtd'C_3_1'/tdtd'C_3_2'/tdtd'C_3_3'/td/tr/tbody/table/body/html'
 (number 1)

Totals:
PASS: 25426
XPASS: 0
FAIL: 444
XFAIL: 0


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


[cp-testresults] FAIL: ecj built with ecj on jamvm on Fri Mar 24 23:38:57 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: terminated by signal 11


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


[cp-testresults] FAIL: ecj built with ecj on jamvm on Sun Mar 26 13:38:28 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: terminated by signal 11


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


[cp-testresults] FAIL: ecj built with ecj on jamvm on Mon Mar 27 18:54:11 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: terminated by signal 11


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


[cp-testresults] FAIL: ecj built with ecj on jamvm on Tue Mar 28 00:24:37 UTC 2006

2006-03-27 Thread cpdev
xargs: jamvm: terminated by signal 11


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


[cp-testresults] FAIL: generics classpath build on Tue Mar 28 06:02:25 UTC 2006

2006-03-27 Thread cpdev
top_builddir=.. top_srcdir=../../classpath /bin/sh ./gen-classlist.sh standard
Adding java source files from srcdir '../../classpath'.
Adding java source files from VM directory ../../classpath/vm/reference
Adding generated files in builddir '..'.
/usr/bin/find: ../java: No such file or directory
/usr/local/bin/ecj -1.5 
-warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast 
-proceedOnError -bootclasspath '' -classpath 
../../classpath/vm/reference:../../classpath:../../classpath/external/w3c_dom:../../classpath/external/sax:../../classpath/external/relaxngDatatype:.:
 -d . @classes
--
1. WARNING in ../../classpath/javax/swing/tree/DefaultTreeCellEditor.java
 (at line 120)
public void EditorContainer()
^
This method has a constructor name
--
--
2. ERROR in ../../classpath/java/net/Proxy.java
 (at line 54)
DIRECT, HTTP, SOCKS 
  ^
Syntax error on token SOCKS, ; expected after this token
--
--
3. WARNING in 
../../classpath/external/sax/org/xml/sax/helpers/ParserAdapter.java
 (at line 564)
atts.addAttribute (nsSupport.XMLNS, prefix,
   ^^^
The static field NamespaceSupport.XMLNS should be accessed in a static way
--
3 problems (1 error, 2 warnings)make[1]: *** [compile-classes] Error 255
make[1]: Leaving directory `/home/cpdev/Nightly/generics/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: regressions for libgcj on Tue Mar 28 06:31:19 UTC 2006

2006-03-27 Thread cpdev
Baseline from: Tue Mar 28 01:04:57 UTC 2006

Regressions:
FAIL: Thread_Sleep output - source compiled test

Totals:
PASS: 3412
XPASS: 4
FAIL: 1
XFAIL: 15


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


[cp-testresults] FAIL: regressions for mauve-jamvm on Tue Mar 28 07:18:03 UTC 2006

2006-03-27 Thread cpdev
Baseline from: Tue Mar 28 01:49:42 UTC 2006

Regressions:
FAIL: gnu.testlet.java.lang.Thread.sleep: Interrupted sleep (number 2)

New fails:
FAIL: gnu.testlet.gnu.java.security.jce.TestOfFormat abnormal termination 142 
CRASH or TIMEOUT
FAIL: gnu.testlet.gnu.java.security.jce.TestOfKeyFactory abnormal termination 
142 CRASH or TIMEOUT
FAIL: gnu.testlet.gnu.java.security.jce.TestOfKeyPairGenerator abnormal 
termination 142 CRASH or TIMEOUT
FAIL: gnu.testlet.gnu.java.security.sig.dss.TestOfDSSSignature abnormal 
termination 142 CRASH or TIMEOUT
FAIL: 
gnu.testlet.gnu.javax.swing.text.html.parser.support.Parser.HTML_randomTable: 
Exception: java.lang.Exception: 'htmlhead/headbodytable  trtd  
C_0_0  tdC_0_1   /td  tdC_0_2/td td   C_0_3td   C_0_4/tr  tr   
 td   C_1_0/td/tr  tr  tdC_2_0 /td  td C_2_1  /td  td   
C_2_2 /tdtd   C_2_3/td/tbody/table/body/html' - 
'htmlhead/headbodytabletbodytrtd'C_0_0'/tdtd'C_0_1'/tdtd'C_0_2'/tdtd'C_0_3'/tdtd'C_0_4'/td/trtrtd'C_1_0'/td/trtrtd'C_2_0'/tdtd'C_2_1'/tdtd'C_2_2'/tdtd'C_2_3'/td/tbody/tr/tbody/table/body/html'
 expected 
'htmlhead/headbodytabletbodytrtd'C_0_0'/tdtd'C_0_1'/tdtd'C_0_2'/tdtd'C_0_3'/tdtd'C_0_4'/td/trtrtd'C_1_0'/td/trtrtd'C_2_0'/tdtd'C_2_1'/tdtd'C_2_2'/tdtd'C_2_3'/td/tr/tbody/table/body/html'
 (number 1)

Totals:
PASS: 25408
XPASS: 0
FAIL: 446
XFAIL: 0


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


Re: SerialVersionUID missmatches

2006-03-27 Thread Andrew Haley
Tom Tromey writes:
   Andrew == Andrew Haley [EMAIL PROTECTED] writes:
  
   The question is what the fix is? In every service release of SUNs JDK
   they change some of the serialVersionUIDs. Whenever you run japi locally
   against another service release of SUN you will get other differences.
  
  Yeah.  javax.swing is a special case here.  Sun doesn't promise
  serialization compatibility.  That is one argument for japi simply
  ignoring these classes.

Sounds good to me.

Andrew.




Re: SerialVersionUID missmatches

2006-03-27 Thread Michael Koch
On Mon, Mar 27, 2006 at 11:18:27AM +0100, Andrew Haley wrote:
 Tom Tromey writes:
Andrew == Andrew Haley [EMAIL PROTECTED] writes:
   
The question is what the fix is? In every service release of SUNs JDK
they change some of the serialVersionUIDs. Whenever you run japi locally
against another service release of SUN you will get other differences.
   
   Yeah.  javax.swing is a special case here.  Sun doesn't promise
   serialization compatibility.  That is one argument for japi simply
   ignoring these classes.
 
 Sounds good to me.

To me too.


Cheers,
Michael
-- 
http://www.worldforge.org/



re: Mysaifu JVM 0.2.3 released

2006-03-27 Thread Simon Wong
Dear Sir,

Is there any place/newsgroup to discuss about Mysaifu
?

I am sure that there are many people looking for a JVM
run on pocket pc.

I am a JAVA newbie.

Regards,

Simon



Re: BitSet

2006-03-27 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please post to a public mailing list instead of private developers'
addresses (I no longer have time to actively contribute to classpath).

According to R.T.J.M. van der Heijden on 3/27/2006 7:42 AM:
 Dear Tom and Eric,
 
 I found your e-mail addresses in the source code of a Java class
 'BitSet'. For a software project, I want an efficient implementation
 that counts the number of bits that overlap (intersect) between sets. Of
 course, I can create a new set as being the intersection between the two
 sets and then determine the cardinality of that. After the count is
 available, the newly created intersecting set becomes garbage. However,
 it could be much more efficient to calculate and return the overlap
 directly by accessing the bits variable in both sets (I give a possible
 implementation below). Unfortunately, this is not possible because the
 'bits' variable is private in BitSet.
 
 Considering the above, I would suggest to set the accessibility of the
 'bits' variable to 'protected', or to add some kind of overlap-counter.
 Having 'bits' set to 'protected' allows more extensions, of course.

Sorry, but Classpath strives for compatibility with the Sun
specifications, which will not permit making fields publicly accessible
that are not documented as such.

 However,
 I think you might have other suggestions on how to solve this problem.
 
 I would be glad to hear from you.
 
 Best regards,
 
 Rene van der Heijden
 
 
 
 ///
 
 // The following is a suggested part of an extension of BitSet, or part
 of BitSet itself //
 ///
 
 
 int countOverlap(BitSet OtherSet)
 // counts the number of bits in the intersection of This and the
 OtherSet without intervenence of a new set
 {
 // determine the length to test
 int n = Math.min(bits.length,OtherSet.bits.length);
 // count the overlap; taken from the implementation of cardinality
 int overlap = 0;
 for (int i = n - 1; i = 0; i--)
 {
 long a = bits[i]  OtherSet.bits[i];
 // Take care of common cases.
 if (a == 0)
 continue;
 if (a == -1)
 {
 overlap += 64;
 continue;
 }
 // Successively collapse alternating bit groups into a sum.
 a = ((a  1)  0xL) + (a  0xL);
 a = ((a  2)  0xL) + (a  0xL);
 int b = (int) ((a  32) + a);
 b = ((b  4)  0x0f0f0f0f) + (b  0x0f0f0f0f);
 b = ((b  8)  0x00ff00ff) + (b  0x00ff00ff);
 overlap += ((b  16)  0x) + (b  0x);
 }
 return overlap;
 }
 
 
 

A good garbage collector recognizes temporary objects that are created for
a single use, and then discarded.  I doubt adding a method will buy you
much improvement.

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEJ/uC84KuGfSFAYARApNOAKDMbxNTxx+KSqoG3iuJLbp83ERvnwCgiHmF
UH6/WwVtUYWRFGEux+SYDJ0=
=y6mw
-END PGP SIGNATURE-



Mauve test gnu.testlet.java.lang.String.split stuck in infinite loop

2006-03-27 Thread Jeroen Frijters
Hi, 

I have not yet investigated, but it looks like the Mauve test
gnu.testlet.java.lang.String.split gets stuck in an infinite loop (it
runs fine on JDK 1.5). Could this be due to recent regexp changes?

Regards,
Jeroen



[Bug swing/26839] JTextArea - odd drawing behavior when selecting multiple lines

2006-03-27 Thread cvs-commit at developer dot classpath dot org


--- Comment #3 from cvs-commit at developer dot classpath dot org  
2006-03-27 16:11 ---
Subject: Bug 26839

CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Robert Schuster [EMAIL PROTECTED]06/03/27
16:08:12

Modified files:
.  : ChangeLog 
javax/swing/text: PlainView.java 

Log message:
Fixes PR #26839.

2006-03-27  Robert Schuster  [EMAIL PROTECTED]

* javax/swing/text/PlainView.java:
(drawLine): Use 'endOffset' instead of 'selectionEnd'
for painting the selected line.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6920tr2=1.6921r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/PlainView.java.diff?tr1=1.40tr2=1.41r1=textr2=text


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26839



___
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath


[Bug swing/26839] JTextArea - odd drawing behavior when selecting multiple lines

2006-03-27 Thread thebohemian at gmx dot net


--- Comment #4 from thebohemian at gmx dot net  2006-03-27 16:20 ---
Fixed!


-- 

thebohemian at gmx dot net changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |0.91


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26839



___
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath


Re: Datetypes for native target layer functions

2006-03-27 Thread Mark Wielaard
Hi Torsten,

On Thu, 2004-08-19 at 10:45 +0200, Dr. Torsten Rupp wrote:
 I'm currently changing the target native layer to replace the macros by 
 functions.

Please take a look at the NATIVE-LAYER branch that Guilhem is working
on. He already replaced all macros by functions. He is using the JNI
types as datatypes. See also the discussion in this thread:
http://thread.gmane.org/gmane.comp.java.classpath.devel/6695
And the various patches marked [NATIVE-LAYER] in classpath-patches.

Cheers,

Mark


signature.asc
Description: This is a digitally signed message part


[Bug awt/26868] New: GTK+ peers rely on GTK+ on X

2006-03-27 Thread gnu_andrew at member dot fsf dot org
Our GTK+ peers are currently dependent on GTK+ being run on top of X.  I tried
to compile them on top of GTK+/Quartz (from GTK+ CVS) today and it failed on
GdkGraphics.c which relies on the existence of XFlush in gdk/gdkx.h.  We need
to #ifdef appropriately on the underlying GDK implementation if we are to
support GTK+ on either Win32 or Quartz.


-- 
   Summary: GTK+ peers rely on GTK+ on X
   Product: classpath
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu_andrew at member dot fsf dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26868



___
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath


[Bug swing/26871] New: ImageIcon constructor throws exception when a nonexistent file is specified

2006-03-27 Thread avi at argo dot co dot il
When calling the ImageIcon constructor with a nonexistent file name as a
parameter, the constructor throws an exception. The Sun JDK does not, and the
documentation suggests that this is the correct behavior.

import javax.swing.ImageIcon;

public class ImageIconTest {

public static void main(String[] args) {
new ImageIcon(foobar);
}
}

(the file foobar should not exist for the test)

Exception in thread main java.lang.IllegalArgumentException: Couldn't load
image: foobar
   at gnu.java.awt.peer.gtk.GtkImage.init (lib-gnu-java-awt-peer-gtk.so.7)
   at gnu.java.awt.peer.gtk.GtkToolkit.createImage
(lib-gnu-java-awt-peer-gtk.so.7)
   at gnu.java.awt.peer.gtk.GtkToolkit.getImage
(lib-gnu-java-awt-peer-gtk.so.7)
   at javax.swing.ImageIcon.init (libgcj.so.7)
   at javax.swing.ImageIcon.init (libgcj.so.7)
   at ImageIconTest.main (ImageIconTest)

This is with the classpath in gcc 4.1 in FC5 (gcc-4.1.0-3)


-- 
   Summary: ImageIcon constructor throws exception when a
nonexistent file is specified
   Product: classpath
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: swing
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: avi at argo dot co dot il
 GCC build triplet: i386-redhat-linux
  GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26871



___
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath


Re: Datetypes for native target layer functions

2006-03-27 Thread Guilhem Lavaux
Hi Torsten,

Mark Wielaard wrote:

Hi Torsten,

On Thu, 2004-08-19 at 10:45 +0200, Dr. Torsten Rupp wrote:
  

I'm currently changing the target native layer to replace the macros by 
functions.



Please take a look at the NATIVE-LAYER branch that Guilhem is working
on. He already replaced all macros by functions. He is using the JNI
types as datatypes. See also the discussion in this thread:
http://thread.gmane.org/gmane.comp.java.classpath.devel/6695
And the various patches marked [NATIVE-LAYER] in classpath-patches.

Cheers,

Mark
  

I am following Mark's remark. I have completely removed target layer in
the NATIVE-LAYER branch. As we are not limited by the strong assumptions
you need on the compiler (not necessarily 64 bits, etc...) I have taken
some liberties on the implementation. However it has other advantages:
as being really thread safe, portable to other thread system and using
functions. Maybe we could inline everything if really needed but I doubt
we really lose time/cpu cycles in just one more direct function call in
the JNI implementation.

The default implementation should follow posix approximately (there are
surely room for enhancements). I used everywhere JNI types. However it
is not yet finished because there are still syscalls lying here and
there in JNI function calls (they have been added independently from the
TARGET layer).

So, please take a look at it and tell me of any remark.

Regards,

Guilhem.



Request for Comments: new Mauve harness

2006-03-27 Thread Anthony Balkissoon
Attached is the start of the new Mauve test harness I've been working
on.  The features that are present so far include:

1. easier invocation:
   - from the mauve source folder type (using jamvm, for example), type
jamvm   Harness to run all tests.  
   - jamvm Harness -help displays a help screen.  
   - single test: jamvm Harness javax.swing.JTable.isCellEditable 
   - folder of tests: jamvm Harness javax.swing

Note that the Harness also accepts input from standard input, so any
scripts you have locally will still work.  Also, for the test name
above, a gnu.testlet. prefix would work as well, as would the name
gnu/testlet/javax/swing/JTable/isCellEditable, so tab-completion is
possible.


2. line numbers for failures and minimal information for exceptions
   - rather than counting tests, when a call to harness.check() fails, a
line number and a reason for the failure is given
   - type/location/point of origin are given for uncaught exceptions


3. constant number of tests
   - as discussed, by reporting each call to test() as one test, while
still printing out all the failing calls to harness.check(), we're able
to achieve a constant number of tests between successive runs, even if
there are uncaught exceptions.  



*** NOTE: This harness is not done yet.  There is no hang/crash
detection, so you will notice problems if you try to run all tests.  I'm
hoping for feedback on the things it *can* do so far.

This harness will eventually detect crashes/hangs and will also
auto-compile tests, so new or updated tests will be run properly without
having to compile them separately.  Code coverage tools may also be
added.  So although right now the harness provides no more than what was
already available, it eventually will and I'd like to develop it in
stages, which is why I submit this patch for comments.

Thanks,
Tony
Index: Harness.java
===
RCS file: Harness.java
diff -N Harness.java
--- /dev/null	1 Jan 1970 00:00:00 -
+++ Harness.java	27 Mar 2006 21:33:20 -
@@ -0,0 +1,955 @@
+// Copyright (c) 2006  Red Hat, Inc.
+// Written by Anthony Balkissoon [EMAIL PROTECTED]
+// Adapted from gnu.testlet.SimpleTestHarness written by Tom Tromey.
+// Copyright (c) 2005  Mark J. Wielaard  [EMAIL PROTECTED]
+
+// This file is part of Mauve.
+
+// Mauve is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// Mauve is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Mauve; see the file COPYING.  If not, write to
+// the Free Software Foundation, 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
+// KNOWN BUGS:
+//   - should look for /*{ ... }*/ and treat contents as expected
+// output of test.  In this case we should redirect System.out
+// to a temp file we create.
+
+/*
+ * See the README.Harness file for information on how to use this
+ * file and what it is designed to do.
+ */
+
+import gnu.testlet.ResourceNotFoundException;
+import gnu.testlet.TestHarness;
+import gnu.testlet.TestReport;
+import gnu.testlet.TestResult;
+import gnu.testlet.TestSecurityManager;
+import gnu.testlet.Testlet;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.util.Vector;
+
+public class Harness
+extends TestHarness
+{
+  private int count = 0;
+
+  private int failures = 0;
+
+  private static Vector expected_xfails = new Vector();
+
+  private int xfailures = 0;
+
+  private int xpasses = 0;
+
+  private int total = 0;
+
+  private boolean verbose = false;
+
+  private boolean debug = false;
+
+  private boolean results_only = false;
+
+  private boolean exceptions = false;
+
+  private String description;
+
+  private String last_check;
+
+  private TestReport report = null;
+
+  private TestResult currentResult = null;
+  
+  private static boolean recursion = true;
+  
+  private static boolean showPasses = false;
+  
+  private static int total_tests = 0;
+  
+  private static int total_test_fails = 0;  
+  
+  private final String getDescription(String pf)
+  {
+return (pf + :  + description
++ ((last_check == null) ?  : (:  + last_check)) +  (number 
++ (count + 1) + ));
+  }
+
+  protected int getFailures()
+  {
+return failures;
+  }
+
+  /**
+   * Removes the gnu.testlet. from the start of a String.
+   * @param val the String
+   * 

[Bug classpath/22923] java.lang.reflect.Array contains native method

2006-03-27 Thread gnu_andrew at member dot fsf dot org


--- Comment #2 from gnu_andrew at member dot fsf dot org  2006-03-25 01:31 
---
Created an attachment (id=9)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9action=view)
Patch to separate into VMArray

Committed to Classpath CVS on 19/03/2006 for 0.91.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22923



___
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath


[Bug awt/26812] test colormap and expose event handling for Nokia 770

2006-03-27 Thread langel at redhat dot com


--- Comment #5 from langel at redhat dot com  2006-03-27 20:19 ---
This bug is a known Cairo problem.
I tested Maemo+Scratchbox+Xephyr with our AWT Demo and several AWT test cases,
They all work perfectly.


-- 

langel at redhat dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26812



___
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath


[Bug swing/26394] DefaultHighlighter.DefaultPainter cannot handle text lines with different font sizes

2006-03-27 Thread cvs-commit at developer dot classpath dot org


--- Comment #3 from cvs-commit at developer dot classpath dot org  
2006-03-27 20:37 ---
Subject: Bug 26394

CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Robert Schuster [EMAIL PROTECTED]06/03/21
18:10:10

Modified files:
.  : ChangeLog 
javax/swing/text: DefaultHighlighter.java 

Log message:
Fixes PR #26394.

2006-03-02  Robert Schuster  [EMAIL PROTECTED]

* javax/swing/text/DefaultHighlighter.java:
(DefaultHighlighter.DefaultHighlightPainter.paint): Rewritten.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6846tr2=1.6847r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/DefaultHighlighter.java.diff?tr1=1.8tr2=1.9r1=textr2=text


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26394



___
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath


[commit-cp] classpath ./ChangeLog vm/reference/java/lang/re... [generics-branch]

2006-03-27 Thread Jeroen Frijters
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: generics-branch
Changes by: Jeroen Frijters [EMAIL PROTECTED] 06/03/27 09:53:02

Modified files:
.  : ChangeLog 
vm/reference/java/lang/reflect: Constructor.java Method.java 

Log message:
2006-03-27  Jeroen Frijters  [EMAIL PROTECTED]

* vm/reference/java/lang/reflect/Constructor.java
(getTypeParameters): Check return value of getSignature for null.
* vm/reference/java/lang/reflect/Method.java
(getTypeParameters): Check return value of getSignature for null.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?only_with_tag=generics-branchtr1=1.2386.2.230tr2=1.2386.2.231r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/vm/reference/java/lang/reflect/Constructor.java.diff?only_with_tag=generics-branchtr1=1.11.2.11tr2=1.11.2.12r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/vm/reference/java/lang/reflect/Method.java.diff?only_with_tag=generics-branchtr1=1.12.2.9tr2=1.12.2.10r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/JSlider.java

2006-03-27 Thread David Gilbert
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: David Gilbert [EMAIL PROTECTED]   06/03/27 10:17:45

Modified files:
.  : ChangeLog 
javax/swing: JSlider.java 

Log message:
2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/JSlider.java
(AccessibleJSlider.AccessibleJSlider): Minor API doc edit,
(AccessibleJSlider.getAccessibleRole): Removed declaration of
NotImplementedException,
(AccessibleJSlider.getAccessibleValue): Updated API docs.
--

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6911tr2=1.6912r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JSlider.java.diff?tr1=1.22tr2=1.23r1=textr2=text




[commit-cp] classpath ./ChangeLog tools/gnu/classpath/tools...

2006-03-27 Thread Raif S. Naffah
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Raif S. Naffah [EMAIL PROTECTED]  06/03/27 13:35:51

Modified files:
.  : ChangeLog 
tools/gnu/classpath/tools/jarsigner: jarsigner.txt Main.java 

Log message:
2006-03-28  Raif S. Naffah  [EMAIL PROTECTED]

* tools/gnu/classpath/tools/jarsigner/Main.java (processArgs): Check
for null args.
Check for -help option.
* tools/gnu/classpath/tools/jarsigner/jarsigner.txt: Added -help option.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6913tr2=1.6914r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/tools/gnu/classpath/tools/jarsigner/jarsigner.txt.diff?tr1=1.1tr2=1.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/tools/gnu/classpath/tools/jarsigner/Main.java.diff?tr1=1.2tr2=1.3r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/JSlider.java

2006-03-27 Thread David Gilbert
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: David Gilbert [EMAIL PROTECTED]   06/03/27 14:33:10

Modified files:
.  : ChangeLog 
javax/swing: JSlider.java 

Log message:
2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/JSlider.java: Replaced TABs with spaces.
--

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6915tr2=1.6916r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JSlider.java.diff?tr1=1.24tr2=1.25r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/plaf/basic/Ba...

2006-03-27 Thread David Gilbert
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: David Gilbert [EMAIL PROTECTED]   06/03/27 14:53:06

Modified files:
.  : ChangeLog 
javax/swing/plaf/basic: BasicSliderUI.java 

Log message:
2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/plaf/basic/BasicSliderUI.java
(FocusHandler.focusGained): Marked as stub,
(FocusHandler.focusLost): Likewise,
(installKeyboardActions): Likewise,
(uninstallKeyBoardActions): Likewise.
--

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6916tr2=1.6917r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicSliderUI.java.diff?tr1=1.23tr2=1.24r1=textr2=text




[commit-cp] classpath ./ChangeLog vm/reference/gnu/classpat...

2006-03-27 Thread Tom Tromey
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Tom Tromey [EMAIL PROTECTED]  06/03/21 22:04:55

Modified files:
.  : ChangeLog 
vm/reference/gnu/classpath: Unsafe.java 

Log message:
* vm/reference/gnu/classpath/Unsafe.java (arrayBaseOffset): Javadoc
fix.
(Unsafe): Now final.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6851tr2=1.6852r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/vm/reference/gnu/classpath/Unsafe.java.diff?tr1=1.1tr2=1.2r1=textr2=text




[commit-cp] classpath/jessie-tests/gnu

2006-03-27 Thread Casey Marshall
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Casey Marshall [EMAIL PROTECTED]  06/03/22 00:55:53

classpath/jessie-tests/gnu

Update of /cvsroot/classpath/classpath/jessie-tests/gnu
In directory savannah:/tmp/cvs-serv11953/jessie-tests/gnu

Log Message:
Directory /cvsroot/classpath/classpath/jessie-tests/gnu added to the repository
-- Using per-directory sticky tag `jessie-nio'




[commit-cp] classpath ChangeLog

2006-03-27 Thread Mark Wielaard
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Mark Wielaard [EMAIL PROTECTED]   06/03/22 23:40:58

Modified files:
.  : ChangeLog 

Log message:
2006-03-22  Mark Wielaard  [EMAIL PROTECTED]

* gnu/java/awt/peer/gtk/GtkCursor.java: New class.

2006-03-22  Mark Wielaard  [EMAIL PROTECTED]

Fixes bug #26527
* gnu/java/awt/peer/gtk/GtkComponentPeer.java (gtkWidgetSetCursor):
Takes GtkImage, x and y coordinates.
(gtkWidgetSetCursorUnlocked): Likewise.
(GtkComponentPeer): Set cursor when set.
(setCursor): Handle GtkCursor.
* gnu/java/awt/peer/gtk/GtkToolkit.java (createCustomCursor):
New method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetSetCursor): Takes GtkImage, x and y coordinates.
(gtkWidgetSetCursorUnlocked): Likewise. Handle custom image.
* include/gnu_java_awt_peer_gtk_GtkComponentPeer.h: Regenerated.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6865tr2=1.6866r1=textr2=text




[commit-cp] classpath javax/imageio/stream/ImageOutputStrea...

2006-03-27 Thread Tom Tromey
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Tom Tromey [EMAIL PROTECTED]  06/03/25 00:15:10

Modified files:
javax/imageio/stream: ImageOutputStreamImpl.java 
  ImageInputStreamImpl.java 
.  : ChangeLog 

Log message:
* javax/imageio/stream/ImageOutputStreamImpl.java (writeBytes):
Rewrote.
(writeChar): Removed useless cast.
(writeChars(String)): Implemented.
(writeDouble): Rewrote.
(writeFloat): Likewise.
(writeUTF): Implemented.
* javax/imageio/stream/ImageInputStreamImpl.java (byteOrder): Default
to big endian.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/imageio/stream/ImageOutputStreamImpl.java.diff?tr1=1.5tr2=1.6r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/imageio/stream/ImageInputStreamImpl.java.diff?tr1=1.5tr2=1.6r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6886tr2=1.6887r1=textr2=text




[commit-cp] classpath ./ChangeLog.native native/jni/java-io... [NATIVE-LAYER]

2006-03-27 Thread Guilhem Lavaux
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: NATIVE-LAYER
Changes by: Guilhem Lavaux [EMAIL PROTECTED]  06/03/25 17:08:51

Modified files:
.  : ChangeLog.native 
native/jni/java-io: Makefile.am 
native/jni/java-lang: Makefile.am 
native/jni/java-net: Makefile.am 
native/jni/java-nio: Makefile.am 
native/jni/native-lib: Makefile.am cpio.c cpnet.c 
Added files:
native/jni/native-lib: cpproc.c 

Log message:
2006-03-25  Guilhem Lavaux  [EMAIL PROTECTED]

* native/jni/java-io/Makefile.am,
native/jni/java-lang/Makefile.am,
native/jni/java-net/Makefile.am,
native/jni/java-nio/Makefile.am: Link to libclasspathnative.la now.

* native/jni/native-lib/Makefile.am: Added cpproc.c

* native/jni/native-lib/cpio.c: Implemented missing functions for
CPIO.

* native/jni/native-lib/cpnet.c
(cpnet_getHostByName): Fixed address array initialization.

* native/jni/native-lib/cpproc.c: Implemented.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.native.diff?only_with_tag=NATIVE-LAYERtr1=1.1.2.7tr2=1.1.2.8r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/java-io/Makefile.am.diff?only_with_tag=NATIVE-LAYERtr1=1.23.2.1tr2=1.23.2.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/java-lang/Makefile.am.diff?only_with_tag=NATIVE-LAYERtr1=1.14.2.2tr2=1.14.2.3r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/java-net/Makefile.am.diff?only_with_tag=NATIVE-LAYERtr1=1.13.2.1tr2=1.13.2.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/java-nio/Makefile.am.diff?only_with_tag=NATIVE-LAYERtr1=1.21.2.1tr2=1.21.2.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/native-lib/Makefile.am.diff?only_with_tag=NATIVE-LAYERtr1=1.1.2.1tr2=1.1.2.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/native-lib/cpio.c.diff?only_with_tag=NATIVE-LAYERtr1=1.1.2.2tr2=1.1.2.3r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/native-lib/cpnet.c.diff?only_with_tag=NATIVE-LAYERtr1=1.1.2.2tr2=1.1.2.3r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/native-lib/cpproc.c?only_with_tag=NATIVE-LAYERrev=1.1.2.1




[commit-cp] classpath ./ChangeLog-jessie-nio jessie-tests/r... [jessie-nio]

2006-03-27 Thread Casey Marshall
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: jessie-nio
Changes by: Casey Marshall [EMAIL PROTECTED]  06/03/27 04:04:02

Modified files:
.  : ChangeLog-jessie-nio 
Added files:
jessie-tests   : run-tests.sh 
jessie-tests/gnu/javax/net/ssl/provider: testAlert.java 
 testCertificate.java 
 testCertificateRequest.java 
 testCipherSuiteList.java 
 testClientHello.java 
 testCompressionMethodList.java 
 testHelloRequest.java 
 testRecord.java 
 testServerDHParams.java 
 testServerHello.java 
 testServerRSAParams.java 

Log message:
2006-03-26  Casey Marshall  [EMAIL PROTECTED]

* jessie-tests/gnu/javax/net/ssl/provider/testAlert.java,
* jessie-tests/gnu/javax/net/ssl/provider/testCertificate.java,
* jessie-tests/gnu/javax/net/ssl/provider/testCertificateRequest.java,
* jessie-tests/gnu/javax/net/ssl/provider/testCipherSuiteList.java,
* jessie-tests/gnu/javax/net/ssl/provider/testClientHello.java,
* 
jessie-tests/gnu/javax/net/ssl/provider/testCompressionMethodList.java,
* jessie-tests/gnu/javax/net/ssl/provider/testHelloRequest.java,
* jessie-tests/gnu/javax/net/ssl/provider/testRecord.java,
* jessie-tests/gnu/javax/net/ssl/provider/testServerDHParams.java,
* jessie-tests/gnu/javax/net/ssl/provider/testServerHello.java,
* jessie-tests/gnu/javax/net/ssl/provider/testServerRSAParams.java,
* jessie-tests/run-tests.sh: new files.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog-jessie-nio.diff?only_with_tag=jessie-niotr1=1.1.2.4tr2=1.1.2.5r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/run-tests.sh?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testAlert.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testCertificate.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testCertificateRequest.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testCipherSuiteList.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testClientHello.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testCompressionMethodList.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testHelloRequest.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testRecord.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testServerDHParams.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testServerHello.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider/testServerRSAParams.java?only_with_tag=jessie-niorev=1.1.2.1




[commit-cp] classpath ./ChangeLog javax/swing/text/PlainVie...

2006-03-27 Thread Roman Kennke
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Roman Kennke [EMAIL PROTECTED]06/03/27 13:10:46

Modified files:
.  : ChangeLog 
javax/swing/text: PlainView.java FieldView.java 

Log message:
2006-03-27  Roman Kennke  [EMAIL PROTECTED]

* javax/swing/text/FieldView.java
(getPreferredSpan): Don't include trailing newline in
calculations.
* javax/swing/text/PlainView.java
(drawLine): Don't include trailing newline.
(determineMaxLineLength): Don't include trailing newline.
(getLineBuffer): Made method final.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6912tr2=1.6913r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/PlainView.java.diff?tr1=1.39tr2=1.40r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/FieldView.java.diff?tr1=1.11tr2=1.12r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/JSlider.java

2006-03-27 Thread David Gilbert
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: David Gilbert [EMAIL PROTECTED]   06/03/27 14:20:51

Modified files:
.  : ChangeLog 
javax/swing: JSlider.java 

Log message:
2006-03-27  David Gilbert  [EMAIL PROTECTED]

* javax/swing/JSlider.java: Updated API docs all over.
--

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6914tr2=1.6915r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JSlider.java.diff?tr1=1.23tr2=1.24r1=textr2=text




[commit-cp] classpath javax/swing/RepaintManager.java ./Cha...

2006-03-27 Thread Roman Kennke
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Roman Kennke [EMAIL PROTECTED]06/03/27 14:59:02

Modified files:
javax/swing: RepaintManager.java 
.  : ChangeLog 

Log message:
2006-03-27  Roman Kennke  [EMAIL PROTECTED]

* javax/swing/RepaintManager.java
(commitBuffer): Use simple drawImage() method instead of the
scaling version.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/RepaintManager.java.diff?tr1=1.28tr2=1.29r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6917tr2=1.6918r1=textr2=text




[commit-cp] classpath javax/swing/plaf/basic/BasicTabbedPan...

2006-03-27 Thread Roman Kennke
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Roman Kennke [EMAIL PROTECTED]06/03/20 21:53:36

Modified files:
javax/swing/plaf/basic: BasicTabbedPaneUI.java 
BasicLookAndFeel.java 
.  : ChangeLog 

Log message:
2006-03-20  Roman Kennke  [EMAIL PROTECTED]

* javax/swing/plaf/basic/BasicTabbedPaneUI.java
(tabsOpaque): New field.
(installDefaults): Fetch tabsOpaque property from UIManager.
(paintTab): Fill tab background when tabsOpaque property is true.
* javax/swing/plaf/basic/BasicLookAndFeel.java
(initComponentDefaults): Added TabbedPane.tabsOpaque property.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java.diff?tr1=1.38tr2=1.39r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicLookAndFeel.java.diff?tr1=1.87tr2=1.88r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6833tr2=1.6834r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/text/DefaultH...

2006-03-27 Thread Robert Schuster
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Robert Schuster [EMAIL PROTECTED] 06/03/21 18:10:10

Modified files:
.  : ChangeLog 
javax/swing/text: DefaultHighlighter.java 

Log message:
Fixes PR #26394.

2006-03-02  Robert Schuster  [EMAIL PROTECTED]

* javax/swing/text/DefaultHighlighter.java:
(DefaultHighlighter.DefaultHighlightPainter.paint): Rewritten.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6846tr2=1.6847r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/DefaultHighlighter.java.diff?tr1=1.8tr2=1.9r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/JTable.java

2006-03-27 Thread Anthony Balkissoon
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Anthony Balkissoon [EMAIL PROTECTED]  06/03/21 18:42:30

Modified files:
.  : ChangeLog 
javax/swing: JTable.java 

Log message:
2006-03-21  Anthony Balkissoon  [EMAIL PROTECTED]

* javax/swing/JTable.java:
(columnAtPoint): Removed the null check, this method should throw a NPE
if the argument is null.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6847tr2=1.6848r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JTable.java.diff?tr1=1.89tr2=1.90r1=textr2=text




[commit-cp] classpath/jessie-tests/gnu/javax/net/ssl/provider

2006-03-27 Thread Casey Marshall
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Casey Marshall [EMAIL PROTECTED]  06/03/22 00:56:09

classpath/jessie-tests/gnu/javax/net/ssl/provider

Update of /cvsroot/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider
In directory savannah:/tmp/cvs-serv12003/jessie-tests/gnu/javax/net/ssl/provider

Log Message:
Directory /cvsroot/classpath/classpath/jessie-tests/gnu/javax/net/ssl/provider 
added to the repository
-- Using per-directory sticky tag `jessie-nio'




[commit-cp] classpath javax/swing/text/html/FormView.java ....

2006-03-27 Thread Roman Kennke
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Roman Kennke [EMAIL PROTECTED]06/03/22 08:16:26

Modified files:
javax/swing/text/html: FormView.java 
.  : ChangeLog 

Log message:
2006-03-21  Roman Kennke  [EMAIL PROTECTED]

* javax/swing/text/html/FormView.java
(getImageData): New helper method.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/html/FormView.java.diff?tr1=1.2tr2=1.3r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6852tr2=1.6853r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/plaf/synth/Sy...

2006-03-27 Thread Tom Tromey
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Tom Tromey [EMAIL PROTECTED]  06/03/22 20:45:15

Modified files:
.  : ChangeLog 
javax/swing/plaf/synth: SynthStyle.java 

Log message:
* javax/swing/plaf/synth/SynthStyle.java (getInt): Implemented.
(getBoolean): Likewise.
(getString): Likewise.
(getIcon): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6860tr2=1.6861r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/synth/SynthStyle.java.diff?tr1=1.3tr2=1.4r1=textr2=text




[commit-cp] classpath javax/crypto/KeyGenerator.java gnu/ja...

2006-03-27 Thread Roman Kennke
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Roman Kennke [EMAIL PROTECTED]06/03/22 22:49:24

Modified files:
javax/crypto   : KeyGenerator.java 
gnu/java/security: Registry.java 
gnu/javax/crypto/pad: PadFactory.java 
.  : ChangeLog 

Log message:
2006-03-23  Roman Kennke  [EMAIL PROTECTED]

PR 26805
* gnu/java/security/Registry.java
(PKCS5_PAD): Added pad PKCS#5 algorithm.
* gnu/javax/crypto/pad/PadFactory.java
(getInstance): For PKCS#5, also return PKCS#7 pad
algorithm.
(getNames): Added PKCS#5.
* javax/crypto/KeyGenerator.java
(getInstance): Initialize key generator before returning
it.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/crypto/KeyGenerator.java.diff?tr1=1.3tr2=1.4r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/java/security/Registry.java.diff?tr1=1.4tr2=1.5r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/crypto/pad/PadFactory.java.diff?tr1=1.1tr2=1.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6862tr2=1.6863r1=textr2=text




[commit-cp] classpath ./ChangeLog javax/swing/tree/Abstract...

2006-03-27 Thread David Gilbert
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: David Gilbert [EMAIL PROTECTED]   06/03/23 01:53:38

Modified files:
.  : ChangeLog 
javax/swing/tree: AbstractLayoutCache.java DefaultTreeModel.java 
  DefaultTreeSelectionModel.java 
  FixedHeightLayoutCache.java 
  VariableHeightLayoutCache.java 

Log message:
2006-03-23  David Gilbert  [EMAIL PROTECTED]

* javax/swing/tree/AbstractLayoutCache.java
(getNodeDimensions): Mark as stub,
(getPreferredHeight): Likewise,
(getPreferredWidth): Likewise,
(getRowsForPaths): Likewise,
(isFixedRowHeight): Likewise,
* javax/swing/tree/DefaultTreeModel.java
(reload()): Mark as stub,
(reload(TreeNode)): Likewise,
(nodeStructureChanged): Likewise,
* javax/swing/tree/DefaultTreeSelectionModel.java
(clone): Mark as stub,
(setRowMapper): Likewise,
(setSelectionPaths): Likewise,
(isRowSelected): Likewise,
(resetRowSelection): Likewise,
(insureRowContinuity): Likewise,
(arePathsContiguous): Likewise,
(canPathsBeAdded): Likewise,
(canPathsBeRemoved): Likewise,
(notifyPathChange): Likewise,
(updateLeadIndex): Likewise,
(insureUniqueness): Likewise,
* javax/swing/tree/FixedHeightLayoutCache.java: Marked all methods as
stubs,
* javax/swing/tree/VariableHeightLayoutCache.java: Likewise.
--

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6867tr2=1.6868r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/tree/AbstractLayoutCache.java.diff?tr1=1.7tr2=1.8r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/tree/DefaultTreeModel.java.diff?tr1=1.18tr2=1.19r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/tree/DefaultTreeSelectionModel.java.diff?tr1=1.21tr2=1.22r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/tree/FixedHeightLayoutCache.java.diff?tr1=1.7tr2=1.8r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/tree/VariableHeightLayoutCache.java.diff?tr1=1.6tr2=1.7r1=textr2=text




[commit-cp] classpath/gnu/java/util/jar

2006-03-27 Thread Raif S. Naffah
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Raif S. Naffah [EMAIL PROTECTED]  06/03/25 11:38:09

classpath/gnu/java/util/jar

Update of /cvsroot/classpath/classpath/gnu/java/util/jar
In directory savannah:/tmp/cvs-serv31341/gnu/java/util/jar

Log Message:
Directory /cvsroot/classpath/classpath/gnu/java/util/jar added to the repository




[commit-cp] classpath/gnu/java/rmi/dgc LeaseRenewingTask.java [generics-branch]

2006-03-27 Thread Andrew John Hughes
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: generics-branch
Changes by: Andrew John Hughes [EMAIL PROTECTED]  06/03/25 11:38:57

Added files:
gnu/java/rmi/dgc: LeaseRenewingTask.java 

Log message:
2006-03-07  Audrius Meskauskas  [EMAIL PROTECTED]

* gnu/java/rmi/dgc/LeaseRenewingTask.java: New file.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/java/rmi/dgc/LeaseRenewingTask.java?only_with_tag=generics-branchrev=1.1.2.1




[commit-cp] classpath/tools/gnu/classpath/tools/jarsigner

2006-03-27 Thread Raif S. Naffah
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Raif S. Naffah [EMAIL PROTECTED]  06/03/25 12:29:40

classpath/tools/gnu/classpath/tools/jarsigner

Update of /cvsroot/classpath/classpath/tools/gnu/classpath/tools/jarsigner
In directory savannah:/tmp/cvs-serv5628/tools/gnu/classpath/tools/jarsigner

Log Message:
Directory /cvsroot/classpath/classpath/tools/gnu/classpath/tools/jarsigner 
added to the repository




[commit-cp] classpath ./ChangeLog javax/swing/JScrollBar.java

2006-03-27 Thread David Gilbert
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: David Gilbert [EMAIL PROTECTED]   06/03/25 22:30:40

Modified files:
.  : ChangeLog 
javax/swing: JScrollBar.java 

Log message:
2006-03-25  David Gilbert  [EMAIL PROTECTED]

* javax/swing/JScrollBar.java
(AccessibleJScrollBar.getAccessibleStateSet): Implemented,
(AccessibleJScrollBar.getAccessibleRole): Likewise,
(AccessibleJScrollBar.getAccessibleValue): Likewise,
(AccessibleJScrollBar.getCurrentAccessibleValue): Likewise,
(AccessibleJScrollBar.setCurrentAccessibleValue): Likewise,
(AccessibleJScrollBar.getMinimumAccessibleValue): Likewise,
(AccessibleJScrollBar.getMaximumAccessibleValue): Likewise,
(getAccessibleContext): Updated API docs.
--

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6903tr2=1.6904r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JScrollBar.java.diff?tr1=1.14tr2=1.15r1=textr2=text




[commit-cp] classpath ./ChangeLog java/io/InputStream.java

2006-03-27 Thread Andrew John Hughes
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Andrew John Hughes [EMAIL PROTECTED]  06/03/26 22:34:32

Modified files:
.  : ChangeLog 
java/io: InputStream.java 

Log message:
2006-03-26  Tom Tromey  [EMAIL PROTECTED]

* java/io/InputStream.java (InputStream): Implements Closeable.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6908tr2=1.6909r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/java/io/InputStream.java.diff?tr1=1.11tr2=1.12r1=textr2=text




[commit-cp] classpath ./ChangeLog m4/acinclude.m4

2006-03-27 Thread Dalibor Topic
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: Dalibor Topic [EMAIL PROTECTED]   06/03/27 17:47:29

Modified files:
.  : ChangeLog 
m4 : acinclude.m4 

Log message:
small acinclude FIXME fix

2006-03-27  Dalibor Topic  [EMAIL PROTECTED]

* m4/acinclude.m4 (CLASSPATH_FIND_JAVAC): Use
AC_MSG_ERROR instead of echoing the error message
that no compiler has been found manually.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6921tr2=1.6922r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/m4/acinclude.m4.diff?tr1=1.10tr2=1.11r1=textr2=text




[commit-cp] classpath gnu/javax/net/ssl/provider/Record.jav... [jessie-nio]

2006-03-27 Thread Casey Marshall
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: jessie-nio
Changes by: Casey Marshall [EMAIL PROTECTED]  06/03/27 18:34:52

Modified files:
gnu/javax/net/ssl/provider: Record.java 
javax/crypto   : Mac.java MacSpi.java 
Added files:
gnu/javax/net/ssl/provider: CipheredStruct.java 
GenericBlockCipher.java 
GenericStreamCipher.java 
InputSecurityParameters.java 
OutputSecurityParameters.java 

Log message:
2006-03-27  Casey Marshall  [EMAIL PROTECTED]

* gnu/javax/net/ssl/provider/Record.java
(getContentType, getFragment, getFragment, getLength, getVersion):
call new accessors.
(contentType, fragment, fragment, length, version): new methods.
* gnu/javax/net/ssl/provider/CipheredStruct.java,
* gnu/javax/net/ssl/provider/GenericBlockCipher.java,
* gnu/javax/net/ssl/provider/GenericStreamCipher.java,
* gnu/javax/net/ssl/provider/InputSecurityParameters.java,
* gnu/javax/net/ssl/provider/OutputSecurityParameters.java: new
files.
* javax/crypto/Mac.java (update): new method.
* javax/crypto/MacSpi.java (engineUpdate): new method.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/net/ssl/provider/Record.java.diff?only_with_tag=jessie-niotr1=1.1.2.1tr2=1.1.2.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/net/ssl/provider/CipheredStruct.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/net/ssl/provider/GenericBlockCipher.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/net/ssl/provider/GenericStreamCipher.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/net/ssl/provider/InputSecurityParameters.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/javax/net/ssl/provider/OutputSecurityParameters.java?only_with_tag=jessie-niorev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/crypto/Mac.java.diff?only_with_tag=jessie-niotr1=1.4tr2=1.4.6.1r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/crypto/MacSpi.java.diff?only_with_tag=jessie-niotr1=1.4tr2=1.4.6.1r1=textr2=text




[commit-cp] classpath ChangeLog-jessie-nio [jessie-nio]

2006-03-27 Thread Casey Marshall
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: jessie-nio
Changes by: Casey Marshall [EMAIL PROTECTED]  06/03/27 18:38:24

Modified files:
.  : ChangeLog-jessie-nio 

Log message:
2006-03-27  Casey Marshall  [EMAIL PROTECTED]

* gnu/javax/net/ssl/provider/Record.java
(getContentType, getFragment, getFragment, getLength, getVersion):
call new accessors.
(contentType, fragment, fragment, length, version): new methods.
* gnu/javax/net/ssl/provider/CipheredStruct.java,
* gnu/javax/net/ssl/provider/GenericBlockCipher.java,
* gnu/javax/net/ssl/provider/GenericStreamCipher.java,
* gnu/javax/net/ssl/provider/InputSecurityParameters.java,
* gnu/javax/net/ssl/provider/OutputSecurityParameters.java: new
files.
* javax/crypto/Mac.java (update): new method.
* javax/crypto/MacSpi.java (engineUpdate): new method.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog-jessie-nio.diff?only_with_tag=jessie-niotr1=1.1.2.5tr2=1.1.2.6r1=textr2=text




[commit-cp] classpath ./ChangeLog native/jni/gtk-peer/gnu_j...

2006-03-27 Thread Lillian Angel
CVSROOT:/sources/classpath
Module name:classpath
Branch: 
Changes by: Lillian Angel [EMAIL PROTECTED]   06/03/27 20:05:16

Modified files:
.  : ChangeLog 
native/jni/gtk-peer: gnu_java_awt_peer_gtk_GdkGraphics.c 

Log message:
2006-03-27  Lillian Angel  [EMAIL PROTECTED]

* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics_nativeDispose):
Added check for colormap. Prevents assertion error.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_setFGColor):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_nativeCopyState):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_initState__II):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_initFromImage):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics_initStateUnlocked):
Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6922tr2=1.6923r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c.diff?tr1=1.34tr2=1.35r1=textr2=text




[commit-cp] classpath ./ChangeLog java/io/CharArrayWriter.java [generics-branch]

2006-03-27 Thread Andrew John Hughes
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: generics-branch
Changes by: Andrew John Hughes [EMAIL PROTECTED]  06/03/27 21:22:03

Modified files:
.  : ChangeLog 
java/io: CharArrayWriter.java 

Log message:
2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/io/CharArrayWriter.java:
(append(char)): Documented.
(append(CharSequence)): Likewise.
(append(CharSequence,int,int)): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?only_with_tag=generics-branchtr1=1.2386.2.231tr2=1.2386.2.232r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/java/io/CharArrayWriter.java.diff?only_with_tag=generics-branchtr1=1.9.2.4tr2=1.9.2.5r1=textr2=text




[commit-cp] classpath ./ChangeLog java/io/CharArrayWriter.java

2006-03-27 Thread Andrew John Hughes
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Andrew John Hughes [EMAIL PROTECTED]  06/03/27 21:31:41

Modified files:
.  : ChangeLog 
java/io: CharArrayWriter.java 

Log message:
2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/io/CharArrayWriter.java:
(append(char)): Documented.
(append(CharSequence)): Likewise.
(append(CharSequence,int,int)): Likewise.

2006-03-27  Tom Tromey  [EMAIL PROTECTED]

* java/io/CharArrayWriter.java (append): New overloads.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6923tr2=1.6924r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/java/io/CharArrayWriter.java.diff?tr1=1.12tr2=1.13r1=textr2=text




[commit-cp] classpath ./ChangeLog java/rmi/activation/Activ...

2006-03-27 Thread Andrew John Hughes
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: 
Changes by: Andrew John Hughes [EMAIL PROTECTED]  06/03/27 21:43:45

Modified files:
.  : ChangeLog 
java/rmi/activation: ActivationGroup_Stub.java 

Log message:
2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/rmi/activation/ActivationGroup_Stub.java:
Made final.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6924tr2=1.6925r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/java/rmi/activation/ActivationGroup_Stub.java.diff?tr1=1.2tr2=1.3r1=textr2=text




[commit-cp] classpath ./ChangeLog java/math/RoundingMode.ja... [generics-branch]

2006-03-27 Thread Andrew John Hughes
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: generics-branch
Changes by: Andrew John Hughes [EMAIL PROTECTED]  06/03/27 21:49:05

Modified files:
.  : ChangeLog 
java/math  : RoundingMode.java 
java/net   : Proxy.java 

Log message:
2006-03-27  Andrew John Hughes  [EMAIL PROTECTED]

* java/math/RoundingMode.java:
Fixed serialization UID.
* java/net/Proxy.java:
(Type): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?only_with_tag=generics-branchtr1=1.2386.2.232tr2=1.2386.2.233r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/java/math/RoundingMode.java.diff?only_with_tag=generics-branchtr1=1.1.2.1tr2=1.1.2.2r1=textr2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/java/net/Proxy.java.diff?only_with_tag=generics-branchtr1=1.1.2.2tr2=1.1.2.3r1=textr2=text




[commit-cp] classpath ./ChangeLog-jessie-nio jessie-tests/r... [jessie-nio]

2006-03-27 Thread Casey Marshall
CVSROOT:/cvsroot/classpath
Module name:classpath
Branch: jessie-nio
Changes by: Casey Marshall [EMAIL PROTECTED]  06/03/28 06:39:49

Modified files:
.  : ChangeLog-jessie-nio 
jessie-tests   : run-tests.sh 
jessie-tests/gnu/javax/net/ssl/provider: testAlert.java 
 testCertificate.java 
 testCertificateRequest.java 
 testCipherSuiteList.java 
 testClientHello.java 
 testCompressionMethodList.java 
 testHelloRequest.java 
 testRecord.java 
 testServerDHParams.java 
 testServerHello.java 
 testServerRSAParams.java 
gnu/javax/net/ssl/provider: Alert.java Certificate.java 
CertificateRequest.java 
CipherSuite.java 
CipherSuiteList.java 
ClientCertificateTypeList.java 
ClientDiffieHellmanPublic.java 
ClientHello.java 
ClientKeyExchange.java 
CompressionMethodList.java 
Constructed.java 
EncryptedPreMasterSecret.java 
Finished.java 
GenericBlockCipher.java 
GenericStreamCipher.java 
Handshake.java HelloRequest.java 
InputSecurityParameters.java 
OutputSecurityParameters.java 
ProtocolVersion.java Random.java 
Record.java ServerDHParams.java 
ServerHello.java 
ServerHelloDone.java 
ServerKeyExchange.java 
ServerKeyExchangeParams.java 
ServerRSAParams.java Signature.java 
X500PrincipalList.java 

Log message:
2006-03-27  Casey Marshall  [EMAIL PROTECTED]

* jessie-tests/run-tests.sh: log test name to `check.log'.
* jessie-tests/gnu/javax/net/ssl/provider/testAlert.java,
* jessie-tests/gnu/javax/net/ssl/provider/testCertificate.java,
* jessie-tests/gnu/javax/net/ssl/provider/testCertificateRequest.java,
* jessie-tests/gnu/javax/net/ssl/provider/testCipherSuiteList.java,
* jessie-tests/gnu/javax/net/ssl/provider/testClientHello.java,
* 
jessie-tests/gnu/javax/net/ssl/provider/testCompressionMethodList.java,
* jessie-tests/gnu/javax/net/ssl/provider/testHelloRequest.java,
* jessie-tests/gnu/javax/net/ssl/provider/testRecord.java,
* jessie-tests/gnu/javax/net/ssl/provider/testServerDHParams.java,
* jessie-tests/gnu/javax/net/ssl/provider/testServerHello.java,
* jessie-tests/gnu/javax/net/ssl/provider/testServerRSAParams.java:
Ensure that tests mention PASSes; use new accessors.
* gnu/javax/net/ssl/provider/Alert.java,
* gnu/javax/net/ssl/provider/Certificate.java,
* gnu/javax/net/ssl/provider/CertificateRequest.java,
* gnu/javax/net/ssl/provider/CipherSuite.java,
* gnu/javax/net/ssl/provider/CipherSuiteList.java,
* gnu/javax/net/ssl/provider/ClientCertificateTypeList.java,
* gnu/javax/net/ssl/provider/ClientDiffieHellmanPublic.java,
* gnu/javax/net/ssl/provider/ClientHello.java,
* gnu/javax/net/ssl/provider/ClientKeyExchange.java,
* gnu/javax/net/ssl/provider/CompressionMethodList.java,
* gnu/javax/net/ssl/provider/Constructed.java,
* gnu/javax/net/ssl/provider/EncryptedPreMasterSecret.java,
* gnu/javax/net/ssl/provider/Finished.java,
* gnu/javax/net/ssl/provider/GenericBlockCipher.java,
* gnu/javax/net/ssl/provider/GenericStreamCipher.java,
* gnu/javax/net/ssl/provider/Handshake.java,
* gnu/javax/net/ssl/provider/HelloRequest.java,
* gnu/javax/net/ssl/provider/InputSecurityParameters.java,
* gnu/javax/net/ssl/provider/OutputSecurityParameters.java,
* gnu/javax/net/ssl/provider/ProtocolVersion.java,
* gnu/javax/net/ssl/provider/Random.java,
* gnu/javax/net/ssl/provider/Record.java,
* gnu/javax/net/ssl/provider/ServerDHParams.java,