|
From: <ls...@us...> - 2007-06-10 12:20:13
|
Revision: 3238
http://jnode.svn.sourceforge.net/jnode/?rev=3238&view=rev
Author: lsantha
Date: 2007-06-10 05:20:11 -0700 (Sun, 10 Jun 2007)
Log Message:
-----------
javac integration from openjdk in progress.
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-10 12:19:09 UTC (rev 3237)
+++ trunk/core/src/classpath/vm/java/lang/Class.java 2007-06-10 12:20:11 UTC (rev 3238)
@@ -94,7 +94,7 @@
*
* @serialData Class objects serialize specially:
* <code>TC_CLASS ClassDescriptor</code>. For more serialization information,
- * see {@link ObjectStreamClass}.
+ * see {@link java.io.ObjectStreamClass}.
*
* @author John Keiser
* @author Eric Blake (eb...@em...)
@@ -618,7 +618,7 @@
* @throws NoSuchMethodException
* @throws SecurityException
*/
- public Method getMethod(String name, Class< ? >[] argTypes)
+ public Method getMethod(String name, Class<?>... argTypes)
throws NoSuchMethodException, SecurityException {
VmType< ? >[] vmArgTypes;
if (argTypes == null) {
@@ -1282,4 +1282,40 @@
return "";
return name.substring(0, lastInd);
}
+
+ /**
+ * Returns true if this class is an <code>Annotation</code>.
+ *
+ * @return true if this is an annotation class.
+ * @since 1.5
+ */
+ public boolean isAnnotation()
+ {
+ //todo implement it
+ throw new UnsupportedOperationException();
+ }
+
+ public String getCanonicalName() {
+ //todo implement it
+ throw new UnsupportedOperationException();
+ /*
+ if (vmClass.isArray())
+ {
+ String componentName = vmClass.getComponentType().getCanonicalName();
+ if (componentName != null)
+ return componentName + "[]";
+ }
+ if (vmClass.isMemberClass(klass))
+ {
+ String memberName = getDeclaringClass(klass).getCanonicalName();
+ if (memberName != null)
+ return memberName + "." + getSimpleName(klass);
+ }
+ if (isLocalClass(klass) || vmClass.isAnonymousClass(klass))
+ return null;
+ return getName(klass);
+ */
+ }
+
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|