Bug 21298 - JUnit throws java.lang.AbstractMethodError [JUnit]
Summary: JUnit throws java.lang.AbstractMethodError [JUnit]
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-07-08 08:27 EDT by Jaap Branderhorst CLA
Modified: 2003-01-20 11:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaap Branderhorst CLA 2002-07-08 08:27:48 EDT
I have a testcase (see below) that runs when i use the 'normal' Textui or 
Swingui of JUnit. When i run it in the JUnit plugin in Eclipse 2.0 i get an 
java.lang.AbstractMethodError. The stacktrace:

java.lang.AbstractMethodError
	at junit.framework.TestResult.addFailure(TestResult.java:46)
	at junit.framework.TestResult.runProtected(TestResult.java:120)
	at junit.framework.TestResult.run(TestResult.java:103)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.run(TestSuite.java:144)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:329)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:218)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:151)

The testcase:
public class TestGeneratorJava extends TestCase
{

protected void setUp() {
	
}
	/**
	 * Constructor for TestGeneratorJava.
	 * @param arg0
	 */
	public TestGeneratorJava(String arg0)
	{
		super(arg0);
	}

	public void testGenerate()
	{
		try {
			CheckGenerator.checkGenerator(this, (Generator)
GeneratorJava.getInstance(), "Java");
		}
		catch (Exception ex) {
			ex.printStackTrace();
		}
	}

}

My configuration:
*** Date: Mon Jul 08 14:31:09 CEST 2002

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
catalina.base=C:/Program Files/eclipse/plugins/org.eclipse.tomcat_4.0.3/
catalina.home=C:/Program Files/eclipse/plugins/org.eclipse.tomcat_4.0.3/
catalina.useNaming=true
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.fonts=
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Program Files\eclipse\startup.jar
java.class.version=47.0
java.ext.dirs=C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext
java.home=C:\Program Files\JavaSoft\JRE\1.3.1
java.io.tmpdir=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
java.library.path=C:\WINNT\system32;.;C:\WINNT\System32;C:\WINNT;C:\IBMDebug\bin
;C:\IBM Connectors\Encina\bin;;C:\IBMCON~1
\CICS\BIN;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\CVS for 
NT;D:\SQLLIB\BIN;D:\SQLLIB\FUNCTION;D:\SQLLIB\SAMPLES\REPL;D:\SQLLIB\HELP;D:\IBM
\IMNNQ;D:\Enabler\Runtime;D:\jdk1.3.1_01\bin;
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs=org.apache.naming
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.3.1_01
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.3
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.3.1_01
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.3.1_01
line.separator=

os.arch=x86
os.name=Windows 2000
os.version=5.0
path.separator=;
sun.boot.class.path=C:\Program Files\JavaSoft\JRE\1.3.1\lib\rt.jar;C:\Program 
Files\JavaSoft\JRE\1.3.1\lib\i18n.jar;C:\Program Files\JavaSoft\JRE\1.3.1
\lib\sunrsasign.jar;C:\Program Files\JavaSoft\JRE\1.3.1\classes
sun.boot.library.path=C:\Program Files\JavaSoft\JRE\1.3.1\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium i486 i386
sun.io.unicode.encoding=UnicodeLittle
user.dir=C:\Program Files\eclipse
user.home=C:\Documents and Settings\Administrator
user.language=en
user.name=Administrator
user.region=US
user.timezone=Europe/Berlin

*** Features:
org.eclipse.jdt (2.0.0)
org.eclipse.jdt.source (2.0.0)
org.eclipse.pde (2.0.0)
org.eclipse.platform (2.0.0)
org.eclipse.platform.source (2.0.0)
org.eclipse.platform.win32 (2.0.0)
org.eclipse.platform.win32.source (2.0.0)
org.eclipse.sdk.win32 (2.0.0)

*** Plugin Registry:
org.apache.ant (1.4.1)
org.apache.lucene (1.2.0)
org.apache.xerces (4.0.3)
org.eclipse.ant.core (2.0.0)
org.eclipse.compare (2.0.0)
org.eclipse.core.boot (2.0.0)
org.eclipse.core.resources (2.0.0)
	org.eclipse.core.resources.win32 (2.0.0)
org.eclipse.core.runtime (2.0.0)
org.eclipse.debug.core (2.0.0)
org.eclipse.debug.ui (2.0.0)
org.eclipse.help (2.0.0)
org.eclipse.help.ui (2.0.0)
	org.eclipse.help.ui.win32 (2.0.0)
org.eclipse.help.webapp (2.0.0)
org.eclipse.jdt (2.0.0)
org.eclipse.jdt.core (2.0.0)
org.eclipse.jdt.debug (2.0.0)
org.eclipse.jdt.debug.ui (2.0.0)
org.eclipse.jdt.doc.isv (2.0.0)
org.eclipse.jdt.doc.user (2.0.0)
org.eclipse.jdt.junit (2.0.0)
org.eclipse.jdt.launching (2.0.0)
org.eclipse.jdt.source (2.0.0)
org.eclipse.jdt.ui (2.0.0)
org.eclipse.pde (2.0.0)
org.eclipse.pde.build (2.0.0)
org.eclipse.pde.core (2.0.0)
org.eclipse.pde.doc.user (2.0.0)
org.eclipse.pde.junit (2.0.0)
org.eclipse.pde.runtime (2.0.0)
org.eclipse.pde.source (2.0.0)
org.eclipse.pde.ui (2.0.0)
org.eclipse.platform (2.0.0)
org.eclipse.platform.doc.isv (2.0.0)
org.eclipse.platform.doc.user (2.0.0)
org.eclipse.platform.source (2.0.0)
org.eclipse.platform.win32 (2.0.0)
org.eclipse.platform.win32.source (2.0.0)
org.eclipse.sdk.win32 (2.0.0)
org.eclipse.search (2.0.0)
org.eclipse.swt (2.0.0)
	org.eclipse.swt.win32 (2.0.0)
org.eclipse.team.core (2.0.0)
org.eclipse.team.cvs.core (2.0.0)
org.eclipse.team.cvs.ssh (2.0.0)
org.eclipse.team.cvs.ui (2.0.0)
org.eclipse.team.ui (2.0.0)
org.eclipse.tomcat (4.0.3)
org.eclipse.ui (2.0.0)
	org.eclipse.ui.win32 (2.0.0)
org.eclipse.ui.externaltools (2.0.0)
org.eclipse.update.core (2.0.0)
	org.eclipse.update.core.win32 (2.0.0)
org.eclipse.update.ui (2.0.0)
	org.eclipse.update.ui.win32 (2.0.0)
org.eclipse.update.ui.forms (2.0.0)
org.junit (3.7.0)

Kind regards,

Jaap Branderhorst
Comment 1 Erich Gamma CLA 2002-07-10 06:17:37 EDT
Which version of JUnit are you using? The JUnit plugin requires version 3.7 of 
JUnit.
Comment 2 Jaap Branderhorst CLA 2002-07-10 11:13:14 EDT
Version 3.7. Standard Eclipse plugin
Comment 3 Erich Gamma CLA 2002-10-20 05:09:00 EDT
Is this still a problem? I'm not aware that other users have experienced this 
problem.
Comment 4 Dirk Baeumer CLA 2003-01-20 11:49:19 EST
No feedback from reporter and we aren't able to reproduce. Closing.