Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: Bug in Antelope 3.5.1 - StartsWith

antelope
Discussion topic

Back to topic list

Re: Bug in Antelope 3.5.1 - StartsWith

Author danson
Full name Dale Anson
Date 2010-06-02 08:37:52 PDT
Message Yes, that does indeed look like a bug. I'll take a look at it this evening.

Thanks,

Dale


On Wed, Jun 2, 2010 at 9:09 AM, <matthias.gaertne​r@gtnexus.com> wrote:

> Hello Dale,
> Hello all,
>
> there may be a bug in ise.antelope.tasks.c​ondition.StartsWith (at least
> in version 3.5.1):
>
> 1.
> Is:
> public void setProperty(String s) {
> String propertyName = s;
> }
> Should be:
> public void setProperty(String s) {
> propertyName = s;
> }
>
> 2.
> Is:
> if (string == null || propertyName == null)
> throw new BuildException("string or property must be set.");
> Should be:
> if (string == null && propertyName == null)
> throw new BuildException("string or property must be set.");
>
>
> Unfortunately this makes the class unusable since propertyName cannot be
> set to a non-null value.
> Workaround may be to use stringutil.indexof and check the value against
> "0".
>
>
> Best regards,
> Matthias
>
>
Attachments

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

Re: Bug in Antelope 3.5.1 - StartsWith danson Dale Anson 2010-06-02 08:37:52 PDT
Messages per page: