Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jx33z-0005QP-VQ for pljava-dev@arkaria.postgresql.org; Sun, 19 Jul 2020 06:44:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jx33y-000415-A4 for pljava-dev@arkaria.postgresql.org; Sun, 19 Jul 2020 06:44:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jx33y-00040y-2V for pljava-dev@lists.postgresql.org; Sun, 19 Jul 2020 06:44:42 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jx33q-0003nC-G2 for pljava-dev@lists.postgresql.org; Sun, 19 Jul 2020 06:44:41 +0000 Received: by mail-ed1-x529.google.com with SMTP id a8so10635794edy.1 for ; Sat, 18 Jul 2020 23:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ux/dEmGGujOcywfaOiVcXu95sCE1uUFd+EoR2Q+5NYA=; b=OWwuDplR+DEXydJKMXN4YiwwCw+knUwQGAwwnIsm6pNeWJ3M/Sn+x1+SHOWOi7viNi GQR5Btk8SVQRybru6mAymnmrhMgDVAv1tXI+9rzKN5GUc4C/a7AhAyNWMdaTRTuewz+O 3kff1gVrW/x1byH5+8VIqVXoKc9ZifPj/2W89WQyxwkwVXg4MysGmCcpDYGkotyOJj0G nqU5CH2nisE+9b/2KCLAiLUVeVz4jzKQ0m9DhIloEZOM9kEbXpp+brSHz62jYlRADN0m hiQ7vNdtkbyZdMQnGKodlOy8IBg9MHGCEJNIzFhYzRJtWtH8j7LtMbhCmQQjojY/0/5J Bvog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ux/dEmGGujOcywfaOiVcXu95sCE1uUFd+EoR2Q+5NYA=; b=mQBzJRWqdTW11nCsALXZdFEOb8/jESrG1CaSJ6wus8kk7+CH35un7X9AqZMywpS8OY DMDxzHTif6c+R/fgCLoGknFElNdQicEKMyvbJV24780hGFzyQ4ev0jelcM6dnCTAD2h7 btexPY6ysiZB8sYmuYjDm8QBwTOCpOjDd674Z2M4/YviLZ03NxS0qjMfYHNxVbfSp+jJ XoeT7I2LHJNgRfFzRc1Xqilk3WcnH7IxNyjHMehBbbiKIKpYBleTOBqhOpUG24ePz+B9 hjNwaiSB7LbF8EA7KdrxNBaZSG9Pp7WlVjCuwIbRHhudyI3KqwWneF89iQn18mPEhWD5 A4wQ== X-Gm-Message-State: AOAM531i5FcLIZhyaGauBJmNkF3SpKo5qTkgRYdWquWBlCh3g0Pr8bgd DbBKcFoe45+sjWqQ4ICA3MGDyf4KQQkdrlB2M4TOYg+5 X-Google-Smtp-Source: ABdhPJwMFDoelEPG34aFxT65YRh5oYq3KdODZ6S+NLAOZKInU4v9Ph7cRScsILbHf/gq8gUoGhRC9AXpcC6fcpsN0us= X-Received: by 2002:a05:6402:cb3:: with SMTP id cn19mr16971152edb.368.1595141072617; Sat, 18 Jul 2020 23:44:32 -0700 (PDT) MIME-Version: 1.0 References: <5F077926.2050806@anastigmatix.net> <5F07C2D5.5050904@anastigmatix.net> <5F0D35BA.30904@anastigmatix.net> <5F0E3972.5070609@anastigmatix.net> <5F0F2DA2.5090603@anastigmatix.net> <5F12FF49.6090906@anastigmatix.net> <5F12FF80.5020208@anastigmatix.net> <5F1338F8.6030506@anastigmatix.net> <5F135B84.8070302@anastigmatix.net> In-Reply-To: From: Kartik Ohri Date: Sun, 19 Jul 2020 12:14:21 +0530 Message-ID: Subject: Re: PL/Java new build plugin To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000000008a605aac5b9d7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000000008a605aac5b9d7 Content-Type: text/plain; charset="UTF-8" > > 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 --0000000000000008a605aac5b9d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 a= nd system class loader. getSystemClassLoader works in finding the JavaScrip= t 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=C2=A0how to work that out= . But in the meantime, we can try to progress on the loading script from th= e pom.

Regards,
Kartik
--0000000000000008a605aac5b9d7--