Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-766

Problem using Annotation Based Expression Language In Bean Method

    XMLWordPrintable

Details

    Description

      A simple example has been attach that demonstrates an issue using Annotation Based Expression Language to check a value in the method sigature:

      The following code is being used:

      public boolean returnSuccess (@Simple("${exception} == null") boolean success) {
              return success;
          }
      

      When an exception is set the method still returns true.

      The following code demonstrates a work around for this issue:

      public boolean returnSuccess(@Simple("${exception}") String exception)
      	{		
      		return (exception == null ? true : false);
      	}
      

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            rhn-support-jsherman Jason Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: