matthiasblaesing opened a new pull request, #9635: URL: https://github.com/apache/netbeans/pull/9635
While debugging with JPDA NetBeans makes strings directly available as long as they are shorter than 100000 characters. Longer strings are truncated to that length. The full string can be made available on demand and saved to a file. Before this change the truncated string was used as a key in a WeakHashmap that held the data required to fetch the full string. This causes problems: - it was observed that the contents of the WeakHashMap was collected to early, rendering the full string inaccessible - the truncated string might not be unique, which might result in crosstalk between strings displays This change switch from providing truncated strings to consumers to providing as StringInfo object that not only holds the shorted string, but also all the info that is required to fetch the full string. The caching that was done based on the shorted string was switched to StringReferences as keys, which are documented to be equal when the backing VM and string are identical. -- 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
