JDK-8338340 : [TestBug] fix varargs parameter type warnings
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: jfx23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-13
  • Updated: 2024-09-19
  • Resolved: 2024-09-16
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
jfx24 b10Fixed
Related Reports
Blocks :  
Description
A number of tests produce vararg parameter type warnings when enabled in Eclipse ("Inexact type match vararg arguments").

Apparently, this would cause a build error in the main build.  Is it disabled in tests (build.gradle:553)?  Should we enable the warning/error in tests?

```
Description	Resource	Location
Type null of the last argument to method mouseClick(MouseButton...) doesn't exactly match the vararg parameter type. Cast to MouseButton[] to confirm the non-varargs invocation, or pass individual arguments of type MouseButton for a varargs invocation.	RobotTest.java	line 491
Type null of the last argument to method mousePress(MouseButton...) doesn't exactly match the vararg parameter type. Cast to MouseButton[] to confirm the non-varargs invocation, or pass individual arguments of type MouseButton for a varargs invocation.	RobotTest.java	line 447
Type null of the last argument to method mouseRelease(MouseButton...) doesn't exactly match the vararg parameter type. Cast to MouseButton[] to confirm the non-varargs invocation, or pass individual arguments of type MouseButton for a varargs invocation.	RobotTest.java	line 469
Type String[] of the last argument to method format(String, Object...) doesn't exactly match the vararg parameter type. Cast to Object[] to confirm the non-varargs invocation, or pass individual arguments of type Object for a varargs invocation.	FileReaderTest.java	line 229
```
Comments
Changeset: 3e6a2724 Branch: master Author: Kevin Rushforth <kcr@openjdk.org> Date: 2024-09-16 12:47:02 +0000 URL: https://git.openjdk.org/jfx/commit/3e6a27240abcffd500a7150a8e934918683d6173
16-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1565 Date: 2024-09-13 14:52:22 +0000
13-09-2024