RFR: 8364230: javax/swing/text/StringContent can be migrated away from using finalize [v3]
Phil Race
prr at openjdk.org
Wed Aug 6 19:39:12 UTC 2025
On Fri, 1 Aug 2025 05:19:46 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8364230
>
> src/java.desktop/share/classes/javax/swing/text/StringContent.java line 29:
>
>> 27: import java.util.Vector;
>> 28: import java.io.Serializable;
>> 29: import javax.swing.undo.*;
>
> wildcard
I am not doing clean up
> test/jdk/javax/swing/text/AbstractDocument/StringContentPositionTest.java line 65:
>
>> 63: for (int i=0; i<SIZE; i++) {
>> 64: if (positions[i].getOffset() != 0) {
>> 65: System.err.println("remove: Bad offset i=" + i + " off=" + positions[i].getOffset());
>
> Why a RuntimeException is not thrown instead of just logging?
Because I was testing and wanted to see all errors - I've fixed this now
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26519#discussion_r2252569854
PR Review Comment: https://git.openjdk.org/jdk/pull/26519#discussion_r2252581327
More information about the client-libs-dev
mailing list