Title: Java generated code from WADL contains unreachable blocks · Issue #83 · javaee/wadl · GitHub
Open Graph Title: Java generated code from WADL contains unreachable blocks · Issue #83 · javaee/wadl
X Title: Java generated code from WADL contains unreachable blocks · Issue #83 · javaee/wadl
Description: After trying to generate the code from using the following spec - https://docs.atlassian.com/bitbucket-server/rest/7.11.2/bitbucket-rest.wadl - it throws me unreachable statement error when trying to compile the generated source. This is...
Open Graph Description: After trying to generate the code from using the following spec - https://docs.atlassian.com/bitbucket-server/rest/7.11.2/bitbucket-rest.wadl - it throws me unreachable statement error when trying ...
X Description: After trying to generate the code from using the following spec - https://docs.atlassian.com/bitbucket-server/rest/7.11.2/bitbucket-rest.wadl - it throws me unreachable statement error when trying ...
Opengraph URL: https://github.com/javaee/wadl/issues/83
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java generated code from WADL contains unreachable blocks","articleBody":"After trying to generate the code from using the following spec - https://docs.atlassian.com/bitbucket-server/rest/7.11.2/bitbucket-rest.wadl - it throws me `unreachable statement` error when trying to compile the generated source.\r\n\r\nThis is caused by a break statement being added right after throwing an exception in the line before:\r\n```java\r\n switch (response.getStatus()) {\r\n case 401 :\r\n throw new ExampleCom_RestApi10 .WebApplicationExceptionMessage(response);\r\n break;\r\n```\r\n\r\nPlugin configuration:\r\n```xml\r\n \u003cplugin>\r\n \u003cgroupId>org.jvnet.ws.wadl\u003c/groupId>\r\n \u003cartifactId>wadl-client-plugin\u003c/artifactId>\r\n \u003cversion>1.1.6\u003c/version>\r\n \u003cexecutions>\r\n \u003cexecution>\r\n \u003cgoals>\r\n \u003cgoal>generate\u003c/goal>\r\n \u003c/goals>\r\n \u003cconfiguration>\r\n \u003cpackageName>com.atlassian.bitbucket.server\u003c/packageName>\r\n \u003ctargets>\r\n \u003ctarget>file://${project.basedir}/src/main/resources/wadl/bitbucket-rest.wadl\u003c/target>\r\n \u003c/targets>\r\n \u003cgenerationStyle>jaxrs20\u003c/generationStyle>\r\n \u003c/configuration>\r\n \u003c/execution>\r\n \u003c/executions>\r\n \u003c/plugin>\r\n```","author":{"url":"https://github.com/uesleilima","@type":"Person","name":"uesleilima"},"datePublished":"2021-04-09T12:46:50Z","url":"https://github.com/javaee/wadl/issues/83"}
| 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:ac3da061-ec6f-c107-5c23-7b7a23634e64 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE74:113BD6:18559C:1F13B1:6B033B81 |
| html-safe-nonce | c1da88898584afe8dcc5bbd4ca99ed4c2a9b2ff434e2bafa1818925bdd2402dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTc0OjExM0JENjoxODU1OUM6MUYxM0IxOjZCMDMzQjgxIiwidmlzaXRvcl9pZCI6Ijc1MjY0MTYyNDM2NTg4MDAwMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d5bde5c845dbfc4ac2135272b3e4055aebf8d96e7c685a65e3b884b969806c12 |
| hovercard-subject-tag | issue:854492403 |
| 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/javaee/wadl/83/issue_layout |
| twitter:image | https://opengraph.githubassets.com/598b34461ab2580abf0a3dd37c259bc7b86160a64a57d7eeb18494428b189e63/javaee/wadl/issues/83 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/598b34461ab2580abf0a3dd37c259bc7b86160a64a57d7eeb18494428b189e63/javaee/wadl/issues/83 |
| og:image:alt | After trying to generate the code from using the following spec - https://docs.atlassian.com/bitbucket-server/rest/7.11.2/bitbucket-rest.wadl - it throws me unreachable statement error when trying ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | uesleilima |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/javaee/wadl git https://github.com/javaee/wadl.git |
| octolytics-dimension-user_id | 23086798 |
| octolytics-dimension-user_login | javaee |
| octolytics-dimension-repository_id | 89231271 |
| octolytics-dimension-repository_nwo | javaee/wadl |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 89231271 |
| octolytics-dimension-repository_network_root_nwo | javaee/wadl |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width