Beehive
  1. Beehive
  2. BEEHIVE-1150

Compiler warning that Jpf.ValidatorVersion is deprecated though the enum has not been deprecated

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.1, 1.0.2
    • Fix Version/s: 1.0.2
    • Component/s: NetUI
    • Labels:
      None

      Description

      Tory Toupin pointed out the following issue and solution...

      When you compile a page flow controller with the validatorVersion attribute set to a value of the Jpf.ValidatorVersion enum in the @Jpf.Controller annotation, you get a compiler warning... "[deprecation] org.apache.beehive.netui.pageflow.annotations.Jpf.ValidatorVersion in org.apache.beehive.netui.pageflow.annotations.Jpf has been deprecated"

      Seems the javadoc @deprecated on "page" in the NavigateTo enum immediately preceding the ValidatorVersion, causes the ValidatorVersion enum to be marked as deprecated. However, this is corrected if the javadoc annotation is removed and an @Deprecated annotation is used instead.

        Activity

        Hide
        Carlin Rogers added a comment -

        This is fixed with SVN revision 462841.

        To check this, add the validatorVersion attribute to the @Jpf.Controller annotation of a page flow controller and compile with the option -Xlint:deprecation.

        @Jpf.Controller(
        validatorVersion = Jpf.ValidatorVersion.oneOne,
        ...
        )

        You receive the deprecated warning before the fix, but not after.

        Show
        Carlin Rogers added a comment - This is fixed with SVN revision 462841. To check this, add the validatorVersion attribute to the @Jpf.Controller annotation of a page flow controller and compile with the option -Xlint:deprecation. @Jpf.Controller( validatorVersion = Jpf.ValidatorVersion.oneOne, ... ) You receive the deprecated warning before the fix, but not after.

          People

          • Assignee:
            Julie Zhuo
            Reporter:
            Carlin Rogers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development