Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
java 8 problems #129
Apache Maven 3.2.1
I see they added a new List.sort() method in Java 8.
Now our sort() on ContentList is having a signature conflict.
Ours isn't a public method, so you should be able to rename it to internalSort() and change the calls in Element.java to call it by its new name, and that should take care of the collision and be backward compatible.
I believe the issue is actually best solved by making the sort method public. I guess it is a testament to the generics strategy of JDOM 2.x that the generics are all compatible with what Java8 wants.
Changing the methods to public, and running with Java8, all 1887 tests pass.
added a commit
Apr 4, 2014