Re: JESS: Jess Access Control

"Wolfgang Laun" <[email protected]> Sat, 8 Jan 2011 10:49:04 +0100
Newsgroups gmane.comp.java.jess
Message-ID <24965_1294496244_p08EHN51029712_AANLkTin754vqZYr2gx2=y7DYc5FF-TvWeERNvWuhtM5-@mail.gmail.com>
On 8 January 2011 02:30, Ernest Friedman-Hill <[email protected]> wrote:

>
> On Jan 7, 2011, at 8:06 PM, Michael Eugene Artz wrote:
>
>
>   public Profile getProfile(int profileNumber)
>>  {
>>  //return new Profile(1, "Mike", "Artz");
>>  return (Profile)profiles.get(new Integer(profileNumber));
>>  }
>>
>>
> Which is what the error says: the values are Booleans, not Profiles. The
> trace tells you exactly what line causes the errors, so a println() or two
> would have easily told you the whole story.
>

Or use generics with constraining types, and the Java compiler will tell
you.
-W