JDK-8172160 : time parameter not defined in Keyframe constructor API
  • Type: Bug
  • Component: javafx
  • Sub-Component: animation
  • Affected Version: 8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-12-31
  • Updated: 2017-03-08
  • Resolved: 2017-03-08
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.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
In the JavaFX8 documentation, in the Keyframe page, the "Duration time" parameter of the constructors is defined in the #time bookmark, but it seems to be missing from the page. 
The time parameter is defined, though, but only in the getTime() method definition, and it takes a bit of searching to find it.

Same error in the JavaFX 2.2 documentation.


REPRODUCIBILITY :
This bug can be reproduced always.


Comments
This bug was resolved by the fix to JDK-8163384
08-03-2017

Actually, there is a bug here. The {@link #time} does not link to anything because the time attribute (which as noted is of type Duration) is not a Property, but a simple get method. So the javadoc tag should be changed to "{@link #getTime time}" or "{@code time}" instead. This is likely one of the things that will be fixed up by JDK-8163384 when we eliminate doclint warnings in the javafx.graphics module. The same problem exists with name and onFinished as well. They should also be changed to link to the getter (or just use @code) instead of a Property that doesn't exist.
20-02-2017

It does not look like an issue to me. Here the parameter, 'Duration time' of the KeyFrame constructor is just a reference to the Duration. To get more details about the Duration, please find the link below. https://docs.oracle.com/javase/8/javafx/api/javafx/util/Duration.html
19-02-2017

Link: https://docs.oracle.com/javase/8/javafx/api/javafx/animation/KeyFrame.html
02-01-2017