|
From: <ls...@us...> - 2007-06-17 10:06:24
|
Revision: 3272
http://jnode.svn.sourceforge.net/jnode/?rev=3272&view=rev
Author: lsantha
Date: 2007-06-17 03:06:23 -0700 (Sun, 17 Jun 2007)
Log Message:
-----------
Improved Java 5 language support.
Modified Paths:
--------------
trunk/core/src/classpath/vm/java/lang/Class.java
Modified: trunk/core/src/classpath/vm/java/lang/Class.java
===================================================================
--- trunk/core/src/classpath/vm/java/lang/Class.java 2007-06-17 09:07:11 UTC (rev 3271)
+++ trunk/core/src/classpath/vm/java/lang/Class.java 2007-06-17 10:06:23 UTC (rev 3272)
@@ -803,7 +803,7 @@
return null;
}
- public Constructor getDeclaredConstructor(Class[] argTypes)
+ public Constructor<T> getDeclaredConstructor(Class<?>... argTypes)
throws NoSuchMethodException {
String signature = Signature.toSignature(null, argTypes);
final VmMethod vmMethod = getLinkedVmClass().getDeclaredMethod(
@@ -925,7 +925,7 @@
* @return Constructor
* @throws NoSuchMethodException
*/
- public Constructor getConstructor(Class[] argTypes)
+ public Constructor<T> getConstructor(Class<?>... argTypes)
throws NoSuchMethodException {
// Check security
memberAccessCheck(Member.PUBLIC);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|