diff options
Diffstat (limited to 'tests/org.eclipse.jem.tests/javatests/initParserTest46376/SameNameTestClass.java')
-rw-r--r-- | tests/org.eclipse.jem.tests/javatests/initParserTest46376/SameNameTestClass.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/org.eclipse.jem.tests/javatests/initParserTest46376/SameNameTestClass.java b/tests/org.eclipse.jem.tests/javatests/initParserTest46376/SameNameTestClass.java deleted file mode 100644 index 223ab567..00000000 --- a/tests/org.eclipse.jem.tests/javatests/initParserTest46376/SameNameTestClass.java +++ /dev/null @@ -1,38 +0,0 @@ -package initParserTest46376; -/******************************************************************************* - * Copyright (c) 2003 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * $RCSfile: SameNameTestClass.java,v $ - * $Revision: 1.2 $ $Date: 2005/02/15 23:00:16 $ - */ -/** - * This is to test for defect [46376]. - * - * SameName test. This is test where you have this: - * InitParserTest46376.SameNameTestClass.java - * InitParserTest46376.java - * - * and - * - * new org.eclipse.jem.tests.proxy.initParser.SameNameTestClass.RealClass() - * - * Before [46376] the Static parser would find SameNameTestClass.java instead of the RealClass and would of failed. - * To compile in Eclipse we need to have one of the classes be in the default package. Eclipse complains if we didn't. - * But there is nothing to stop this from happening with packages too if they are spread across compile groups. - */ -public class SameNameTestClass { - - public boolean equals(Object other) { - // To make test easier, we simply looking if both of same type. - return other != null && other.getClass() == SameNameTestClass.class; - } - -} |