Hi Mathieu, It looks as if you're attempting to compile java with the Java 1.4 compiler. FOP no longer supports Java 1.4, but requires Java1.5+.
Hope that helps Mehdi On 16 September 2011 13:47, Mathieu Malaterre <[email protected]> wrote: > Hi Simon, > > On Mon, Aug 29, 2011 at 1:37 PM, Simon Pepping <[email protected]> wrote: >> It would be good if alternative builds of fop would run a number of >> our junit tests. The fop team should look into this to formulate a >> recommendation. > > AFAIK running fop tests simply involved running the 'junit' ant target > ? Right ? In this case the code does not compile for me: > > [javac] > /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/util/text/LocatorFormatter.java > [javac] > /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:64: > generics are not supported in -source 1.4 > [javac] (use -source 5 or higher to enable generics) > [javac] private List<AFMCharMetrics> charMetrics = new > java.util.ArrayList<AFMCharMetrics>(); > [javac] ^ > [javac] > /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:418: > for-each loops are not supported in -source 1.4 > [javac] (use -source 5 or higher to enable for-each loops) > [javac] for (Map.Entry<String, Map<String, Dimension2D>> > entryFrom : this.kerningMap.entrySet()) { > [javac] > ^ > [javac] > /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:500: > annotations are not supported in -source 1.4 > [javac] (use -source 5 or higher to enable annotations) > [javac] @Override > [javac] ^ > [javac] 3 errors > > > Can I switch the target version ? > > Thanks > -- > Mathieu > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
