LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Sat Sep 16 17:29:01 CEST 2006
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/06/09 16:17:29

    Modified: jop/java/target/src/jdk/java/lang Object.java
    Log:
    toString with hashCode()


    Revision Changes Path
    1.3 jop/java/target/src/jdk/java/lang/Object.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/Object.java.diff?r1=1.2&r2=1.3

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: Object.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/jdk/java/lang/Object.java,v
    retrieving revision 1.2
    retrieving revision 1.3
    diff -u -b -r1.2 -r1.3
    --- Object.java 19 Aug 2006 12:59:57 -0000 1.2
    +++ Object.java 16 Sep 2006 15:29:01 -0000 1.3
    @@ -222,12 +222,11 @@
    * @see Class#getName()
    * @see Integer#toHexString(int)
    */
    -/*
    public String toString()
    {
    - return getClass().getName() + '@' + Integer.toHexString(hashCode());
    + // return getClass().getName() + '@' + Integer.toHexString(hashCode());
    + return "Object "+hashCode();
    }
    -*/

    /**
    * Called on an object by the Virtual Machine at most once,
    @@ -340,6 +339,10 @@
    throw new CloneNotSupportedException("Object not cloneable");
    }
    */
    + protected Object clone() throws CloneNotSupportedException
    + {
    + throw new CloneNotSupportedException("Object not cloneable");
    + }

    /**
    * Returns the runtime {@link Class} of this Object.
    @@ -355,6 +358,9 @@
    /*
    public final native Class getClass();
    */
    + public final Class getClass() {
    + throw new Error("NYI");
    + }

    /**
    * Wakes up one of the {@link Thread}s that has called



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.