Bug#875340: FTBFS with Java 9: getPeer()

Rene Engelhard rene at debian.org
Sun Sep 10 19:15:49 UTC 2017


Hi,

On Sun, Sep 10, 2017 at 08:07:12PM +0100, Chris West wrote:
> getPeer() has been removed. The use here looks horrible, and exactly why
> getPeer() was removed:
> 
> /* 
>     Here's the really disguisting hack.
>     We have to get to the peer because TextComponent will refuse to
>     let us set us set a caret position greater than the text length.
>     Great.  What a piece of crap.
> */
> public void setCaretPosition( int pos ) {
>     ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( 
>         pos + countNLs() );
> }
> 

JFTR, LO did just remove it

https://cgit.freedesktop.org/libreoffice/core/commit/?id=f20810a1318a8dd55cb01e42a0fde7f0e1b36623

Regards,

Rene



More information about the pkg-java-maintainers mailing list