JDK-8289395 : Fix warnings: Varargs methods should only override or be overridden by other varargs methods
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: openjfx19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-28
  • Updated: 2022-09-10
  • Resolved: 2022-07-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx19Fixed
Related Reports
Blocks :  
Description
Eclipse Version 2022-06 (4.24.0) reports this warning in the following places:

```
Varargs methods should only override or be overridden by other varargs methods unlike AudioEqualizer.Bands.onProposedChange(List<EqualizerBand>, int[]) and VetoableListDecorator<EqualizerBand>.onProposedChange(List<EqualizerBand>, int...)	AudioEqualizer.java	line 211	/media/src/main/java/javafx/scene/media
Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<Image>(){}.onProposedChange(List<Image>, int[]) and VetoableListDecorator<Image>.onProposedChange(List<Image>, int...)	Stage.java	line 699	/graphics/src/main/java/javafx/stage
Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<Node>(){}.onProposedChange(List<Node>, int[]) and VetoableListDecorator<Node>.onProposedChange(List<Node>, int...)	Parent.java	line 469	/graphics/src/main/java/javafx/scene
Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<Person>(){}.onProposedChange(List<Person>, int[]) and VetoableListDecorator<Person>.onProposedChange(List<Person>, int...)	SourceAdapterChangeTest.java	line 59	/base/src/test/java/test/javafx/collections
Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<String>(){}.onProposedChange(List, int[]) and VetoableListDecorator<String>.onProposedChange(List<String>, int...)	TestedObservableLists.java	line 46	/base/src/test/java/test/javafx/collections
Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<String>(){}.onProposedChange(List<String>, int[]) and VetoableListDecorator<String>.onProposedChange(List<String>, int...)	VetoableObservableListTest.java	line 83	/base/src/test/java/test/javafx/collections
Varargs methods should only override or be overridden by other varargs methods unlike ObservableFloatArrayImpl.setAll(float[]) and ObservableFloatArray.setAll(float...)	ObservableFloatArrayImpl.java	line 155	/base/src/main/java/com/sun/javafx/collections
Varargs methods should only override or be overridden by other varargs methods unlike ObservableIntegerArrayImpl.setAll(int[]) and ObservableIntegerArray.setAll(int...)	ObservableIntegerArrayImpl.java	line 155	/base/src/main/java/com/sun/javafx/collections
```

Comments
Changeset: 13f3e1f7 Author: Andy Goryachev <andy.goryachev@oracle.com> Committer: Nir Lisker <nlisker@openjdk.org> Date: 2022-07-11 19:43:53 +0000 URL: https://git.openjdk.org/jfx/commit/13f3e1f7457c4e0af0002bf9157704c67f7eb576
11-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/816 Date: 2022-07-06 18:52:08 +0000
06-07-2022