RFR: JDK-8304959: Public API in javafx.css.Match should not return private API class PseudoClassState [v7]

Kevin Rushforth kcr at openjdk.org
Thu May 18 23:38:59 UTC 2023


On Thu, 18 May 2023 23:20:29 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> It is highly unlikely that application would extend BitSet, or put StyleClassSet in the same hash table due to both being in com.sun;

Not merely unlikely, it is not possible, so this need not be considered.

> but the internal code might (and I don't want to comb the CSS code looking for possible occurrences).
>
> If we replace line 532 with `if(getClass == obj.getClass()) {` however, we would not have to.

That's a good suggestion. Given that we want the minimal changes to BitSet for this particular PR, this seems a reasonable, and safe choice. `BitSet` is an internal-only abstract class, and the only two concrete subclasses are both final with different type parameters.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1070#issuecomment-1553782429


More information about the openjfx-dev mailing list