Return-Path: X-Original-To: apmail-geode-issues-archive@minotaur.apache.org Delivered-To: apmail-geode-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05BEA18A98 for ; Fri, 15 Jan 2016 06:15:22 +0000 (UTC) Received: (qmail 25910 invoked by uid 500); 15 Jan 2016 06:15:21 -0000 Delivered-To: apmail-geode-issues-archive@geode.apache.org Received: (qmail 25878 invoked by uid 500); 15 Jan 2016 06:15:21 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 25851 invoked by uid 99); 15 Jan 2016 06:15:21 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 06:15:21 +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 8D9C01804DA for ; Fri, 15 Jan 2016 06:15:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.226 X-Spam-Level: * X-Spam-Status: No, score=1.226 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id f9ZpTIQFs_I6 for ; Fri, 15 Jan 2016 06:15:20 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id A8DCE31B57 for ; Fri, 15 Jan 2016 06:14:59 +0000 (UTC) Received: (qmail 7754 invoked by uid 99); 15 Jan 2016 06:14:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 06:14:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2123C2C1F77 for ; Fri, 15 Jan 2016 06:14:58 +0000 (UTC) Date: Fri, 15 Jan 2016 06:14:58 +0000 (UTC) From: "Anthony Baker (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (GEODE-97) Unit tests using jmock fail due to cglib/asm incompatibility with JDK 8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anthony Baker closed GEODE-97. ------------------------------ > Unit tests using jmock fail due to cglib/asm incompatibility with JDK 8 > ----------------------------------------------------------------------- > > Key: GEODE-97 > URL: https://issues.apache.org/jira/browse/GEODE-97 > Project: Geode > Issue Type: Bug > Reporter: Kirk Lund > Assignee: Kirk Lund > Fix For: 1.0.0-incubating.M1 > > > Several unit tests using jmock/cglib/asm fail when run using JDK 8: > {code} > com.gemstone.gemfire.internal.cache.DiskInitFileJUnitTest > testCanonicalIds FAILED > java.lang.IllegalArgumentException > at net.sf.cglib.asm.ClassReader.(Unknown Source) > at net.sf.cglib.asm.ClassReader.(Unknown Source) > at net.sf.cglib.asm.ClassReader.(Unknown Source) > at net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61) > at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911) > at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498) > at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) > at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) > at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) > at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317) > at org.jmock.lib.legacy.ClassImposteriser.proxyClass(ClassImposteriser.java:121) > at org.jmock.lib.legacy.ClassImposteriser.imposterise(ClassImposteriser.java:66) > at org.jmock.internal.ReturnDefaultValueAction.invoke(ReturnDefaultValueAction.java:82) > at org.jmock.internal.InvocationExpectation.invoke(InvocationExpectation.java:165) > at org.jmock.internal.InvocationDispatcher.dispatch(InvocationDispatcher.java:81) > at org.jmock.Mockery.dispatch(Mockery.java:244) > at org.jmock.Mockery.access$100(Mockery.java:29) > at org.jmock.Mockery$MockObject.invoke(Mockery.java:284) > at org.jmock.internal.InvocationDiverter.invoke(InvocationDiverter.java:27) > at org.jmock.internal.FakeObjectMethods.invoke(FakeObjectMethods.java:38) > at org.jmock.internal.SingleThreadedPolicy$1.invoke(SingleThreadedPolicy.java:21) > at org.jmock.lib.legacy.ClassImposteriser$4.invoke(ClassImposteriser.java:136) > at com.gemstone.gemfire.internal.cache.persistence.DiskRegionView$$EnhancerByCGLIB$$dc027cdd.getFlags() > at com.gemstone.gemfire.internal.cache.DiskInitFile.writeRegionConfig(DiskInitFile.java:1796) > at com.gemstone.gemfire.internal.cache.DiskInitFile.createRegion(DiskInitFile.java:2081) > at com.gemstone.gemfire.internal.cache.DiskInitFileJUnitTest.testCanonicalIds(DiskInitFileJUnitTest.java:81) > {code} > The following dependencies change in gradle seems to fix the problem: > {code} > - testRuntime 'cglib:cglib-nodep:3.1' > + testRuntime 'cglib:cglib:3.1' > {code} > The cglib-nodep jar has an "asm" package while the cglib jar does not. This causes the build to use asm 5.0.3 as defined in the dependencies. -- This message was sent by Atlassian JIRA (v6.3.4#6332)