public class ClassWithNestedInterface {
public interface NestedInterface {
}
}
public class NestedInterfaceUser {
public static NestedInterfaceUser create() {
return new NestedInterfaceUser();
}
public ClassWithNestedInterface.NestedInterface func() {
return new ClassWithNestedInterface.NestedInterface() {
@Override
public String toString() {
return "NestedInterfaceImplementation";
}
};
}
public NestedInterfaceUser() {
}
}
ClazzLoader.jarClasspath (base + "util/AbstractList.js", [
"java.util.AbstractList",
"java.util.AbstractList.FullListIterator",
"java.util.AbstractList.SimpleListIterator",
"java.util.AbstractList.SubAbstractList",
"java.util.AbstractList.SubAbstractListRandomAccess"
]);
somewhere.
If no ClazzLoader.jarClasspath is configured, requiring ClassWithNestedInterface.NestedInterface before requiring ClassWithNestedInterface (e.g. new ClassWithNestedInterface() which will trigger class being loaded), it will complaint class loading error.
Hope it help.
--
You received this message because you are subscribed to the Google Groups "Java2Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java2script...@googlegroups.com.
To post to this group, send email to java2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/java2script/1e5ca255-c364-4af0-bccb-7fa443d20ad9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.