classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [generics] Additions to java.lang.Class and VMClass


From: Andrew John Hughes
Subject: [cp-patches] [generics] Additions to java.lang.Class and VMClass
Date: Tue, 5 Apr 2005 00:29:34 +0100
User-agent: Mutt/1.5.6+20040907i

I'm committing the attached patch to add the new isXXX tests
to java.lang.Class (and corresponding methods in VMClass).
This also fixes the typing of methods in Class and
java.lang.reflect.Constructor.

Changelog:

2005-04-04  Andrew John Hughes  <address@hidden>

        * java/lang/Class.java:
        (newInstance): Returns an instance of T instead of Object.
        (isEnum()): Now calls VMClass for a proper implementation.
        (isSynthetic()): New method implemented.
        (isAnnotation()): New method implemented.
        * vm/reference/java/lang/VMClass.java:
        (isEnum()): New native method.
        (isSynthetic()): New native method.
        (isAnnotation()): New native method.
        * vm/reference/java/lang/reflect/Constructor.java:
        (newInstance(Object...)): Changed input parameter to a vararg.

-- 
Andrew :-)

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

No software patents in Europe -- http://nosoftwarepatents.com

"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 { ... }

Attachment: class_fix-01.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]