Title: Make UtEnumConstantModel and UtClassRefModel subclasses of UtReferenceModel · Issue #414 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Make UtEnumConstantModel and UtClassRefModel subclasses of UtReferenceModel · Issue #414 · UnitTestBot/UTBotJava
X Title: Make UtEnumConstantModel and UtClassRefModel subclasses of UtReferenceModel · Issue #414 · UnitTestBot/UTBotJava
Description: Description Although Enum is a reference type, UtEnumConstantModel is not currently a subtype of UtReferenceModel and does not have any id that would allow the reference comparison of Enum values. As a result, we can't use Enum values as...
Open Graph Description: Description Although Enum is a reference type, UtEnumConstantModel is not currently a subtype of UtReferenceModel and does not have any id that would allow the reference comparison of Enum values. ...
X Description: Description Although Enum is a reference type, UtEnumConstantModel is not currently a subtype of UtReferenceModel and does not have any id that would allow the reference comparison of Enum values. ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/414
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make UtEnumConstantModel and UtClassRefModel subclasses of UtReferenceModel","articleBody":"**Description**\r\n\r\nAlthough `Enum` is a reference type, `UtEnumConstantModel` is not currently a subtype of `UtReferenceModel` and does not have any `id` that would allow the reference comparison of `Enum` values. As a result, we can't use `Enum` values as elements of generic collections (`Map\u003cK, V\u003e`, `List\u003cE\u003e` etc).\r\n\r\nThe intended solution:\r\n * `UtEnumConstantModel` and `UtClassRefModel` should be subtypes of `UtReferenceModel`.\r\n * The address assigned to a `UtEnumConstantModel` should be equal to one and only one address assigned to models of the static fields of the corresponding `Enum` class, and reference equality must hold.\r\n * The addresses should be assigned to `UtClassRefModel` with respect to class equality condition: all models of the same class should have the same address, models of different classes should have different addresses,\r\n\r\nRelated issue: #230 \r\n\r\n**Expected behavior**\r\n\r\n`UtEnumConstantModel` is a subtype of `UtReferenceModel`, and enum values can be used as elements of any generic collection.\r\n\r\n**Environment**\r\n\r\nThe intended behavior does not depend on any specific environment.\r\n","author":{"url":"https://github.com/dtim","@type":"Person","name":"dtim"},"datePublished":"2022-07-05T10:09:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/414/UTBotJava/issues/414"}
| 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:789f0baa-f135-fa7a-e9a2-cc5488c1a19e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B578:F68EB:C92D2D:10516E6:69908B86 |
| html-safe-nonce | bd60b34393ae736561ec193481af93856aa9ed0615b12a75badfd0b32235eedb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTc4OkY2OEVCOkM5MkQyRDoxMDUxNkU2OjY5OTA4Qjg2IiwidmlzaXRvcl9pZCI6IjgxMDU3Mjk2NDAyMDE0ODkyODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a94a938a59ffb48edf29784471435b271794bb7a51d4838acb7330722b3a6ab7 |
| hovercard-subject-tag | issue:1294085459 |
| 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/414/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d1e59ecbf93a8dae309c458de09992b603c9bc658767f25a5b696bbe09e60e1/UnitTestBot/UTBotJava/issues/414 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d1e59ecbf93a8dae309c458de09992b603c9bc658767f25a5b696bbe09e60e1/UnitTestBot/UTBotJava/issues/414 |
| og:image:alt | Description Although Enum is a reference type, UtEnumConstantModel is not currently a subtype of UtReferenceModel and does not have any id that would allow the reference comparison of Enum values. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dtim |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width