Beehive
  1. Beehive
  2. BEEHIVE-179

context.getControlPropertySet() should return null for non-existent annotation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: V1Beta
    • Fix Version/s: V1Beta
    • Component/s: Controls
    • Labels:
      None
    • Environment:
      Windows

      Description

      I call

      ServiceControl.TypesJarName typesJarNameAnn =
      (ServiceControl.TypesJarName)context.
      getControlPropertySet(ServiceControl.TypesJarName.class);

      in the Impl of my control (ServiceControl). TypesJarName is a valid annotation which is defined in the public interface but not used in either the public interface nor in the JCX.

      I expected to receive null but instead I get a non-null object with defaulted values for its members.

      This is at odds with the javadoc for the API ControlBeanContext.getControlPropertySet() and in any case you need a way to be able to tell whether an annotation is present or not (especially if you have marker annotations).

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            James Song
            Reporter:
            Lawrence Jones
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development