Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32D45175E9 for ; Mon, 1 Jun 2015 08:32:41 +0000 (UTC) Received: (qmail 74310 invoked by uid 500); 1 Jun 2015 08:32:41 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 74270 invoked by uid 500); 1 Jun 2015 08:32:41 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 74258 invoked by uid 99); 1 Jun 2015 08:32:40 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2015 08:32:40 +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 4ADEAC0DFB for ; Mon, 1 Jun 2015 08:32:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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-eu-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 v92DYzjL51_6 for ; Mon, 1 Jun 2015 08:32:39 +0000 (UTC) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id CB63020FEE for ; Mon, 1 Jun 2015 08:32:38 +0000 (UTC) Received: by obcnx10 with SMTP id nx10so92515337obc.2 for ; Mon, 01 Jun 2015 01:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=WNd/esPNRosn4XzJRcmlrtwJgJsIhRoBhlifWYYXb7Y=; b=LtCJJXR2o7bO5p5fFwcekuL6HZsyQTh+Ii3OxewO0xc88YpxsKMEl/C2XV8xuDGSbX tXh3ctnoCOg7phawVdWj4NH/jarwx5mijcX4z/96ESsrJXFwO410XPqNVgKNIVxWgKrM Srr2FXmuNhWPIPhoiucB6BNsW3qMxjMhHrM/xw9XH0jF8xwgkI3LIR6pq7CkmUBuEjuQ jRwPR//+bCdLFsVa1cKfZKSWqT/E4/GOoryJ/3qS0CjoDLNEUgl8YTEqv8FbGmh4x4bC cDMncqgOyKhI/CC0X65H+L8/6VRTu/l6msp4pOmx2A2hssJ0IsKs7jxTfso0uoZEuhSZ WDCg== X-Received: by 10.60.82.97 with SMTP id h1mr17343742oey.71.1433147507577; Mon, 01 Jun 2015 01:31:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.131.68 with HTTP; Mon, 1 Jun 2015 01:31:27 -0700 (PDT) From: Pawel Veselov Date: Mon, 1 Jun 2015 01:31:27 -0700 Message-ID: Subject: Serp, JDK 1.8 and Lambdas To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=047d7b6767c8199a44051770a85a --047d7b6767c8199a44051770a85a Content-Type: text/plain; charset=UTF-8 Hi. I had some Lambda code in one of my entities, and the enhancement, using 2.2.2, failed with an exception. Is there a better version of Serp that I can replace whatever comes stock in 2.2.2 (that's 1.14.1)? Thank you, Pawel. Exception in thread "main" java.lang.IllegalArgumentException: type = 18 at serp.bytecode.lowlevel.Entry.create(Entry.java:78) at serp.bytecode.lowlevel.Entry.read(Entry.java:36) at serp.bytecode.lowlevel.ConstantPool.read(ConstantPool.java:412) at serp.bytecode.BCClass.read(BCClass.java:89) at serp.bytecode.BCClass.read(BCClass.java:144) at serp.bytecode.Project.loadClass(Project.java:139) at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4884) at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4831) at org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4801) at org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configurations.java:761) at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Configurations.java:751) at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4796) at org.apache.openjpa.enhance.PCEnhancer.main(PCEnhancer.java:4787) --047d7b6767c8199a44051770a85a--