struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: Re: question about ParameterNameAware
Date Thu, 09 Jan 2014 14:05:52 GMT
> > The problem is this line:
> >
> >>     return acceptableName(name) && (parameterNameAware == null ||
> >> parameterNameAware.acceptableParameterName(name));
> >
> > when acceptableName(name) returns false,
> > parameterNameAware.acceptableParameterName(name) is not called.
> >
> > Or do get this wrong?
> 
> It must be called, there is || (OR) so if the left side returns false,
> the right must be examined as well. If left returns true, the right
> won't be called.
> 
> 

There is && and () as well.

In my case the results would look like this:

false && (false || true)



regards,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message