From: Dannes W. <di...@ex...> - 2014-09-16 19:47:47
|
Hi, After upgrading the aspect-j libs I am able to compile and run eXist-db (2.2) with Java8; The junit tests show a few issues though, I'd like to share the results: Summary Tests Failures Errors Skipped Success rate Time 2064 5 0 6 99.76% 858.236 All Failures Class Name Status Type Time(s) AllXqueryTests testAttributeNamespace Failure expected:<<c:C xmlns:[d="http://d" xmlns:c="http://c]" d:d="ddd">ccc</c:C...> but was:<<c:C xmlns:[c="http://c" xmlns:d="http://d]" d:d="ddd">ccc</c:C...> junit.framework.ComparisonFailure: expected:<<c:C xmlns:[d="http://d" xmlns:c="http://c]" d:d="ddd">ccc</c:C...> but was:<<c:C xmlns:[c="http://c" xmlns:d="http://d]" d:d="ddd">ccc</c:C...> at org.exist.xquery.XQueryTest.testAttributeNamespace(XQueryTest.java:1865) 0.089 AllXqueryTests testNoNamepaceDefinedForPrefix_1959010 Failure declare function local:copy($nodes as node()*) as node()* { for $n in $nodes return if ($n instance of element()) then element {node-name($n)} {(local:copy($n/@*), local:copy($n/node()))} else if ($n instance of attribute()) then attribute {node-name($n)} {$n} else if ($n instance of text()) then text {$n} else <Other/> }; let $c := <c:C xmlns:c="http://c" xmlns:d="http://d" d:d="ddd">ccc</c:C> return local:copy($c) expected:<<c:C xmlns:[d="http://d" xmlns:c="http://c]" d:d="ddd">ccc</c:C...> but was:<<c:C xmlns:[c="http://c" xmlns:d="http://d]" d:d="ddd">ccc</c:C...> junit.framework.ComparisonFailure: declare function local:copy($nodes as node()*) as node()* { for $n in $nodes return if ($n instance of element()) then element {node-name($n)} {(local:copy($n/@*), local:copy($n/node()))} else if ($n instance of attribute()) then attribute {node-name($n)} {$n} else if ($n instance of text()) then text {$n} else <Other/> }; let $c := <c:C xmlns:c="http://c" xmlns:d="http://d" d:d="ddd">ccc</c:C> return local:copy($c) expected:<<c:C xmlns:[d="http://d" xmlns:c="http://c]" d:d="ddd">ccc</c:C...> but was:<<c:C xmlns:[c="http://c" xmlns:d="http://d]" d:d="ddd">ccc</c:C...> at org.exist.xquery.XQueryTest.testNoNamepaceDefinedForPrefix_1959010(XQueryTest.java:3339) 0.084 IdFunctionTest differingRealAndEffectiveUsers Failure expected:<real> but was:<null> junit.framework.AssertionFailedError: expected:<real> but was:<null> at org.exist.xquery.functions.securitymanager.IdFunctionTest.differingRealAndEffectiveUsers(IdFunctionTest.java:95) 1.184 IdFunctionTest sameRealAndEffectiveUsers Failure expected:<user1> but was:<null> junit.framework.AssertionFailedError: expected:<user1> but was:<null> at org.exist.xquery.functions.securitymanager.IdFunctionTest.sameRealAndEffectiveUsers(IdFunctionTest.java:141) 0.014 UtilTests runXMLBasedTests Failure Test '7' in file 'util.xml' failed. junit.framework.AssertionFailedError: Test '7' in file 'util.xml' failed. at xquery.TestRunner.runXMLBasedTests(TestRunner.java:101) 1.132 the 1st and 2nd are identical, about attribute ordering 3 and 4 are security manager issues (where the aspectj-side is relevant) 5 is..... to be investigated cheers Dannes eXist-db Native XML Database http://www.exist-db.org |