Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8251352

Many javafx.base classes have implicit no-arg constructors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx16
    • jfx15
    • javafx

      The following classes in the javafx.base module have implicit no-arg constructors, which are added by javac, and show up in the API docs without any documentation associated with it:

      javafx.beans.property.DoubleProperty
      javafx.beans.property.FloatProperty
      javafx.beans.property.IntegerProperty
      javafx.beans.property.ListProperty
      javafx.beans.property.LongProperty
      javafx.beans.property.MapProperty
      javafx.beans.property.ObjectProperty
      javafx.beans.property.ReadOnlyBooleanPropertyBase
      javafx.beans.property.ReadOnlyDoublePropertyBase
      javafx.beans.property.ReadOnlyFloatPropertyBase
      javafx.beans.property.ReadOnlyIntegerPropertyBase
      javafx.beans.property.ReadOnlyListPropertyBase
      javafx.beans.property.ReadOnlyLongPropertyBase
      javafx.beans.property.ReadOnlyMapPropertyBase
      javafx.beans.property.ReadOnlyObjectPropertyBase
      javafx.beans.property.ReadOnlySetPropertyBase
      javafx.beans.property.ReadOnlyStringPropertyBase
      javafx.beans.property.SetProperty
      javafx.beans.property.StringProperty
      javafx.beans.value.ObservableValueBase
      javafx.collections.ModifiableObservableListBase
      javafx.collections.ObservableArrayBase
      javafx.collections.ObservableListBase
      javafx.util.StringConverter
      javafx.util.converter.BigDecimalStringConverter
      javafx.util.converter.BigIntegerStringConverter
      javafx.util.converter.BooleanStringConverter
      javafx.util.converter.ByteStringConverter
      javafx.util.converter.CharacterStringConverter
      javafx.util.converter.DefaultStringConverter
      javafx.util.converter.DoubleStringConverter
      javafx.util.converter.FloatStringConverter
      javafx.util.converter.IntegerStringConverter
      javafx.util.converter.LongStringConverter
      javafx.util.converter.ShortStringConverter

      The fix is to add an explicit constructor with minimal documentation.

      This is part of a larger effort to eliminate such classes. See JDK-8250558.

            bchoudhary Bhawesh Choudhary (Inactive)
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: