Skip to main content

JDK8 - Java Scripting - importClass / importPackage broken

No replies
mbilgin
Offline
Joined: 2006-05-18
Points: 0

Downloaded b98 and started checking out the scripting support, and bumped into few issues.

//------
importClass (java.util.Vector) ;

function test()
{
vect = new Vector() ;
}

//------

throws javax.script.ScriptException: ReferenceError: "importClass" is not defined in at line number 1

This works perfectly when Java 7 is used.

Instead the following code seems to work in Java 8

//------
function test()
{
vect = new java.util.Vector() ;
}
//------

Can someone confirm that this is a bug and it will be fixed or I am missing something that is glaringly obvious ?

Thanks in advance