Title: '....PackageFragment cannot be cast to org.eclipse.jdt.core.IType' error when running 'net.sf.j2s.test.junit' as Java2Script Unit Test · Issue #16 · java2script/java2script · GitHub
Open Graph Title: '....PackageFragment cannot be cast to org.eclipse.jdt.core.IType' error when running 'net.sf.j2s.test.junit' as Java2Script Unit Test · Issue #16 · java2script/java2script
X Title: '....PackageFragment cannot be cast to org.eclipse.jdt.core.IType' error when running 'net.sf.j2s.test.junit' as Java2Script Unit Test · Issue #16 · java2script/java2script
Description: Steps to reproduce In Eclipse Package Explorer: Right-Click package 'net.sf.j2s.test.junit' Select 'Run As > Java2Script Unit Test' A 'Problem occured' dialog appears with the message: 'Launching net.sf.j2s.test.junit' has encountered a ...
Open Graph Description: Steps to reproduce In Eclipse Package Explorer: Right-Click package 'net.sf.j2s.test.junit' Select 'Run As > Java2Script Unit Test' A 'Problem occured' dialog appears with the message: 'Launching n...
X Description: Steps to reproduce In Eclipse Package Explorer: Right-Click package 'net.sf.j2s.test.junit' Select 'Run As > Java2Script Unit Test' A 'Problem occured' dialog appears wit...
Opengraph URL: https://github.com/java2script/java2script/issues/16
X: @github
Domain: www.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'....PackageFragment cannot be cast to org.eclipse.jdt.core.IType' error when running 'net.sf.j2s.test.junit' as Java2Script Unit Test ","articleBody":"Steps to reproduce\r\n==============\r\n\r\nIn Eclipse Package Explorer:\r\n- Right-Click package 'net.sf.j2s.test.junit'\r\n- Select 'Run As \u003e Java2Script Unit Test'\r\n\r\nA 'Problem occured' dialog appears with the message:\r\n\u003e 'Launching net.sf.j2s.test.junit' has encountered a problem\r\n\u003e\r\n\u003e An internal error occurred during: \"Launching net.sf.j2s.test.junit\".\r\norg.eclipse.jdt.internal.core.PackageFragment cannot be cast to org.eclipse.jdt.core.IType\r\n\r\nThe error log contains this entry:\r\n\u003e !MESSAGE An internal error occurred during: \"Launching net.sf.j2s.test.junit\".\r\n\u003e !STACK 0\r\n\u003e java.lang.ClassCastException: org.eclipse.jdt.internal.core.PackageFragment cannot be cast to org.eclipse.jdt.core.IType\r\n\u003e\tat net.sf.j2s.ui.launching.J2SLaunchingUtil.launchingJ2SUnit(J2SLaunchingUtil.java:149)\r\n\u003e\tat net.sf.j2s.ui.launching.J2SUnitConfigurationDelegate.launch(J2SUnitConfigurationDelegate.java:21)\r\n\u003e\tat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)\r\n\u003e\tat org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)\r\n\u003e\tat org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)\r\n\u003e\tat org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)\r\n\u003e\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\r\n\r\n(Running individual test classes works fine)","author":{"url":"https://github.com/abego","@type":"Person","name":"abego"},"datePublished":"2017-06-28T08:29:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/16/java2script/issues/16"}
| 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:a4ad0341-2ec2-21a1-de93-9ab8ce797fb0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB8E:142A5A:2D1558:3FCC3B:6A637726 |
| html-safe-nonce | 015aa9346a1b617c1518ebba29e63fadaf28dc440cea0d893d174c8f6d53be65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjhFOjE0MkE1QToyRDE1NTg6M0ZDQzNCOjZBNjM3NzI2IiwidmlzaXRvcl9pZCI6IjU5MTE5NTc2NjkzNzc0Mzk1MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e46375c8140c27d31d0b59800ffac72b5e25ee1dad8729ea11058caef9ccc243 |
| hovercard-subject-tag | issue:239089450 |
| 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/java2script/java2script/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf080071f28ff54437dfea46f24392ca77cc121f00f1d4e6a092a9dc2577e24f/java2script/java2script/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf080071f28ff54437dfea46f24392ca77cc121f00f1d4e6a092a9dc2577e24f/java2script/java2script/issues/16 |
| og:image:alt | Steps to reproduce In Eclipse Package Explorer: Right-Click package 'net.sf.j2s.test.junit' Select 'Run As > Java2Script Unit Test' A 'Problem occured' dialog appears with the message: 'Launching n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abego |
| hostname | github.com |
| expected-hostname | github.com |
| None | 15e78334bb345f3864e70c5a376ed0383374123629b9e3022398d9431f6cd8bf |
| turbo-cache-control | no-preview |
| go-import | github.com/java2script/java2script git https://github.com/java2script/java2script.git |
| octolytics-dimension-user_id | 29178484 |
| octolytics-dimension-user_login | java2script |
| octolytics-dimension-repository_id | 32129080 |
| octolytics-dimension-repository_nwo | java2script/java2script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32129080 |
| octolytics-dimension-repository_network_root_nwo | java2script/java2script |
| 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 | 51da2d8d0a841a1393b806a6559fa9ad757e1666 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width