Title: Java: More details about nested arrays · Issue #6552 · github/codeql · GitHub
Open Graph Title: Java: More details about nested arrays · Issue #6552 · github/codeql
X Title: Java: More details about nested arrays · Issue #6552 · github/codeql
Description: Given a multi-dimensional array, the extractor doesn't seem to provide enough information about nested sub-arrays. For example: public class Test { void test() { byte[][] array = new byte[][] { new byte[] { 1, 2 }, new byte[] { 3, 4 ,5 }...
Open Graph Description: Given a multi-dimensional array, the extractor doesn't seem to provide enough information about nested sub-arrays. For example: public class Test { void test() { byte[][] array = new byte[][] { new...
X Description: Given a multi-dimensional array, the extractor doesn't seem to provide enough information about nested sub-arrays. For example: public class Test { void test() { byte[][] array = new byte[][] {...
Opengraph URL: https://github.com/github/codeql/issues/6552
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java: More details about nested arrays","articleBody":"Given a multi-dimensional array, the extractor doesn't seem to provide enough information about nested sub-arrays.\r\n\r\nFor example:\r\n\r\n```java\r\npublic class Test {\r\n\r\n void test() {\r\n byte[][] array = new byte[][] {\r\n new byte[] { 1, 2 },\r\n new byte[] { 3, 4 ,5 }\r\n };\r\n }\r\n}\r\n```\r\n\r\nThe following query shows only `IntegerLiteral` and `TypeAccess` for the nested arrays:\r\n\r\n```ql\r\nimport java\r\n\r\nfrom ArrayCreationExpr array\r\nselect array.getInit().getAnInit().getAChildExpr().getAPrimaryQlClass()\r\n```\r\n\r\nInstead, `ArrayCreationExpr` should be used to represent the nested arrays, shouldn't it?\r\n\r\nThis issue was found [here](https://github.com/github/codeql/pull/6357#discussion_r688717982).","author":{"url":"https://github.com/artem-smotrakov","@type":"Person","name":"artem-smotrakov"},"datePublished":"2021-08-25T16:46:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/6552/codeql/issues/6552"}
| 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:fa8c113a-0164-e2dc-284b-e7883518323b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89C8:30A7B5:1B0561E:26C8728:6A4CE15B |
| html-safe-nonce | 609b3b49185cab765dca4bff472cd1a1817dd75e02364eaae7918fcc71189dc9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUM4OjMwQTdCNToxQjA1NjFFOjI2Qzg3Mjg6NkE0Q0UxNUIiLCJ2aXNpdG9yX2lkIjoiMzU0OTg0MzY3Nzk4MjI4NjE3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2d3bc04f6879f7c4ab99aa54613368379fba9103713a95af3adc578215b9e9b5 |
| hovercard-subject-tag | issue:979422575 |
| 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/github/codeql/6552/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed873913ac5c27c8f1d13e5c89903ae4e442e13d3381991b856db483d80bd58b/github/codeql/issues/6552 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed873913ac5c27c8f1d13e5c89903ae4e442e13d3381991b856db483d80bd58b/github/codeql/issues/6552 |
| og:image:alt | Given a multi-dimensional array, the extractor doesn't seem to provide enough information about nested sub-arrays. For example: public class Test { void test() { byte[][] array = new byte[][] { new... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | artem-smotrakov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql git https://github.com/github/codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 143040428 |
| octolytics-dimension-repository_nwo | github/codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143040428 |
| octolytics-dimension-repository_network_root_nwo | github/codeql |
| 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 | c5a57f04eeb310f57c73fd6d751d957e2ca27ed2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width