RFR: 8289384: Fix warnings: method does not override the inherited method since it is private to a different package

Andy Goryachev duke at openjdk.org
Mon Jul 11 22:17:49 UTC 2022


On Fri, 8 Jul 2022 21:37:47 GMT, Andy Goryachev <duke at openjdk.org> wrote:

> The fix includes:
> - renaming of offending methods to avoid confusion
> - explicitly declaring the offending methods as private

Kevin, what I meant actually, is that Eclipse would generate a warning when compiler creates a synthetic accessor:

Access to enclosing method beginChange() from the type ObservableListBase<E> is emulated by a synthetic accessor method	line 59	/base/src/main/java/com/sun/javafx/collections	ElementObservableListDecorator.java

there are about 81 warnings like this, if enabled.  I decided to disable them because it may not be a trivial change.

Your snippet, of course, compiles without a problem, as it should.

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

PR: https://git.openjdk.org/jfx/pull/824


More information about the openjfx-dev mailing list