cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24198] New: - Mock javax.mail.BodyPart.java has incorrect method signature
Date Tue, 28 Oct 2003 23:59:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24198>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24198

Mock javax.mail.BodyPart.java has incorrect method signature

           Summary: Mock javax.mail.BodyPart.java has incorrect method
                    signature
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: dean.cording@kaz-group.com


The file:

2.1/src/blocks/mail/mocks/javax/mail/BodyPart.java

includes the method:

public void setContent(String a, String b) 

In the real javax.mail.BodyPart class distributed with JavaMail 1.2 the actual 
method is:

public void setContent(Object a, String b)

If the SendmailTransformer is compiled against the mock object and then run 
against the real JavaMail it will fail with:

java.lang.NoSuchMethodError: javax.mail.BodyPart.setContent
(Ljava/lang/String;Ljava/lang/String;)V
	at 
org.apache.cocoon.mail.transformation.SendMailTransformer.setUpMessage
(SendMailTransformer.java:576)

Mime
View raw message