head	1.3;
access;
symbols
	bg2_23:1.3
	bg2_22:1.3
	bg2_21:1.3
	bg2_20:1.3
	bg2_16:1.3
	bg2_15:1.3
	bg2_12:1.3
	bg2_07:1.3
	isorc2008_submission:1.2
	handbook_alpha_edition:1.2
	jtres2007_submission:1.2
	bg1_07:1.2
	bg1_06:1.2
	bg1_05:1.2
	TAL_101:1.2
	TAL_100:1.2;
locks; strict;
comment	@# @;


1.3
date	2008.02.24.19.14.18;	author martin;	state Exp;
branches;
next	1.2;
commitid	4c8747c1c2074567;

1.2
date	2006.10.04.16.21.36;	author martin;	state Exp;
branches;
next	1.1;
commitid	49d14523df3d4567;

1.1
date	2006.08.19.13.02.39;	author martin;	state Exp;
branches;
next	;
commitid	662644e70bed4567;


desc
@@


1.3
log
@JOP goes GPL
@
text
@/*
  This file is part of JOP, the Java Optimized Processor
    see <http://www.jopdesign.com/>

  Copyright (C) 2001-2008, Martin Schoeberl (martin@@jopdesign.com)

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package jdk;

import jvm.TestCase;

public class HashCode extends TestCase {

	public String getName() {
		return "HashCode";
	}

	public boolean test() {
		
		int i = new Object().hashCode();
		int j = new Object().hashCode();
		int k = new Object().hashCode();
//		System.out.println("hash codes: "+i+" "+j+" "+k);
		return (i!=j && i!=k && j!=k);
	}

}
@


1.2
log
@*** empty log message ***
@
text
@d1 20
@


1.1
log
@no message
@
text
@d3 1
a3 1
public class HashCode {
d5 7
a11 5
	/**
	 * @@param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
d13 5
a17 4
		System.out.println(new Object().hashCode());
		System.out.println(new Object().hashCode());
		System.out.println(new Object().hashCode());

@

