Title: Fix unnecessary reflection calls in the generated code by sofurihafe · Pull Request #1491 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Fix unnecessary reflection calls in the generated code by sofurihafe · Pull Request #1491 · UnitTestBot/UTBotJava
X Title: Fix unnecessary reflection calls in the generated code by sofurihafe · Pull Request #1491 · UnitTestBot/UTBotJava
Description: Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fixes # (1353) Type of Change Bug fix (non-breaking change which fixes an issue) How Has This Been Tested? Automated Testing UTBot-samples. Manual Scenario Tested on the code attached in the issue. Additionally, tested self-reference cases like the following: // First scenario class FirstClass { SecondClass secondClass; FirstClass(SecondClass second) { this.secondClass = second; } } class SecondClass { FirstClass firstClass; SecondClass(FirstClass first) { this.firstClass = first; } } class ClassWithCrossReferenceRelationship { public FirstClass returnFirstClass(int value) { if (value == 0) { return new FirstClass(new SecondClass(null)); } else { FirstClass first = new FirstClass(null); first.secondClass = new SecondClass(first); return first; } } } // Second scenario class FirstClass1 { ThirdClass1 thirdClass; FirstClass1(ThirdClass1 third) { this.thirdClass = third; } } class SecondClass1 { FirstClass1 firstClass; SecondClass1(FirstClass1 first) { this.firstClass = first; } } class ThirdClass1 { SecondClass1 secondClass; ThirdClass1(SecondClass1 second) { this.secondClass = second; } } class ClassWithCrossReferenceRelationship1 { public FirstClass1 returnFirstClass(int value) { FirstClass1 first = new FirstClass1(null); SecondClass1 second = new SecondClass1(first); ThirdClass1 third = new ThirdClass1(second); first.thirdClass = third; return first; } }
Open Graph Description: Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fix...
X Description: Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fix...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1491
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2ccd0736-3b10-cb41-6089-478bbdef8662 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E3F6:BE2EF:1CFDF1:255098:69903017 |
| html-safe-nonce | 723045a952f72a4dcb0e1225d3e947a04b3e8fa0103aba27a059a4e3db250e55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0Y2OkJFMkVGOjFDRkRGMToyNTUwOTg6Njk5MDMwMTciLCJ2aXNpdG9yX2lkIjoiMTk3MDQyNTk4NTIyNTQ2OTk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 35f2db13f7030a7be4509c7dc34370579ec94aae0f01cbc494ba07e9ad4dc7fc |
| hovercard-subject-tag | pull_request:1152322646 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/UnitTestBot/UTBotJava/pull/1491/files |
| twitter:image | https://avatars.githubusercontent.com/u/54685068?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/54685068?s=400&v=4 |
| og:image:alt | Description This PR fixes unnecessary reflection calls as described in the following issue and infinite loop in self-reference initialization (there are examples in the manual testing section). Fix... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width