On Fri, 4 May 2001, James Strachan wrote:
> Hi Dave
>
> > The first is that the Antlr
> > grammar files in org.dom4j.xpath.parser aren't included in
> > the distribution. I was able to get around this, by just
> > getting them from the CVS repository. No big deal.
>
> Whoops - well spotted David. I'll fix the Ant build to make sure they get
> included in the 0.3 release. Thanks for spotting this!
Gotta include those .g files, man.
Don't be slighting the xpath sources... ;)
> > D:\temp\dom4j\build\src\org\dom4j\xpath\util\DocumentOrderComparator
> > .java:55: No variable EMPTY_MAP defined in class java.util.Collections.
> > [javac] _orderings = Collections.EMPTY_MAP;
>
> I'll try patch the code to remove this dependency. I must admit I've been
> using 1.3 for so long I hadn't spotted this dependency. I should be able to
> fix the code so its a non issue. Will try get the patch done ASAP.
Honestly, try this:
Remove the comparators and recompile. I don't think
they are truly used right now. At least, the original
werken.xpath never actually used them.
Else, just do _orders = new HashMap(0); or maybe we can create
a singleton empty-map:
public class EmptyMap extends HashMap
{
private static Map _instance = new EmptyMap();
public static Map getInstance()
{
return _instance;
}
private EmptyMap()
{
super( 0 );
}
}
-bob
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev