The problem:

The declaration of setAttribute in MailetContext:
package org.apache.mailet;
...
    void setAttribute(String name, Object object);

Create a class that implements it with same declarations --
package not.org.apache.mailet;
public MyClass implements MailetContext {
...
    void setAttribute(String name, Object object);

Get compiler error:
setAttribute(java.lang.String,java.lang.Object) in not.org.apache.mailet.MyClass
cannot implement setAttribute(java.lang.String,java.lang.Object) in
org.apache.mailet.MailetContext; attempting to assign weaker access privileges;
was public

The fix:

Explicitly declaring access privileges within the Interface definition helps to
prevent this error.  Edited MailetContext.java attached.  (Based on a CVS
checkout last weekend).

Attachment: MailetContext.java
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to