Re: Exposing my own/wrapper functions using JEXL

2023-08-07 Thread Henri Biestro
Of course we do. It seems the landing page / detailed example is still not steering users towards the Javadoc which anyhow is not the best media to explain 'how to' (imho). Transforming/extracting 'how to's from the unit tests could be the cheapest way to improve on this area. (As in: how do I i

RE: Exposing my own/wrapper functions using JEXL

2023-08-07 Thread Aditya Kumar1
PM To: dev@commons.apache.org Subject: Re: Exposing my own/wrapper functions using JEXL This message originated Externally. Use proper judgement and caution with attachments, links, or responses. Hi; JEXL 3.3. has increased default security by restricting permissions to a very narrow set of al

Re: Exposing my own/wrapper functions using JEXL

2023-08-07 Thread Gary Gregory
Do we need better documentation on the site? Gary On Mon, Aug 7, 2023, 5:45 AM Henri Biestro wrote: > Hi; > JEXL 3.3. has increased default security by restricting permissions to a > very narrow set of allowed classes. In your case, you need to allow JEXL to > introspect your package by configu

Re: Exposing my own/wrapper functions using JEXL

2023-08-07 Thread Henri Biestro
Hi; JEXL 3.3. has increased default security by restricting permissions to a very narrow set of allowed classes. In your case, you need to allow JEXL to introspect your package by configuring your permissions. Have a look at JexlPermissions javadoc for more explanations. On JEXL 3.3, with Java 1

Exposing my own/wrapper functions using JEXL

2023-08-05 Thread Aditya Kumar1
Hi, I was trying to expose my own functions using JEXL library. I am trying the below example. public static class MyMath { public double cos(final double x) { return Math.cos(x); } } public static void testCustomFunction2() { try {