I'm submitting a ...
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
I'm submitting a ...
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information