Aviator 4.1.2 released
killme2008
released this
29 Jan 06:15
·
612 commits
to master
since this release
Main features:
- Fixed a bug in
FunctionUtils#getJavaObject
to retrieve java collection type such as (user.roles) #106 - Fixed NPE when tracing expression evaluation.
- Variables captured by closure should be immutable. #101
- Adds a new option
Options.DISABLE_ASSIGNMENT
to disable variable assignment. - Literal expression performance issue #96
- New functions to create java collections
seq.set(x,y,z...)
to create aHashSet
instance from varidic arguments.seq.list(x,y,z...)
to create a 'ArrayList` instance from varidic arguments.seq.map(k1,v1, k2, v2,...)
to create aHashMap
instance from varidic arguments.- New functions
seq.add
,seq.remove
andseq.get
to add/remove/get elements(values) from collections.
seq.max(coll)
andseq.min(coll)
to retrieve min/max element in a sequence.min(x,y,z...)
andmax(x,y,z...)
to retrieve min/max value from varidic arguments.identity(x)
function to return the argument itself.- Adds a new document 4.0 features explain.
Maven
<dependency>
<groupId>com.googlecode.aviator</groupId>
<artifactId>aviator</artifactId>
<version>4.1.2</version>
</dependency>