Re: Trunk won't compile?

2011-05-25 Thread Andreas L. Delmelle
On 25 May 2011, at 16:15, Eric Douglas wrote:

Hi Eric

> What is this missing? 
> When I right click the build.xml in Eclipse and select Run As > ant build, I 
> get jars created but the log ends with BUILD FAILED.
> 
> I scroll up to see some errors and there's messages like this. 
> [junit] Testcase: 
> page-number_background-image.xml(org.apache.fop.intermediate.IFParserTestCase):
>Caused an ERROR 
> [junit] 
> org.apache.fop.area.inline.TextArea.addTrait(Ljava/lang/Object;Ljava/lang/Object;)V
>  
> [junit] java.lang.NoSuchMethodError:

Phew! A relief. :-) Your subject line scared me at first, but turns out to be a 
bit misleading, as it is not a compile error, but a linkage error. It is about 
trying to execute compiled bytecode pointing to a method that was removed or 
whose signature has changed. The compiled versions of PageNumberLayoutManager 
and Area seem to be out of synch.

Seems to be pointing to another (older) fop.jar somewhere in the classpath, as 
org.apache.fop.area.Area.addTrait() had (Object, Object), but was changed to 
(Integer, Object) in r1062901.

Hope this helps!


Regards

Andreas
---

Trunk won't compile?

2011-05-25 Thread Eric Douglas
What is this missing?
When I right click the build.xml in Eclipse and select Run As > ant
build, I get jars created but the log ends with BUILD FAILED.
I scroll up to see some errors and there's messages like this.
[junit] Testcase:
page-number_background-image.xml(org.apache.fop.intermediate.IFParserTes
tCase): Caused an ERROR
[junit]
org.apache.fop.area.inline.TextArea.addTrait(Ljava/lang/Object;Ljava/lan
g/Object;)V
[junit] java.lang.NoSuchMethodError:
org.apache.fop.area.inline.TextArea.addTrait(Ljava/lang/Object;Ljava/lan
g/Object;)V
[junit] at
org.apache.fop.layoutmgr.inline.PageNumberLayoutManager.get(PageNumberLa
youtManager.java:87)
That doesn't make sense.  That line 87 is this.
text.addTrait(Trait.COLOR, fobj.getColor());
That looks like it's passing Object,Object.
text is a TextArea which extends AbstractTextArea which extends
InlineParent which extends InlineArea which extends Area which has a
method addTrait(Object,Object).