https://issues.apache.org/bugzilla/show_bug.cgi?id=50245

--- Comment #2 from Simon Pepping <spepp...@apache.org> 2010-11-11 06:39:03 EST 
---
I get two errors in junit-transcoder and one failure in junit-userconfig when I
run FOP's junit tests.

The one in junit-userconfig is easily traced:

java.lang.ClassCastException: java.io.File cannot be cast to java.net.URL
    [junit]     at
org.apache.fop.fonts.autodetect.FontFileFinder.find(FontFileFinder.java:150)

You specified the return type of FontFonder.find() as List<URL>. The comment
already makes it clear that the return list either contains URLs or Files. In
NativeFontDirFinder.find() you specify the return type as List<URI>, but when
you do the same in the body of the method, it becomes clear that Files, not
URIs are stored in this list.

This is one of a few examples where FOP's code stores different types of object
in a collection variable. Maybe not clean, but it is hard to change.

Can you correct your patch, so that it successfully passes all junit tests?

Simon

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to