On the face of it, this sounds like abusive behaviour by a monopolist. Wonder if it'll be seen that way legally though?
For the US, didn't Oracle win the java api lawsuit?
> In April 2021, the Supreme Court ruled in a 6–2 decision that Google's use of the Java APIs fell within the four factors of fair use, bypassing the question on the copyrightability of the APIs. The decision reversed the Federal Circuit ruling and remanded the case for further review.
[0] https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America%2....