JDK-8144872 : Remove ContextMenu.impl_showRelativeToWindow API
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: controls
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-12-07
  • Updated: 2015-12-08
  • Resolved: 2015-12-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
9Fixed
Related Reports
Relates :  
Description
This API is only used by Control in one special case, and that can be handled through a package-private method, rather than public API. See attached patch.
Comments
Changeset: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/8a10e075a525
08-12-2015

+1
07-12-2015

Agreed.
07-12-2015

Looking into this, the only place the 'hiddenProperties' set is used is in the Scene Builder MetadataIntrospector. Looking at the code it appears the algorithm introspects a bean, iterates through all of its properties, and populates a list of properties only when the propertyMetaData is null and the hiddenProperties set does not contain the property name. Therefore, it seems reasonable to update this patch and to remove the line mentioned in the comment above.
07-12-2015

SceneBuilder seems to reference this property (through reflection, I would guess) : rt/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/metadata/Metadata.java: hiddenProperties.add(new PropertyName("impl_showRelativeToWindow"));
07-12-2015