openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Serp, JDK 1.8 and Lambdas
Date Sun, 07 Jun 2015 14:15:28 GMT
If you are doing buildtime enhancement, the serp library is used very
little at runtime. I know there are some uses, but very minimal. That being
said, you'll need to be sure to have the updated library when enhancing.

On Wed, Jun 3, 2015 at 2:10 PM, Pawel Veselov <pawel.veselov@gmail.com>
wrote:

> Rick,
>
> On Mon, Jun 1, 2015 at 7:22 AM, Rick Curtis <curtisr7@gmail.com> wrote:
>
> > Take a look at OPENJPA-2386[1]. In that JIRA we reference using the
> updated
> > version of serp (1.15.1).
> >
>
> Thank you. Is serp only used for enhancement? So, if I'm pre-enhancing the
> entities, serp library would not be used by OpenJPA at runtime at all?
>
>
> >
> > https://issues.apache.org/jira/browse/OPENJPA-2386
> >
> > On Mon, Jun 1, 2015 at 3:31 AM, Pawel Veselov <pawel.veselov@gmail.com>
> > wrote:
> >
> > > 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)
> > >
> >
> >
> >
> > --
> > *Rick Curtis*
> >
>
>
>
> --
> With best of best regards
> Pawel S. Veselov
>



-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message