Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4895D10295 for ; Sat, 29 Aug 2015 15:55:17 +0000 (UTC) Received: (qmail 29036 invoked by uid 500); 29 Aug 2015 15:55:17 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 28997 invoked by uid 500); 29 Aug 2015 15:55:17 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 28985 invoked by uid 99); 29 Aug 2015 15:55:16 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Aug 2015 15:55:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6C53DC0BDB for ; Sat, 29 Aug 2015 15:55:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id G7KKFZ_GSKGd for ; Sat, 29 Aug 2015 15:55:14 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A6FB2205E9 for ; Sat, 29 Aug 2015 15:55:13 +0000 (UTC) Received: by lbvd4 with SMTP id d4so7371014lbv.3 for ; Sat, 29 Aug 2015 08:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=DT2pJN58FrqTH5VLtC+fj7FXmjlVQqmFhhvfKbhJ8O8=; b=Q1tHbosn9GsrWv0Mdf8E18cDpJ9ogeuIpfXs6OeZb90v9sIIjJAwOoYj91jiXPMt/k 2wT2hX9Fa+awPC8BysKu0ukaRoch6ZzkR2pzHEa1js1oAeiL95N8z3sP7Vo3IQMixgLh R/KOXH4+cycfkQB6Any5yOyEqMwnbUsPy9gn6XqYb/pLbKwyrzDpwNEpV7WPTjh/i8pZ AgQO9N3YXjvP2poXoLslxhSiJXgSwrI8OI+ZIphQLuVnAM4O2AQfW5LWLOskAgLdvkFE jwMf+qBV9IQPkpKQbmbrVOEmkgAt6ZwJluHrCM2zKp2gg6MuGL0wCYByLv8+WdZkIXqW gfnA== X-Received: by 10.152.5.2 with SMTP id o2mr1061347lao.105.1440863712097; Sat, 29 Aug 2015 08:55:12 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.25.133.135 with HTTP; Sat, 29 Aug 2015 08:54:52 -0700 (PDT) In-Reply-To: <260fb10556c8446ea4a52b8da7198331@git.apache.org> References: <260fb10556c8446ea4a52b8da7198331@git.apache.org> From: Niclas Hedhman Date: Sat, 29 Aug 2015 23:54:52 +0800 X-Google-Sender-Auth: _QAYRNedLTitW7mxZUT0xGnRomM Message-ID: Subject: Re: zest-java git commit: ZEST-118 fixed multiple consumptions of the same stream To: dev Content-Type: multipart/alternative; boundary=089e013d1006babdf0051e753942 --089e013d1006babdf0051e753942 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kent, I appreciate that you help out, and sorry that you did that in an area where I made a massive re-write. org.apache.zest.api =3D 0 failures org.apache.zest.spi =3D 0 failures org.apache.zest.bootstrap =3D 0 failures org.apache.zest.runtime =3D 8 failures, most of them are related to non-handling of ParameterizedTypes, and one is related to the feature of using a class as a Transient directly. Then there are bunches of errors in entity stores and index/query. I think those are related to bug in the ambiguous entity lookup in TypeLookup class, since types are picked up there and then used inside the UnitOfWork handling. This is also an area we might do quite a lot of changes as well..= . Cheers On Sat, Aug 29, 2015 at 3:29 PM, wrote: > Repository: zest-java > Updated Branches: > refs/heads/develop 4e5cfd8ca -> 9580d06fa > > > ZEST-118 fixed multiple consumptions of the same stream > > > Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo > Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/9580d06f > Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/9580d06f > Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/9580d06f > > Branch: refs/heads/develop > Commit: 9580d06fa290dbee7c32b324c62cc0485b18b38c > Parents: 4e5cfd8 > Author: Kent S=C3=B8lvsten > Authored: Sat Aug 29 09:29:12 2015 +0200 > Committer: Kent S=C3=B8lvsten > Committed: Sat Aug 29 09:29:12 2015 +0200 > > ---------------------------------------------------------------------- > .../org/apache/zest/runtime/structure/TypeLookup.java | 12 ++++++++---= - > 1 file changed, 8 insertions(+), 4 deletions(-) > ---------------------------------------------------------------------- > > > > http://git-wip-us.apache.org/repos/asf/zest-java/blob/9580d06f/core/runti= me/src/main/java/org/apache/zest/runtime/structure/TypeLookup.java > ---------------------------------------------------------------------- > diff --git > a/core/runtime/src/main/java/org/apache/zest/runtime/structure/TypeLookup= .java > b/core/runtime/src/main/java/org/apache/zest/runtime/structure/TypeLookup= .java > old mode 100644 > new mode 100755 > index 3baaee7..e2a5fa5 > --- > a/core/runtime/src/main/java/org/apache/zest/runtime/structure/TypeLookup= .java > +++ > b/core/runtime/src/main/java/org/apache/zest/runtime/structure/TypeLookup= .java > @@ -22,6 +22,7 @@ package org.apache.zest.runtime.structure; > import java.lang.reflect.ParameterizedType; > import java.lang.reflect.Type; > import java.lang.reflect.WildcardType; > +import java.util.Collection; > import java.util.List; > import java.util.Map; > import java.util.concurrent.ConcurrentHashMap; > @@ -539,12 +540,13 @@ public class TypeLookup > // Foo check > // First check Foo > ParameterizedType parameterizedType =3D > (ParameterizedType) lookedUpType; > - if( !checkClassMatch( types, (Class) > parameterizedType.getRawType() ) ) > + Collection asCollection =3D types.collect( > Collectors.toList() ); > + if( !checkClassMatch( asCollection.stream(), (Class) > parameterizedType.getRawType() ) ) > { > return false; > } > // Then check Bar > - return interfacesOf( types ).anyMatch( intf -> > intf.equals( lookedUpType ) ); > + return interfacesOf( asCollection.stream() > ).anyMatch( intf -> intf.equals( lookedUpType ) ); > } > else if( lookedUpType instanceof WildcardType ) > { > @@ -591,12 +593,14 @@ public class TypeLookup > // Foo check > // First check Foo > ParameterizedType parameterizedType =3D > (ParameterizedType) lookedUpType; > - if( !checkClassMatch( types, (Class) > parameterizedType.getRawType() ) ) > + Collection asCollection =3D types.collect( > Collectors.toList() ); > + > + if( !checkClassMatch( asCollection.stream(), (Class) > parameterizedType.getRawType() ) ) > { > return false; > } > // Then check Bar > - interfacesOf( types ).anyMatch( intf -> intf.equals( > lookedUpType ) ); > + interfacesOf( asCollection.stream() ).anyMatch( intf > -> intf.equals( lookedUpType ) ); > } > else if( lookedUpType instanceof WildcardType ) > { > > --=20 Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java --089e013d1006babdf0051e753942--