-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Closed
Copy link
Labels
theme:apiJava API related issueJava API related issuetype:bugSomething isn't workingSomething isn't workingwork:reviewWork is done, waiting for reviewWork is done, waiting for review
Description
I'm submitting a ...
- bug report
- feature request
- support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
java.lang.ClassCastException: [Ljava.lang.Enum; cannot be cast to [Lcom.examples.tests.MainTest$Params;
at com.examples.tests.MainTest$AjcClosure1.run(MainTest.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at io.qameta.allure.aspects.StepsAspects.step(StepsAspects.java:46)
at com.examples.tests.MainTest.paramSteps(MainTest.java:81)
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
@Test
public void testWithParams() {
paramSteps(FirstParam.PARAM_1, SecondParam.PARAM_2);
}
@Step
public <T extends Params> void paramSteps(T... param) {}
enum FirstParam implements Params {
PARAM_1
}
enum SecondParam implements Params {
PARAM_2
}
interface Params {}What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
| Allure version | 2+ |
|---|---|
| Test framework | junit@4.12 |
| Allure integration | allure-junit4@2.0-BETA16 |
| Generate report using | allure-maven@2.8 |
| AspectJWeaver | 1.8.10 |
Other information
Metadata
Metadata
Assignees
Labels
theme:apiJava API related issueJava API related issuetype:bugSomething isn't workingSomething isn't workingwork:reviewWork is done, waiting for reviewWork is done, waiting for review