Title: Enum class cast exception when using varargs generic constant parameter in step · Issue #123 · allure-framework/allure-java · GitHub
Open Graph Title: Enum class cast exception when using varargs generic constant parameter in step · Issue #123 · allure-framework/allure-java
X Title: Enum class cast exception when using varargs generic constant parameter in step · Issue #123 · allure-framework/allure-java
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 c...
Open Graph 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.ClassCast...
X 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.Cl...
Opengraph URL: https://github.com/allure-framework/allure-java/issues/123
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enum class cast exception when using varargs generic constant parameter in step","articleBody":"[//]: # (\r\n. Note: for support questions, please use Stackoverflow or Gitter**. \r\n. This repository's issues are reserved for feature requests and bug reports.\r\n.\r\n. In case of any problems with Allure Jenkins plugin** please use the following repository \r\n. to create an issue: https://github.com/jenkinsci/allure-plugin/issues\r\n.\r\n. Make sure you have a clear name for your issue. The name should start with a capital \r\n. letter and no dot is required in the end of the sentence. An example of good issue names:\r\n.\r\n. - The report is broken in IE11\r\n. - Add an ability to disable default plugins\r\n. - Support emoji in test descriptions\r\n)\r\n\r\n#### I'm submitting a ... \r\n - [x] bug report\r\n - [ ] feature request\r\n - [ ] support request => Please do not submit support request here, see note at the top of this template.\r\n\r\n#### What is the current behavior?\r\n```\r\njava.lang.ClassCastException: [Ljava.lang.Enum; cannot be cast to [Lcom.examples.tests.MainTest$Params;\r\n\r\n\tat com.examples.tests.MainTest$AjcClosure1.run(MainTest.java:1)\r\n\tat org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)\r\n\tat io.qameta.allure.aspects.StepsAspects.step(StepsAspects.java:46)\r\n\tat com.examples.tests.MainTest.paramSteps(MainTest.java:81)\r\n```\r\n#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem\r\n```java\r\n @Test\r\n public void testWithParams() {\r\n paramSteps(FirstParam.PARAM_1, SecondParam.PARAM_2);\r\n }\r\n\r\n @Step\r\n public \u003cT extends Params> void paramSteps(T... param) {}\r\n\r\n enum FirstParam implements Params {\r\n PARAM_1\r\n }\r\n\r\n enum SecondParam implements Params {\r\n PARAM_2\r\n }\r\n\r\n interface Params {}\r\n```\r\n\r\n#### What is the expected behavior?\r\n\r\n\r\n#### What is the motivation / use case for changing the behavior?\r\n\r\n\r\n#### Please tell us about your environment:\r\n\r\n\r\n| Allure version | 2+ |\r\n| --- | --- |\r\n| Test framework | junit@4.12 |\r\n| Allure integration | allure-junit4@2.0-BETA16 |\r\n| Generate report using | allure-maven@2.8|\r\n| AspectJWeaver| 1.8.10 |\r\n\r\n#### Other information \r\n\r\n[//]: # (\r\n. e.g. detailed explanation, stacktraces, related issues, suggestions \r\n. how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc\r\n)\r\n","author":{"url":"https://github.com/pilshchikov","@type":"Person","name":"pilshchikov"},"datePublished":"2017-08-05T19:10:30Z","url":"https://github.com/allure-framework/allure-java/issues/123"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ebc2e937-81b7-182c-e043-356b8b62f7da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C850:21F45C:ADF9A3:F9BEBF:6AFD92C2 |
| html-safe-nonce | 71e7da8864c1b843b003ab3e6f05c2218eabdb183d0caf997a95ab9f6b953810 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODUwOjIxRjQ1QzpBREY5QTM6RjlCRUJGOjZBRkQ5MkMyIiwidmlzaXRvcl9pZCI6IjI4MjQ2MDc1NDc3NzQ1NzEyMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5f8d58fd3037c6b51eb1ead8e2c0f2b2db735005bd4577493f25228ebf1a6d4f |
| hovercard-subject-tag | issue:248203618 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-java/123/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d138676c3989dae2dc91c8f568dd60cd1541bd57870de1f62812dd4436ba618/allure-framework/allure-java/issues/123 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d138676c3989dae2dc91c8f568dd60cd1541bd57870de1f62812dd4436ba618/allure-framework/allure-java/issues/123 |
| og:image:alt | 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.ClassCast... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pilshchikov |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/allure-framework/allure-java git https://github.com/allure-framework/allure-java.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 80822758 |
| octolytics-dimension-repository_nwo | allure-framework/allure-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80822758 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width