Does not write a static constructors only because it has a replacement.

This commit is contained in:
Volker Berlin 2020-04-26 20:28:40 +02:00
parent 7eb0406db8
commit 6e9ea1f1e8

View File

@ -258,7 +258,7 @@ class FunctionManager {
*/
@Nullable
Iterator<FunctionName> getWriteLaterClinit() {
return iterator( entry -> entry.getKey().methodName.equals( "<clinit>" ) );
return iterator( entry -> entry.getKey().methodName.equals( "<clinit>" ) && entry.getValue().state != State.None );
}
/**