kamilkrzywanski opened a new pull request, #9534: URL: https://github.com/apache/netbeans/pull/9534
## Summary - Keep shortened-string metadata in a strong `HashMap` so `getShortenedInfo()` still resolves after GC (previously a `WeakHashMap` could drop the entry while the truncated `...` display value was still shown). - Also resolve quoted `Variable.getValue()` forms (`"content..."`) when looking up shortened info. - Fixes **Save Value to File** writing only the first 100k characters plus `...` instead of streaming the full remote string via `StringInfo.getContent()`. Fixes #9452 ## Test plan - [ ] Debug an app with a `String` larger than 100_000 characters - [ ] Open the variable custom editor (`...`) and choose **Save Value to File** - [ ] Confirm the saved file length matches the full string (no trailing truncation ellipsis) Standalone verification of the lookup failure mode: - With `WeakHashMap`, after GC of the map key, lookup of an equal display string returns null → save would write the truncated preview - With `HashMap`, lookup still succeeds → save can use `getContent()` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
