mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix class initializer optimization.
Assume that class initializer is dynamic if it initializes another class with dynamic initializer
This commit is contained in:
parent
238930bfc3
commit
06748fa12b
|
@ -289,6 +289,9 @@ public class ClassInitializerAnalysis implements ClassInitializerInfo {
|
|||
}
|
||||
|
||||
analyze(className);
|
||||
if (isDynamicInitializer(className)) {
|
||||
methodInfo.anyFieldModified = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void analyzeCalledMethod(MethodInfo calledMethod) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user