Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
9f0c1e8 to
2c894b0
Compare
The server now names the type of an array parameter, result or field with an array term, java::byte[], instead of the written byte[]. Read the element of the term so these types keep the name of the array the code declares; a hashed term spells no element and stays unknown.
2c894b0 to
b7c0217
Compare
CI failed: The Ruling Update and Notify job (job 140420072665) failed because the upstream ruling-qa job was cancelled, leaving no actual_* artifacts to download. The analyzer found no evidence linking this to the PR, and the reason for the cancellation remains unknown.OverviewThe Ruling Update and Notify job (job 140420072665) failed because the upstream ruling-qa job was cancelled, leaving no actual_* artifacts to download. The analyzer found no evidence linking this to the PR, and the reason for the cancellation remains unknown. FailuresRuling Update and Notify job failed: actual_* artifacts unavailable after upstream ruling-qa was cancelled
Summary
Code Review ✅ Approved 🟡 Medium riskParsing SemSitter array terms changes inferred Java types, which could affect overridden-method matching and related analyzer findings. Reads SemSitter array terms such as Verification Rules 3/3 met Repos 3 inspected · PRs 3 inspectedFunctional validation No results Rules 3 passed 2 not applicable
Broader impact Repos 3 inspected PRs 3 inspectedCross-repo 3 repositories inspected 0 open impacts
Auto-approval Not enabledFor more verification details, comment Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Part 5 of 17 of JAVA-7392. Ticket: JAVA-7419.
Intent
Since SonarSource/semsitter#5876 and #5950, the server names array types with a term id spelled over their element,
java::byte[], instead of a plainbyte[].FactTypesread such a term as a class literally namedjava::byte[], with no element, so no signature with an array parameter matched its overridden method.flowchart LR T["java::byte[][]"] --> A["array of"] --> B["java::byte[]"] --> C["array of"] --> P["byte"] H["java::{a1b2}"] --> U["unknown"]A hashed term,
java::{...}, spells no element and stays unknown.RedissonConnection.exists(byte[])java::byte[]byte[]DefaultedRedisConnection(deprecated),RedisKeyCommandsThis explains part of the issues lost on the last PVF compared to the earlier stack.
State on master
FactTypesdoes not exist on master: it comes with part 4.Test plan
FactTypesTest.array_terms_are_the_arrays_of_their_element:java::byte[],java::int[][], generic and type variable elements, hashed terms stay unknown