<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Interesting, which compiler are you using?<div>I can compile fine both on Java 5 and 6 using Apple JDK</div><div><br></div><div>There seems to be a bunch of bugs related to method overloading and generics in Sun's bug database. I am inclined to believe that method overloading is evil like the FAN guys think.</div><div><br></div><div>I have just committed a fix for it, try it out.</div><div><a href="http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-355">http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-355</a></div><div><br></div><div><br><div><div>On Mar 25, 2009, at 15:54, Marcel Overdijk wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>OK I managed to compile Core successfully (after disabling the tests).</div> <div>However compiling Hibernate Search gives some errors.</div> <div> </div> <div>It's complaining about:</div> <div>D:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptimizationHelper.java:[63,34] name clash: mergeByBitAnds(java.util.List<org.apache.lucene.util.DocIdBitSet>) and mergeByBitAnds(java.util.List<org.apache.lucene.search.DocIdSet>) have the same erasure</div> <div> </div> <div>Full build trace:</div> <div> </div> <div>D:\Grails\hibernate\search>mvn install -Dmaven.test.skip=true<br>[INFO] Scanning for projects...<br>[INFO] ------------------------------------------------------------------------<br>[INFO] Building Hibernate Search<br> [INFO] task-segment: [install]<br>[INFO] ------------------------------------------------------------------------<br>[INFO] [resources:resources]<br>[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,<br> i.e. build is platform dependent!<br>[INFO] Copying 0 resource<br>Downloading: <a href="http://repository.jboss.com/maven2/woodstox/wstx-asl/3.2.7/wstx-asl">http://repository.jboss.com/maven2/woodstox/wstx-asl/3.2.7/wstx-asl</a><br> -3.2.7.pom<br>[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.7' in repository jboss<br> (<a href="http://repository.jboss.com/maven2">http://repository.jboss.com/maven2</a>)<br>Downloading: <a href="http://snapshots.jboss.org/maven2/woodstox/wstx-asl/3.2.7/wstx-asl">http://snapshots.jboss.org/maven2/woodstox/wstx-asl/3.2.7/wstx-asl</a>-<br> 3.2.7.pom<br>[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.7' in repository jboss<br>-snapshot (<a href="http://snapshots.jboss.org/maven2">http://snapshots.jboss.org/maven2</a>)<br>Downloading: <a href="http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.7/wstx-asl-3.2">http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.7/wstx-asl-3.2</a>.<br> 7.pom<br>[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.7' in repository centr<br>al (<a href="http://repo1.maven.org/maven2">http://repo1.maven.org/maven2</a>)<br>[INFO] [compiler:compile]<br>[INFO] Compiling 188 source files to D:\Grails\hibernate\search\target\classes<br> [INFO] ------------------------------------------------------------------------<br>[ERROR] BUILD FAILURE<br>[INFO] ------------------------------------------------------------------------<br>[INFO] Compilation failure</div> <div>D:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim<br>izationHelper.java:[63,34] name clash: mergeByBitAnds(java.util.List<org.apache.<br>lucene.util.DocIdBitSet>) and mergeByBitAnds(java.util.List<<a href="http://org.apache.lucene.se">org.apache.lucene.se</a><br> arch.DocIdSet>) have the same erasure</div> <div>D:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim<br>izationHelper.java:[85,33] name clash: mergeByBitAnds(java.util.List<org.apache.<br>lucene.util.OpenBitSet>) and mergeByBitAnds(java.util.List<org.apache.lucene.sea<br> rch.DocIdSet>) have the same erasure</div> <div>D:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim<br>izationHelper.java:[47,42] mergeByBitAnds(java.util.List<org.apache.lucene.searc<br>h.DocIdSet>) in org.hibernate.search.filter.FilterOptimizationHelper cannot be a<br> pplied to (java.util.List<org.apache.lucene.util.OpenBitSet>)</div> <div>D:\Grails\hibernate\search\src\main\java\org\hibernate\search\filter\FilterOptim<br>izationHelper.java:[50,42] mergeByBitAnds(java.util.List<org.apache.lucene.searc<br>h.DocIdSet>) in org.hibernate.search.filter.FilterOptimizationHelper cannot be a<br> pplied to (java.util.List<org.apache.lucene.util.DocIdBitSet>)<br><br></div> <div class="gmail_quote">On Wed, Mar 25, 2009 at 6:36 PM, Emmanuel Bernard <span dir="ltr"><<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>></span> wrote:<br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Long story short, it's all in Maven now.<br>> svn co <a href="http://anonsvn.jboss.org/repos/hibernate/core/trunk/" target="_blank">http://anonsvn.jboss.org/repos/hibernate/core/trunk/</a> core<br> > svn co <a href="http://anonsvn.jboss.org/repos/hibernate/search/trunk/" target="_blank">http://anonsvn.jboss.org/repos/hibernate/search/trunk/</a> search<br>> cd core<br>> mvn install (1)<br>> cd ../search mvn install<br> <br>(1) might fail on some doc generation but as long as the snapshot are published to your local repo you're good.<br><br>Also make sure to use the proper maven settings <a href="http://hibernate.org/422.html" target="_blank">http://hibernate.org/422.html</a><br> <br>I use maven 2.0.9 and it works. <div> <div></div> <div class="h5"><br><br>On Mar 25, 2009, at 10:58, Hardy Ferentschik wrote:<br><br></div></div> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <div> <div></div> <div class="h5">On Wed, 25 Mar 2009 15:38:45 +0100, Marcel Overdijk <<a href="mailto:marceloverdijk@gmail.com" target="_blank">marceloverdijk@gmail.com</a>> wrote:<br><br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I've checked out the latest Hibernate Search from trunk and I'm trying to<br>build it. I know I need the latest annotations code also.<br> </blockquote><br>You might want to update your source again. I finally completed HSEARCH-82 today and<br>converted Hibernate Search to a maven only build. All obsolete ant files are now removed.<br><br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">As described on <a href="http://hibernate.org/449.html" target="_blank">http://hibernate.org/449.html</a> Local latest version I changed the commons-annotations rev to "latest" in ivy.xml but it's not working<br> either.<br></blockquote><br>Really <a href="http://hibernate.org/449.html" target="_blank">http://hibernate.org/449.html</a> is obsolete. I am in the process of updating it.<br><br>--Hardy<br><br><br></div></div>_______________________________________________<br> hibernate-dev mailing list<br><a href="mailto:hibernate-dev@lists.jboss.org" target="_blank">hibernate-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/hibernate-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a><br> </blockquote><br></blockquote></div><br></blockquote></div><br></div></body></html>