Annotations in JUNIT 4

Hi,
I have used Junit 3 but i have started working on JUNIT 4. I understand JUNIT 4 requires JDK 5. I have set up my environment based on that. Now when i try to write a simple test case and annotate my methods with @Before and @After, things work fine. Now when i write my first test method and annotate it with @Test i get a compilation error saying "THE TYPE CLASS IS NOT GENERIC, IT CANNOT BE PARAMETRIZED WITH ARGUMENTS <? extends THROWABLE > ".

Any thoughts and suggestions is appreciated.

Thanks
propovip

Can you provide a full

Can you provide a full cut-and-paste of the compiler error? Does it give a line number?

Me, too...

I'm getting the same error. I just set up Eclipse, started a new project, and added a test case. The error I get is the same as above:

The type Class is not generic; it cannot be parameterized with arguments <? extends Throwable>

There's no stack trace. In Eclipse, the error is flagged at the first line of the test class, but it's there regardless of what the actual line is. It looks like Eclipse is using JUnit 4.3.1. I'm also using JunitMax, if that makes any difference.
Here's the source:

import static org.junit.Assert.*;
import org.junit.Test;

public class CredentialManagerTest {
@Test
public void testHasCreds() {
fail("Not yet implemented");
}
}