I'm committing the attached patch, which fixes a number of generics-related problems highlighted by the JAPI CVS runs.
Changelog:
2005-09-28 Andrew John Hughes <[EMAIL PROTECTED]>
* gnu/java/awt/peer/qt/QtGraphics.java:
(getRenderingHints()): Create a clone as no such
constructor exists with generic typing.
(setRenderingHints(Map<?,?>)): Added parametric typing
and fixed use of RenderingHints constructor.
* java/awt/AWTEventMulticaster.java:
(getListeners(EventListener,Class<T>)): Added generic
typing.
* java/awt/Component.java:
(getListeners(Class<T>)): Likewise.
(getFocusTraversalKeys(int)): Likewise.
* java/awt/Font.java:
(Font(Map<? extends Attribute,?>)): Likewise.
(deriveFont(Map<? extends Attribute,?>)): Likewise.
(getAttributes()): Likewise.
(getAvailableAttributes()): Simplified naming with static import.
(getFont(Map<? extends Attribute,?>)): Added generic typing.
* java/awt/Graphics2D.java:
(setRenderingHints(Map<?,?>)): Likewise.
(addRenderingHints(Map<?,?>)): Likewise.
* java/awt/KeyboardFocusManager.java:
(setDefaultFocusTraversalKeys(int,Set<? extends KeyStroke>)):
Likewise.
(getKeyEventDispatchers()): Likewise.
(getKeyEventPostProcessors()): Likewise.
* java/awt/MenuItem.java:
(getListeners(Class<T>)): Likewise.
* java/awt/RenderingHints.java:
(RenderingHints(Map<Key,?>)): Likewise.
(putAll(Map<?,?>)): Likewise.
(keySet()): Likewise.
(values()): Likewise.
(entrySet()): Likewise.
* java/awt/Toolkit.java:
(desktopProperties): Likewise.
(createDragGestureRecognizer(Class<T>,DragSource,Component,int,
DragGestureListener)): Likewise.
(mapInputMethodHighlight(InputMethodHighlight)): Likewise.
* java/lang/Class.java:
(getDeclaringClass()): Likewise.
* java/lang/Enum.java:
(valueOf(Class<S>,String)): Fixed return type.
* java/lang/SecurityManager.java:
(checkMemberAccess(Class<?>,int)): Likewise.
* java/lang/reflect/Array.java:
(newInstance(Class<?>,int)): Likewise.
(newInstance(Class<?>,int[])): Likewise.
* vm/reference/java/lang/reflect/Constructor.java:
(getTypeParameters()): Type parameter changed from ? to Constructor.
* vm/reference/java/lang/reflect/Field.java:
(getDeclaringClass()): Added generic typing.
(getType()): Likewise.
* vm/reference/java/lang/reflect/Method.java:
(getDeclaringClass()): Likewise.
(getExceptionTypes()): Likewise.
(getParameterTypes()): Likewise.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
"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: gnu/java/awt/peer/qt/QtGraphics.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/qt/QtGraphics.java,v
retrieving revision 1.1.2.2
diff -u -3 -p -u -r1.1.2.2 QtGraphics.java
--- gnu/java/awt/peer/qt/QtGraphics.java 10 Sep 2005 15:31:38 -0000
1.1.2.2
+++ gnu/java/awt/peer/qt/QtGraphics.java 28 Sep 2005 17:47:06 -0000
@@ -661,12 +661,13 @@ public abstract class QtGraphics extends
public RenderingHints getRenderingHints()
{
- return new RenderingHints( renderingHints );
+ return (RenderingHints) renderingHints.clone();
}
- public void setRenderingHints(Map hints)
+ public void setRenderingHints(Map<?,?> hints)
{
- renderingHints = new RenderingHints( hints );
+ renderingHints = new RenderingHints( null );
+ renderingHints.putAll(hints);
updateRenderingHints();
}
Index: java/awt/AWTEventMulticaster.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/AWTEventMulticaster.java,v
retrieving revision 1.7.2.3
diff -u -3 -p -u -r1.7.2.3 AWTEventMulticaster.java
--- java/awt/AWTEventMulticaster.java 2 Aug 2005 20:12:14 -0000 1.7.2.3
+++ java/awt/AWTEventMulticaster.java 28 Sep 2005 17:47:07 -0000
@@ -1175,16 +1175,17 @@ public class AWTEventMulticaster
* @throws IllegalArgumentException if type is Void.TYPE
* @since 1.4
*/
- public static EventListener[] getListeners(EventListener l, Class type)
+ public static <T extends EventListener> T[] getListeners(EventListener l,
+ Class<T> type)
{
- ArrayList list = new ArrayList();
+ ArrayList<EventListener> list = new ArrayList<EventListener>();
if (l instanceof AWTEventMulticaster)
((AWTEventMulticaster) l).getListeners(list, type);
else if (type.isInstance(l))
list.add(l);
EventListener[] r = (EventListener[]) Array.newInstance(type, list.size());
list.toArray(r);
- return r;
+ return (T[]) r;
}
/**
Index: java/awt/Component.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Component.java,v
retrieving revision 1.38.2.16
diff -u -3 -p -u -r1.38.2.16 Component.java
--- java/awt/Component.java 20 Sep 2005 18:46:25 -0000 1.38.2.16
+++ java/awt/Component.java 28 Sep 2005 17:47:08 -0000
@@ -2816,29 +2816,29 @@ public abstract class Component
* @see #getPropertyChangeListeners()
* @since 1.3
*/
- public EventListener[] getListeners(Class listenerType)
+ public <T extends EventListener> T[] getListeners(Class<T> listenerType)
{
if (listenerType == ComponentListener.class)
- return getComponentListeners();
+ return (T[]) getComponentListeners();
if (listenerType == FocusListener.class)
- return getFocusListeners();
+ return (T[]) getFocusListeners();
if (listenerType == HierarchyListener.class)
- return getHierarchyListeners();
+ return (T[]) getHierarchyListeners();
if (listenerType == HierarchyBoundsListener.class)
- return getHierarchyBoundsListeners();
+ return (T[]) getHierarchyBoundsListeners();
if (listenerType == KeyListener.class)
- return getKeyListeners();
+ return (T[]) getKeyListeners();
if (listenerType == MouseListener.class)
- return getMouseListeners();
+ return (T[]) getMouseListeners();
if (listenerType == MouseMotionListener.class)
- return getMouseMotionListeners();
+ return (T[]) getMouseMotionListeners();
if (listenerType == MouseWheelListener.class)
- return getMouseWheelListeners();
+ return (T[]) getMouseWheelListeners();
if (listenerType == InputMethodListener.class)
- return getInputMethodListeners();
+ return (T[]) getInputMethodListeners();
if (listenerType == PropertyChangeListener.class)
- return getPropertyChangeListeners();
- return (EventListener[]) Array.newInstance(listenerType, 0);
+ return (T[]) getPropertyChangeListeners();
+ return (T[]) Array.newInstance(listenerType, 0);
}
/**
@@ -3691,14 +3691,14 @@ public abstract class Component
*
* @since 1.4
*/
- public Set getFocusTraversalKeys (int id)
+ public Set<AWTKeyStroke> getFocusTraversalKeys (int id)
{
if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&
id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS &&
id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS)
throw new IllegalArgumentException();
- Set s = null;
+ Set<AWTKeyStroke> s = null;
if (focusTraversalKeys != null)
s = focusTraversalKeys[id];
Index: java/awt/Font.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Font.java,v
retrieving revision 1.18.2.6
diff -u -3 -p -u -r1.18.2.6 Font.java
--- java/awt/Font.java 10 Sep 2005 15:31:42 -0000 1.18.2.6
+++ java/awt/Font.java 28 Sep 2005 17:47:08 -0000
@@ -44,6 +44,7 @@ import gnu.java.awt.peer.ClasspathFontPe
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
import java.awt.font.LineMetrics;
+import java.awt.font.TextAttribute;
import java.awt.font.TextLayout;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
@@ -51,7 +52,7 @@ import java.awt.peer.FontPeer;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
-import java.text.AttributedCharacterIterator;
+import static java.text.AttributedCharacterIterator.Attribute;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
import java.util.HashMap;
@@ -348,7 +349,7 @@ private static final long serialVersionU
this.peer = getPeerFromToolkit (name, attrs);
}
- public Font (Map attrs)
+ public Font (Map<? extends Attribute, ?> attrs)
{
this(null, attrs);
}
@@ -769,7 +770,7 @@ private static final long serialVersionU
*
* @since 1.2
*/
- public Font deriveFont (Map attributes)
+ public Font deriveFont (Map<? extends Attribute, ?> attributes)
{
return peer.deriveFont (this, attributes);
}
@@ -783,9 +784,9 @@ private static final long serialVersionU
* @see java.text.AttributedCharacterIterator.Attribute
* @see java.awt.font.TextAttribute
*/
- public Map getAttributes ()
+ public Map<TextAttribute,?> getAttributes ()
{
- return peer.getAttributes (this);
+ return peer.getAttributes (this);
}
/**
@@ -797,7 +798,7 @@ private static final long serialVersionU
* @see java.text.AttributedCharacterIterator.Attribute
* @see java.awt.font.TextAttribute
*/
- public AttributedCharacterIterator.Attribute[] getAvailableAttributes()
+ public Attribute[] getAvailableAttributes()
{
return peer.getAvailableAttributes (this);
}
@@ -862,7 +863,7 @@ private static final long serialVersionU
*
* @see java.awt.font.TextAttribute
*/
- public static Font getFont (Map attributes)
+ public static Font getFont (Map<? extends Attribute, ?> attributes)
{
return getFontFromToolkit (null, attributes);
}
Index: java/awt/Graphics2D.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Graphics2D.java,v
retrieving revision 1.5.2.3
diff -u -3 -p -u -r1.5.2.3 Graphics2D.java
--- java/awt/Graphics2D.java 2 Aug 2005 20:12:15 -0000 1.5.2.3
+++ java/awt/Graphics2D.java 28 Sep 2005 17:47:08 -0000
@@ -116,9 +116,9 @@ public abstract class Graphics2D extends
public abstract Object getRenderingHint(RenderingHints.Key hintKey);
- public abstract void setRenderingHints(Map hints);
+ public abstract void setRenderingHints(Map<?,?> hints);
- public abstract void addRenderingHints(Map hints);
+ public abstract void addRenderingHints(Map<?,?> hints);
public abstract RenderingHints getRenderingHints();
Index: java/awt/KeyboardFocusManager.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/KeyboardFocusManager.java,v
retrieving revision 1.5.2.7
diff -u -3 -p -u -r1.5.2.7 KeyboardFocusManager.java
--- java/awt/KeyboardFocusManager.java 2 Aug 2005 20:12:15 -0000 1.5.2.7
+++ java/awt/KeyboardFocusManager.java 28 Sep 2005 17:47:09 -0000
@@ -600,7 +600,9 @@ public abstract class KeyboardFocusManag
* @see #UP_CYCLE_TRAVERSAL_KEYS
* @see #DOWN_CYCLE_TRAVERSAL_KEYS
*/
- public void setDefaultFocusTraversalKeys (int id, Set keystrokes)
+ public void setDefaultFocusTraversalKeys (int id,
+ Set<? extends AWTKeyStroke>
+ keystrokes)
{
if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS &&
id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS &&
@@ -1034,9 +1036,9 @@ public abstract class KeyboardFocusManag
* @return A list of explicitly registered key event dispatchers.
* @see
KeyboardFocusManager#addKeyEventDispatcher(java.awt.KeyEventDispatcher)
*/
- protected List getKeyEventDispatchers ()
+ protected List<KeyEventDispatcher> getKeyEventDispatchers ()
{
- return (List) keyEventDispatchers.clone ();
+ return (List<KeyEventDispatcher>) keyEventDispatchers.clone ();
}
/**
@@ -1091,9 +1093,9 @@ public abstract class KeyboardFocusManag
* @return A list of explicitly registered key event post processors.
* @see
KeyboardFocusManager#addKeyEventPostProcessor(java.awt.KeyEventPostProcessor)
*/
- protected List getKeyEventPostProcessors ()
+ protected List<KeyEventPostProcessor> getKeyEventPostProcessors ()
{
- return (List) keyEventPostProcessors.clone ();
+ return (List<KeyEventPostProcessor>) keyEventPostProcessors.clone ();
}
/**
Index: java/awt/MenuItem.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/MenuItem.java,v
retrieving revision 1.15.2.7
diff -u -3 -p -u -r1.15.2.7 MenuItem.java
--- java/awt/MenuItem.java 20 Sep 2005 18:46:26 -0000 1.15.2.7
+++ java/awt/MenuItem.java 28 Sep 2005 17:47:10 -0000
@@ -517,11 +517,11 @@ removeActionListener(ActionListener l)
* ClassClassException is thrown.
* @since 1.3
*/
- public EventListener[] getListeners(Class listenerType)
+ public <T extends EventListener> T[] getListeners(Class<T> listenerType)
{
if (listenerType == ActionListener.class)
- return getActionListeners();
- return (EventListener[]) Array.newInstance(listenerType, 0);
+ return (T[]) getActionListeners();
+ return (T[]) Array.newInstance(listenerType, 0);
}
/*************************************************************************/
Index: java/awt/RenderingHints.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/RenderingHints.java,v
retrieving revision 1.3.2.3
diff -u -3 -p -u -r1.3.2.3 RenderingHints.java
--- java/awt/RenderingHints.java 2 Aug 2005 20:12:15 -0000 1.3.2.3
+++ java/awt/RenderingHints.java 28 Sep 2005 17:47:10 -0000
@@ -54,7 +54,8 @@ import java.util.Set;
* @author Rolf W. Rasmussen ([EMAIL PROTECTED])
* @author Eric Blake ([EMAIL PROTECTED])
*/
-public class RenderingHints implements Map, Cloneable
+public class RenderingHints
+ implements Map<Object,Object>, Cloneable
{
/**
* The base class used to represent keys.
@@ -550,7 +551,7 @@ public class RenderingHints implements M
* @param init a map containing a collection of hints (<code>null</code>
* permitted).
*/
- public RenderingHints(Map init)
+ public RenderingHints(Map<Key,?> init)
{
if (init != null)
putAll(init);
@@ -704,7 +705,7 @@ public class RenderingHints implements M
* @throws IllegalArgumentException if the map contains a value that is
* not compatible with its key.
*/
- public void putAll(Map m)
+ public void putAll(Map<?,?> m)
{
// preprocess map to generate appropriate exceptions
Iterator iterator = m.keySet().iterator();
@@ -723,7 +724,7 @@ public class RenderingHints implements M
*
* @return A set of keys.
*/
- public Set keySet()
+ public Set<Object> keySet()
{
return hintMap.keySet();
}
@@ -735,7 +736,7 @@ public class RenderingHints implements M
*
* @return A collection of values.
*/
- public Collection values()
+ public Collection<Object> values()
{
return hintMap.values();
}
@@ -745,7 +746,7 @@ public class RenderingHints implements M
*
* @return A set of entries.
*/
- public Set entrySet()
+ public Set<Map.Entry<Object,Object>> entrySet()
{
return Collections.unmodifiableSet(hintMap.entrySet());
}
Index: java/awt/Toolkit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Toolkit.java,v
retrieving revision 1.25.2.6
diff -u -3 -p -u -r1.25.2.6 Toolkit.java
--- java/awt/Toolkit.java 7 Aug 2005 18:34:10 -0000 1.25.2.6
+++ java/awt/Toolkit.java 28 Sep 2005 17:47:10 -0000
@@ -47,6 +47,7 @@ import java.awt.dnd.DragSource;
import java.awt.dnd.peer.DragSourceContextPeer;
import java.awt.event.AWTEventListener;
import java.awt.event.KeyEvent;
+import java.awt.font.TextAttribute;
import java.awt.im.InputMethodHighlight;
import java.awt.image.ColorModel;
import java.awt.image.ImageObserver;
@@ -76,6 +77,7 @@ import java.awt.peer.WindowPeer;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.net.URL;
+import java.util.Hashtable;
import java.util.Map;
import java.util.Properties;
@@ -108,7 +110,8 @@ public abstract class Toolkit
/** The toolkit properties. */
private static Properties props = new Properties();
- protected final Map desktopProperties = new Properties();
+ protected final Map<String,Object> desktopProperties =
+ new Hashtable<String,Object>();
protected final PropertyChangeSupport desktopPropsSupport
= new PropertyChangeSupport(this);
@@ -906,8 +909,8 @@ public abstract class Toolkit
/**
* @since 1.3
*/
- public DragGestureRecognizer
- createDragGestureRecognizer(Class recognizer, DragSource ds,
+ public <T extends DragGestureRecognizer> T
+ createDragGestureRecognizer(Class<T> recognizer, DragSource ds,
Component comp, int actions,
DragGestureListener l)
{
@@ -997,5 +1000,6 @@ public abstract class Toolkit
/**
* @since 1.3
*/
- public abstract Map mapInputMethodHighlight(InputMethodHighlight highlight);
+ public abstract Map<TextAttribute,?>
+ mapInputMethodHighlight(InputMethodHighlight highlight);
} // class Toolkit
Index: java/lang/Class.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Class.java,v
retrieving revision 1.22.2.19
diff -u -3 -p -u -r1.22.2.19 Class.java
--- java/lang/Class.java 26 Sep 2005 11:43:37 -0000 1.22.2.19
+++ java/lang/Class.java 28 Sep 2005 17:47:10 -0000
@@ -523,7 +523,7 @@ public final class Class<T>
* @return the declaring class of this class
* @since 1.1
*/
- public Class getDeclaringClass()
+ public Class<?> getDeclaringClass()
{
return VMClass.getDeclaringClass (this);
}
Index: java/lang/Enum.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Attic/Enum.java,v
retrieving revision 1.1.2.6
diff -u -3 -p -u -r1.1.2.6 Enum.java
--- java/lang/Enum.java 21 Sep 2005 21:32:38 -0000 1.1.2.6
+++ java/lang/Enum.java 28 Sep 2005 17:47:10 -0000
@@ -69,7 +69,7 @@ public abstract class Enum<T extends Enu
* the enum etype.
*/
@SuppressWarnings("unchecked")
- public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s)
+ public static <S extends Enum<S>> S valueOf(Class<S> etype, String s)
{
if (etype == null || s == null)
throw new NullPointerException();
Index: java/lang/SecurityManager.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/SecurityManager.java,v
retrieving revision 1.20.2.8
diff -u -3 -p -u -r1.20.2.8 SecurityManager.java
--- java/lang/SecurityManager.java 20 Sep 2005 18:46:28 -0000 1.20.2.8
+++ java/lang/SecurityManager.java 28 Sep 2005 17:47:10 -0000
@@ -986,7 +986,7 @@ public class SecurityManager
* @see Member#PUBLIC
* @since 1.1
*/
- public void checkMemberAccess(Class c, int memberType)
+ public void checkMemberAccess(Class<?> c, int memberType)
{
if (c == null)
throw new NullPointerException();
Index: java/lang/reflect/Array.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/reflect/Array.java,v
retrieving revision 1.12.2.2
diff -u -3 -p -u -r1.12.2.2 Array.java
--- java/lang/reflect/Array.java 2 Aug 2005 20:12:23 -0000 1.12.2.2
+++ java/lang/reflect/Array.java 28 Sep 2005 17:47:10 -0000
@@ -104,7 +104,7 @@ public final class Array
* @throws NegativeArraySizeException when length is less than 0
* @throws OutOfMemoryError if memory allocation fails
*/
- public static Object newInstance(Class componentType, int length)
+ public static Object newInstance(Class<?> componentType, int length)
{
if (! componentType.isPrimitive())
return createObjectArray(componentType, length);
@@ -152,7 +152,7 @@ public final class Array
* than 0
* @throws OutOfMemoryError if memory allocation fails
*/
- public static Object newInstance(Class componentType, int[] dimensions)
+ public static Object newInstance(Class<?> componentType, int[] dimensions)
{
if (dimensions.length <= 0)
throw new IllegalArgumentException ("Empty dimensions array.");
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.7
diff -u -3 -p -u -r1.11.2.7 Constructor.java
--- vm/reference/java/lang/reflect/Constructor.java 26 Sep 2005 11:43:39
-0000 1.11.2.7
+++ vm/reference/java/lang/reflect/Constructor.java 28 Sep 2005 17:47:14
-0000
@@ -261,7 +261,7 @@ public final class Constructor<T>
* specification, version 3.
* @since 1.5
*/
- public TypeVariable<?>[] getTypeParameters()
+ public TypeVariable<Constructor<T>>[] getTypeParameters()
{
String sig = getSignature();
MethodSignatureParser p = new MethodSignatureParser(this, sig);
Index: vm/reference/java/lang/reflect/Field.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/vm/reference/java/lang/reflect/Field.java,v
retrieving revision 1.9.2.2
diff -u -3 -p -u -r1.9.2.2 Field.java
--- vm/reference/java/lang/reflect/Field.java 2 Aug 2005 20:12:48 -0000
1.9.2.2
+++ vm/reference/java/lang/reflect/Field.java 28 Sep 2005 17:47:14 -0000
@@ -93,7 +93,7 @@ extends AccessibleObject implements Memb
* is a non-inherited member.
* @return the class that declared this member
*/
- public Class getDeclaringClass()
+ public Class<?> getDeclaringClass()
{
return declaringClass;
}
@@ -122,7 +122,7 @@ extends AccessibleObject implements Memb
* Gets the type of this field.
* @return the type of this field
*/
- public native Class getType();
+ public native Class<?> getType();
/**
* Compare two objects to see if they are semantically equivalent.
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.4
diff -u -3 -p -u -r1.12.2.4 Method.java
--- vm/reference/java/lang/reflect/Method.java 26 Sep 2005 11:43:39 -0000
1.12.2.4
+++ vm/reference/java/lang/reflect/Method.java 28 Sep 2005 17:47:14 -0000
@@ -96,7 +96,7 @@ extends AccessibleObject implements Memb
* is a non-inherited member.
* @return the class that declared this member
*/
- public Class getDeclaringClass()
+ public Class<?> getDeclaringClass()
{
return declaringClass;
}
@@ -133,7 +133,7 @@ extends AccessibleObject implements Memb
*
* @return a list of the types of the method's parameters
*/
- public native Class[] getParameterTypes();
+ public native Class<?>[] getParameterTypes();
/**
* Get the exception types this method says it throws, in no particular
@@ -142,7 +142,7 @@ extends AccessibleObject implements Memb
*
* @return a list of the types in the method's throws clause
*/
- public native Class[] getExceptionTypes();
+ public native Class<?>[] getExceptionTypes();
/**
* Compare two objects to see if they are semantically equivalent.
signature.asc
Description: Digital signature
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
