/[classpath]/classpath/vm/reference/java/lang/VMObject.java
ViewVC logotype

Diff of /classpath/vm/reference/java/lang/VMObject.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mark, Tue Sep 10 21:19:37 2002 UTC revision 1.9 by mkoch, Sat Apr 16 09:19:54 2005 UTC
# Line 1  Line 1 
1  /* VMObject.java -- Reference implementation for VM hooks used by Object  /* VMObject.java -- Reference implementation for VM hooks used by Object
2     Copyright (C) 1998, 2002 Free Software Foundation     Copyright (C) 1998, 2002, 2005  Free Software Foundation
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 42  package java.lang; Line 42  package java.lang;
42   * As such, it needs help from the VM.   * As such, it needs help from the VM.
43   *   *
44   * @author John Keiser   * @author John Keiser
45   * @author Eric Blake <ebb9@email.byu.edu>   * @author Eric Blake (ebb9@email.byu.edu)
46   */   */
47  final class VMObject  final class VMObject
48  {  {
49    /**    /**
50       * Returns the runtime {@link Class} of a given Object.
51       *
52       * @param obj the object to return the class for.
53       *
54       * @return the class of the Object.
55       */
56      static native Class getClass(Object obj);
57      
58      /**
59     * The VM is expected to make a field-for-field shallow copy of the     * The VM is expected to make a field-for-field shallow copy of the
60     * argument. Thus, the copy has the same runtime type as the argument.     * argument. Thus, the copy has the same runtime type as the argument.
61     * Note, however, that the cloned object must still be finalizable, even     * Note, however, that the cloned object must still be finalizable, even

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26