mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00:14:10 -08:00
Call <clinit> from native System.currentTimeMillis
This commit is contained in:
parent
945a0fee9d
commit
99812d1bfa
|
@ -84,6 +84,7 @@ public class SystemNativeGenerator implements Generator, DependencyPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void generateCurrentTimeMillis(SourceWriter writer) throws IOException {
|
private void generateCurrentTimeMillis(SourceWriter writer) throws IOException {
|
||||||
|
writer.append(writer.getNaming().getNameFor("java.lang.System")).append("_$callClinit();").softNewLine();
|
||||||
writer.append("return Long_fromNumber(new Date().getTime());").softNewLine();
|
writer.append("return Long_fromNumber(new Date().getTime());").softNewLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user