I'm having problems building the source-release with java8.

* jena-security consistently fails with java8 (1.8.0_20)
* It does build with java7
* The git tag source builds with java8.

Claude - what causes this test failure?

And is there a reason why the tests can't use an in-memory TDB dataset? It will speed things up (make the tests not crash into each other if run in parallel).

        Andy

(I'll continue with other checking)

java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)


The first failure is:

Running org.apache.jena.security.graph.TDBGraphTest
Tests run: 384, Failures: 0, Errors: 16, Skipped: 0,
Time elapsed: 24.311 sec <<< FAILURE!
- in org.apache.jena.security.graph.TDBGraphTest
testGetPrefixMapping[C:true R:true U:false D:true force:true](org.apache.jena.security.graph.TDBGraphTest) Time elapsed: 0.067 sec <<< ERROR!
java.lang.reflect.InvocationTargetException: null
  at sun.reflect.GeneratedMethodAccessor502.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.jena.security.graph.SecuredPrefixMappingTest.runTests(SecuredPrefixMappingTest.java:78) at org.apache.jena.security.graph.MemGraphTest.testGetPrefixMapping(MemGraphTest.java:268)
  at sun.reflect.GeneratedMethodAccessor570.invoke(Unknown Source)

.......junit on the stack .....

Caused by: java.lang.AssertionError:
Should have thrown AccessDenied Exception
  at org.junit.Assert.fail(Assert.java:88)
at org.apache.jena.security.graph.SecuredPrefixMappingTest.testWithDefaultMappings(SecuredPrefixMappingTest.java:401)
   at sun.reflect.GeneratedMethodAccessor502.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.jena.security.graph.SecuredPrefixMappingTest.runTests(SecuredPrefixMappingTest.java:78) at org.apache.jena.security.graph.MemGraphTest.testGetPrefixMapping(MemGraphTest.java:268)
   at sun.reflect.GeneratedMethodAccessor570.invoke(Unknown Source)

There are 16 of these errors:

Edited...

testGetPrefixMapping[C:true R:true U:false D:true force:true]
testGetPrefixMapping[C:true R:true U:false D:true force:false]
testGetPrefixMapping[C:true R:true U:false D:false force:true]
testGetPrefixMapping[C:true R:true U:false D:false force:false]
testGetPrefixMapping[C:true R:false U:false D:true force:true]
testGetPrefixMapping[C:true R:false U:false D:true force:false]
testGetPrefixMapping[C:true R:false U:false D:false force:true]
testGetPrefixMapping[C:true R:false U:false D:false force:false]
testGetPrefixMapping[C:false R:true U:false D:true force:true]
testGetPrefixMapping[C:false R:true U:false D:true force:false]
testGetPrefixMapping[C:false R:true U:false D:false force:true]
testGetPrefixMapping[C:false R:true U:false D:false force:false]
testGetPrefixMapping[C:false R:false U:false D:true force:true]
testGetPrefixMapping[C:false R:false U:false D:true force:false]
testGetPrefixMapping[C:false R:false U:false D:false force:true]
testGetPrefixMapping[C:false R:false U:false D:false force:false]

Reply via email to