The j2slib file LinkedHashSet.js starts like this:
$_L(["java.util.HashSet","$.Set"],"java.util.LinkedHashSet",["java.util.LinkedHashMap"],function(){ ...
I.e. it defines "java.util.HashSet" and "$.Set" as 'musts' dependencies of java.util.LinkedHashSet , and "java.util.LinkedHashMap" as an 'optional' dependency.
As the LinkedHashMap is only "optional" it may happen the class LinkedHashMap is not yet loaded when a LinkedHashSet constructor is called, e.g. like this one:
$_K(c$,
function(){
$_R(this,java.util.LinkedHashSet,[new java.util.LinkedHashMap()]);
});
This leads to an
Uncaught TypeError: undefined is not a function
Moving the java.util.LinkedHashMap to the 'musts' parameter array solves the problem:
$_L(["java.util.HashSet","$.Set","java.util.LinkedHashMap"],"java.util.LinkedHashSet",[],function(){
Feel free to use the fix.
Udo