Skip to content

ClassNotFoundException: ca.weblite.objc.RuntimeMappings$Runtime #44

@rednoah

Description

@rednoah

I have an objc mapping that looks like this:

public static Object NSURL_URLByResolvingBookmarkData_startAccessingSecurityScopedResource(String text) {
		return Client.getInstance().sendProxy("NSURL", "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", NSData_initWithBase64Encoding(text), 1024, null, false, null).send("startAccessingSecurityScopedResource");
}

But with the latest version of objc I get this issue, and indeed RuntimeMappings does not contain a Runtime (without number) class, but I'm not quite sure what's going on, since the code compiles but doesn't work at runtime:

java.lang.ClassNotFoundException: ca.weblite.objc.RuntimeMappings$Runtime
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at ca.weblite.objc.RuntimeUtils.objc_msgSend(RuntimeUtils.java:315)
	at ca.weblite.objc.RuntimeUtils.msg(RuntimeUtils.java:351)
	at ca.weblite.objc.RuntimeUtils.msg(RuntimeUtils.java:790)
	at ca.weblite.objc.Client.send(Client.java:161)
	at ca.weblite.objc.Client.sendProxy(Client.java:354)
	at ca.weblite.objc.Client.sendProxy(Client.java:381)
	at net.filebot.platform.mac.MacAppUtilities.NSURL_URLByResolvingBookmarkData_startAccessingSecurityScopedResource(MacAppUtilities.java:69)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions