Explicitly mark java.lang.Object as canBeReferencedExternally.
In the current implementation java.lang.Object is canBeReferencedExternally only because it has static JsMembers.
The ijars produced by javabuilder are stripped of static methods and those are the only JsMembers in the class.
@@ -485,7 +485,8 @@ public abstract class DeclaredTypeDescriptor extends TypeDescriptor
public boolean canBeReferencedExternally() {
if (getTypeDeclaration().isJsType()
|| isJsFunctionInterface()
- || TypeDescriptors.isBoxedTypeAsJsPrimitives(this)) {
+ || TypeDescriptors.isBoxedTypeAsJsPrimitives(this)
+ || TypeDescriptors.isJavaLangObject(this)) {
return true;
}
