<Swing Dev> RFR JDK-8241291: JCK test javax_swing/text/DefaultStyledDocument/ElementSpec/ESpecCtor.html fails
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Fri Mar 20 04:57:43 UTC 2020
On 3/19/20 8:15 pm, Prasanta Sadhukhan wrote:
> Not exactly. We are still copying the internal data before exposing to the user/external world in ElementSpec.getArray() so user does not get hold of our internal data structures.
It will be possible to modify the array after passing to the constructor so the "get" method will return different results per call.
>
> Regards
> Prasanta
> On 20-Mar-20 6:22 AM, Sergey Bylokhov wrote:
>>> Fix is to copy the full text into ElementSpec.data and store the correct offset.
>>>
>>> It fixes the JCK issue and also 8241078 regression testcase. All JCK javax_swing/text/DefaultStyledDocument/ testcases pass after this fix.
>>
>> But this will break JDK-8173123, isn't it?
>>
--
Best regards, Sergey.
More information about the swing-dev
mailing list