Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-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 6C62518541 for ; Tue, 1 Sep 2015 10:36:43 +0000 (UTC) Received: (qmail 89137 invoked by uid 500); 1 Sep 2015 10:36:43 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 89113 invoked by uid 500); 1 Sep 2015 10:36:43 -0000 Mailing-List: contact dev-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list dev@groovy.incubator.apache.org Received: (qmail 89103 invoked by uid 99); 1 Sep 2015 10:36:42 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2015 10:36:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 65EC218234D for ; Tue, 1 Sep 2015 10:36:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.4 X-Spam-Level: * X-Spam-Status: No, score=1.4 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_MXURI=1.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xd1say_CFY3o for ; Tue, 1 Sep 2015 10:36:31 +0000 (UTC) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 4FB4C506FD for ; Tue, 1 Sep 2015 10:36:31 +0000 (UTC) Received: by oiex83 with SMTP id x83so81087123oie.1 for ; Tue, 01 Sep 2015 03:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vSiOD+eRGOXOdoWYppK9L7qGt9GRGVDFPO4CyHhhu3I=; b=090eN1ZqLW8wunrrSUub8Bw89cWUp3pTGwf7/dNrFGwWejPirmd4W+tZMhKk+1+nMq MVwH1P2ZW+FKdSVbxfgGUsqQf1FWLOq9/QF3p2jolpnN1gHiX9Vxl0fj+hQ/BjKpAaYr JIvGV8UUCwZiGUfCk7juSenc6jBaPrOhIX3dCdIvZukLVS1J/p4hZlKC2Zs9VRekE9c/ Ir0W+80AHpy3LaNxQV7YB97yuThAIFGdrMG6GvVbqGHZmUVncGjLw00pHVLUZlYvHO7/ esGtjM8sZ6QQOkKEMz8gjpAO9C9ZiNMpjtPazGeSDSxme70L2n45YIlvJeMXSeVNHDg5 316w== MIME-Version: 1.0 X-Received: by 10.202.64.3 with SMTP id n3mr9726437oia.53.1441103785134; Tue, 01 Sep 2015 03:36:25 -0700 (PDT) Received: by 10.182.241.65 with HTTP; Tue, 1 Sep 2015 03:36:25 -0700 (PDT) In-Reply-To: References: <55E3E83C.1010409@gmx.net> Date: Tue, 1 Sep 2015 12:36:25 +0200 Message-ID: Subject: Re: Failing Groovysh Test with JDK 9 SNAPSHOT on Buildserver From: Thibault Kruse To: dev@groovy.incubator.apache.org Content-Type: text/plain; charset=UTF-8 See https://github.com/apache/incubator-groovy/pull/107 for a possible fix On Tue, Sep 1, 2015 at 11:13 AM, Thibault Kruse wrote: > The tests makes sure that completing java.util. includes 'Set', as in > java.util.Set. I'll assume java9 does not move the Set class. I guess > there is a change affecting method > PackageHelperImpl.getClassnames(), which was originally copied from jline1. > > I see it has adaptations for jigsaw made by Cedric: > https://github.com/apache/incubator-groovy/commit/0e384ec3 > (not pointing fingers, just analyzing the code) > > And the breaking test follows that new codepath. > > Debugging a bit, I notice that the files contained in 'jrt:/' does not > contains only "/modules/java.base/java/util/Set.class". At a glance, > it seems the assumptions in > PackageHelperImpl.getPackagesAndClassesFromJigsaw() do not hold with > the current Java9 implementation, since it produces a Class > java.base.java.util.Set, but not java.util.Set. > > A quick fix is to change: > -if (elems) { > - elems = elems[3.. +if (elems && elems.length > 2) { > + elems = elems[3.. > in *two* places in that method. > > I have no idea whether there is a standard for the folder layout > FileSystems.newFileSystem(URI.create("jrt:/")) should return, or > whether and why this has changed since Cedric made his additions. > > However this might be related: > http://mail.openjdk.java.net/pipermail/jigsaw-dev/2014-November/004044.html