Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89F8311DCA for ; Fri, 18 Apr 2014 19:19:25 +0000 (UTC) Received: (qmail 11785 invoked by uid 500); 18 Apr 2014 19:19:19 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 11610 invoked by uid 500); 18 Apr 2014 19:19:15 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 11473 invoked by uid 99); 18 Apr 2014 19:19:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 19:19:15 +0000 Date: Fri, 18 Apr 2014 19:19:15 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (OPENJPA-2492) TestConcurrentMap error with Java 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/OPENJPA-2492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973104#comment-13973104 ] Romain Manni-Bucau edited comment on OPENJPA-2492 at 4/18/14 7:17 PM: ---------------------------------------------------------------------- we should surely only use ConcurrentMap (interface) and not concurrent hash map which has signature issues. wdyt? edit: an alternative is to implement ConcurrentMap ourself delegating to a ConcurrentHashMap (facade), this way signatures will be fine was (Author: romain.manni-bucau): we should surely only use ConcurrentMap (interface) and not concurrent hash map which has signature issues. wdyt? > TestConcurrentMap error with Java 8 > ----------------------------------- > > Key: OPENJPA-2492 > URL: https://issues.apache.org/jira/browse/OPENJPA-2492 > Project: OpenJPA > Issue Type: Sub-task > Components: build / infrastructure, Enhance, jpa > Affects Versions: 2.4.0 > Environment: Java 8 > java version "1.8.0" > Java(TM) SE Runtime Environment (build 1.8.0-b132) > Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode) > Reporter: Kevin Sutter > > One more test failure while running with Java 8. Since Java 8 introduced some new methods on the Map interface, this is probably related. We are getting a VerifyError related to the keySet signature: > Tests in error: > testConcurrentMap001(org.apache.openjpa.persistence.relations.TestConcurrentMap) > java.lang.VerifyError: (class: org/apache/openjpa/util/java$util$concurrent$ConcurrentHashMap$4$proxy, method: keySet signature: ()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;) Wrong return type in function > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:340) > at org.apache.openjpa.util.GeneratedClasses.loadBCClass(GeneratedClasses.java:68) -- This message was sent by Atlassian JIRA (v6.2#6252)