mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 16:04:10 -08:00
Fix duplicate <clinit> execution in some cases when accessing class through reflection
This commit is contained in:
parent
d2aa37d6a4
commit
52ddd96c7d
|
@ -447,6 +447,7 @@ public class Renderer implements RenderingManager {
|
|||
|
||||
private void renderEraseClinit(ClassNode cls) throws IOException {
|
||||
writer.appendClass(cls.getName()).append("_$callClinit").ws().append("=").ws()
|
||||
.appendClass(cls.getName()).append(".$clinit").ws().append("=").ws()
|
||||
.append("function(){};").newLine();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user