Skip to content

Commit 0ccef27

Browse files
committed
java.lang.Class implemented
1 parent 9a5b75c commit 0ccef27

File tree

1 file changed

+12
-1
lines changed
  • sources/net.sf.j2s.java.core/src/java/lang

1 file changed

+12
-1
lines changed

sources/net.sf.j2s.java.core/src/java/lang/Class.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,18 @@ public Class<? super T> getSuperclass() {
887887
* @see java.lang.reflect.Array
888888
* @since JDK1.1
889889
*/
890-
public native Class<?> getComponentType();
890+
public Class<?> getComponentType() {
891+
// Arrays have this method via Clazz.newArray$
892+
/**
893+
* @j2sNative
894+
*
895+
* return(this.$clazz$.__ARRAYTYPE && this.$class$.getComponentType() || null);
896+
*
897+
*/
898+
{
899+
return null;
900+
}
901+
}
891902

892903
/**
893904
* Returns the Java language modifiers for this class or interface, encoded

0 commit comments

Comments
 (0)