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

Javadoc marks non-preview type as preview if it's the subtype of a preview type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • tools
    • None

      A new interface `DEREncodable` is introduced in JDK-8300911 as a preview feature. We retrofit existing classes like `AsymmetricKey` to implement it. The rendered HTML javadoc shows a preview tag on `AsymmetricKey` and claims "AsymmetricKey relies on preview features of the Java platform" and "Programs can only use AsymmetricKey when preview features are enabled". These are not true. An application can use `AsymmetricKey` without enabling preview features as long as it does not touch the `DEREncodable` type.

            nbenalla Nizar Benalla
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: