Re: PL/Java new build plugin

From: Kartik Ohri <kartikohri13(at)gmail(dot)com>
To: Chapman Flack <chap(at)anastigmatix(dot)net>
Cc: pljava-dev(at)lists(dot)postgresql(dot)org
Subject: Re: PL/Java new build plugin
Date: 2020-07-19 06:44:21
Message-ID: CAASLQ4P=c42e342-1YTTCBxA=CKBH2m=DLJN+ZQb5EJW6MyofQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

>
> There is an issue with calling findClass on the instance field because it
> has protected visibility. loadClass on the other hand is public.
>

I tried with both passing the current context loader and system class
loader. getSystemClassLoader works in finding the JavaScript engine. So, I
tried passing ClassLoader.getSystemClassLoader directly to
ScriptEngineManager's constructor and it works the same. It is able to find
the engine. This could come with the issue that graal vm may not be on the
system class loader path so we need to think how to work that out. But in
the meantime, we can try to progress on the loading script from the pom.

Regards,
Kartik

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Kartik Ohri 2020-07-19 08:42:43 Re: PL/Java new build plugin
Previous Message Kartik Ohri 2020-07-19 06:28:11 Re: PL/Java new build plugin