Title: Incorrect line is addressed from Problems tool window for the sandboxed `Socket.connect` · Issue #1383 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Incorrect line is addressed from Problems tool window for the sandboxed `Socket.connect` · Issue #1383 · UnitTestBot/UTBotJava
X Title: Incorrect line is addressed from Problems tool window for the sandboxed `Socket.connect` · Issue #1383 · UnitTestBot/UTBotJava
Description: Description Problems visualizing for the sandboxed Socket.connect: first line of user's class is addressed instead of unpermitted method call. To Reproduce Install one of the latest plugin build from main in IDEA Run the 'UTBotJava' proj...
Open Graph Description: Description Problems visualizing for the sandboxed Socket.connect: first line of user's class is addressed instead of unpermitted method call. To Reproduce Install one of the latest plugin build fr...
X Description: Description Problems visualizing for the sandboxed Socket.connect: first line of user's class is addressed instead of unpermitted method call. To Reproduce Install one of the latest plugin buil...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1383
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect line is addressed from Problems tool window for the sandboxed `Socket.connect`","articleBody":"**Description**\r\n\r\nProblems visualizing for the sandboxed `Socket.connect`:\r\nfirst line of user's class is addressed instead of unpermitted method call.\r\n\r\n**To Reproduce**\r\n\r\n1. Install [one of the latest plugin build](https://github.com/UnitTestBot/UTBotJava/actions/runs/3478071383) from main in IDEA\r\n2. Run the 'UTBotJava' project in IntelliJ Idea\r\n3. Set defaults in Settings-\u003eTools-\u003eUnitTestBot , delete any permissions if they were manually added in ~/.utbot/\r\n4. Turn on Problems tool windows\r\n5. Use plugin to generate tests for the following method:\r\n\r\n```java\r\n public int connect(Socket socket) throws IOException {\r\n socket.connect(new InetSocketAddress(\"0.0.0.0\", 22));\r\n return 0;\r\n }\r\n```\r\n\r\n6. Select Unexpected exception on Problems tool window after generation.\r\n\r\n**Expected behavior**\r\n\r\nException should be addressed to the unpermitted method call - socket.connect() in this example.\r\n\r\n**Actual behavior**\r\n\r\nException is addressed to the first line of the source class.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.2.3\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-11-16T11:42:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1383/UTBotJava/issues/1383"}
| 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:3ad95cad-7e16-1cac-3707-8461a3a6c306 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AE6:13E973:8A2B78:BDC84E:698EFB89 |
| html-safe-nonce | 32ae52991ca678673163507df32d0abd9f8d9a3b75cce4b8274109891da92809 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUU2OjEzRTk3Mzo4QTJCNzg6QkRDODRFOjY5OEVGQjg5IiwidmlzaXRvcl9pZCI6IjM5NTkyNjIyODE1Njk1OTgzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 211a40afab04a0c177b3e7b1d56ecf17e5f366e0f9eea11326293b22cbb83139 |
| hovercard-subject-tag | issue:1451434271 |
| 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/UnitTestBot/UTBotJava/1383/issue_layout |
| twitter:image | https://opengraph.githubassets.com/888fe9e7ed65f26792f02c7d8f58dfee9dda1d7ee90a82048b7243ae088f3907/UnitTestBot/UTBotJava/issues/1383 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/888fe9e7ed65f26792f02c7d8f58dfee9dda1d7ee90a82048b7243ae088f3907/UnitTestBot/UTBotJava/issues/1383 |
| og:image:alt | Description Problems visualizing for the sandboxed Socket.connect: first line of user's class is addressed instead of unpermitted method call. To Reproduce Install one of the latest plugin build fr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f7bf82d8907f81525d95af82e60354b419d083df9534c8631d06bb9c0bf07ac |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| 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 | 29d97d94d5b31f96c01179273264722362f058e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width