Repository: zest-qi4j Updated Branches: refs/heads/develop ed865c6af -> f91e712d7
Attempt to fix compilation with OpenJDK 8 in PropertyModel Previously tested working with: - Oracle Java 7u75 - Oracle Java 8u45 to 8u51 But failed on builds.apache.org using OpenJDK 8 java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode) Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/f91e712d Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/f91e712d Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/f91e712d Branch: refs/heads/develop Commit: f91e712d77d75b324f886aca6a31656b1bad7377 Parents: ed865c6 Author: Paul Merlin <[email protected]> Authored: Wed Jul 22 18:03:15 2015 +0200 Committer: Paul Merlin <[email protected]> Committed: Wed Jul 22 18:03:15 2015 +0200 ---------------------------------------------------------------------- .../src/main/java/org/qi4j/runtime/property/PropertyModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/f91e712d/core/runtime/src/main/java/org/qi4j/runtime/property/PropertyModel.java ---------------------------------------------------------------------- diff --git a/core/runtime/src/main/java/org/qi4j/runtime/property/PropertyModel.java b/core/runtime/src/main/java/org/qi4j/runtime/property/PropertyModel.java index 3d38927..2e8b2ce 100644 --- a/core/runtime/src/main/java/org/qi4j/runtime/property/PropertyModel.java +++ b/core/runtime/src/main/java/org/qi4j/runtime/property/PropertyModel.java @@ -172,7 +172,7 @@ public class PropertyModel { if( valueType instanceof ValueCompositeType ) { - return module.newValue( first( valueType().types() ) ); + return module.newValue( (Class<?>) first( valueType().types() ) ); } else {
