Kha icon indicating copy to clipboard operation
Kha copied to clipboard

Java Backend Outdated?

Open lunabunn opened this issue 5 years ago • 6 comments

Is it just me, or is Java backend outdated? I can't get it to compile; first, it complained about kha.arrays.Int32Array missing, so I implemented that myself. Now, it's complaining about kha.SystemImpl.login, kha.SystemImpl.automaticSafeZone, kha.SystemImpl.setSafeZone, kha.SystemImpl.unlockAchievement, and kha.Font.widthOfCharacters all missing.

If this is something that needs to be fixed, I think I can take some time to first add stubs for everything that's missing, implement whatever functionality that urgently needs to be implemented, then create a PR. Please let me know.

lunabunn avatar Nov 24 '19 20:11 lunabunn

Yes, this backend makes little sense to support, it designed to have only g2 support with separated implementation on swing api. I updated it once some months ago, but only one useful idea is can be fast haxe sys api tests on it (like canvas-based file manager).

RblSb avatar Nov 24 '19 20:11 RblSb

Ok, so it's just not maintained. It's not like I'm gonna use Java backend, and it seems no one else is either, so won't waste my time trying to fix it up. Do you think it'd be worth it to leave this issue open, just in case someone else tries to compile to Java target and it doesn't work?

lunabunn avatar Nov 24 '19 21:11 lunabunn

Will see what Robert says, maybe he want to remove this backend at all.

RblSb avatar Nov 24 '19 21:11 RblSb

Yes, keep the issue open. The Java backend, like the WPF backend, makes sense for integrating Kha components into Java programs but AFAIK currently nobody is using it.

RobDangerous avatar Nov 24 '19 23:11 RobDangerous

it would be interesting to be able to use the java backend for android rather than CPP backend

sangohan avatar Dec 27 '19 00:12 sangohan

Android-java has performance problems like https://github.com/Kode/Kha/issues/1051 and something about audio support, so it's pretty useless. You can checkout android-hl for faster debug builds from scratch.

RblSb avatar Dec 27 '19 01:12 RblSb