diff --git a/cli/pom.xml b/cli/pom.xml
index 90ca6ee..7c6f3bd 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -8,7 +8,7 @@
1.0-SNAPSHOT
hsadmin-cli
- 1.0.4
+ 1.1.0
jar
HSAdmin-Cli
diff --git a/cli/src/main/resources/js/functions.js b/cli/src/main/resources/js/functions.js
index 86390b0..f11ba61 100644
--- a/cli/src/main/resources/js/functions.js
+++ b/cli/src/main/resources/js/functions.js
@@ -1,5 +1,5 @@
-importClass(java.util.ArrayList);
-importClass(java.util.HashMap);
+var JArrayList = Java.type("java.util.ArrayList")
+var JHashMap = Java.type("java.util.HashMap")
function hsaParseParam(val) {
if (val === null) {
@@ -20,7 +20,7 @@ function hsaParseParam(val) {
}
function hsaParseParamArray(o) {
- var lst = new ArrayList();
+ var lst = new JArrayList();
var val = '';
for (var idx=0; idx < o.length; idx++) {
val = o[idx];
@@ -36,7 +36,7 @@ function hsaParseParamArray(o) {
}
function hsaParseParamObject(o) {
- var hsh = new HashMap();
+ var hsh = new JHashMap();
for (var key in o) {
var val = o[key];
if (!val === null) {
@@ -73,7 +73,7 @@ function hsaToNativeJSObject(val) {
}
function hsaModuleCall(mod, fct, json) {
- var params = new ArrayList();
+ var params = new JArrayList();
params.add(casgrantingticket.getRunAs());
params.add(casgrantingticket.getTicket());
if (typeof json === "undefined") {