diff --git a/core/src/main/java/org/teavm/cache/DiskCachedClassHolderSource.java b/core/src/main/java/org/teavm/cache/DiskCachedClassHolderSource.java index e1aeed4c7..1ed20f574 100644 --- a/core/src/main/java/org/teavm/cache/DiskCachedClassHolderSource.java +++ b/core/src/main/java/org/teavm/cache/DiskCachedClassHolderSource.java @@ -303,7 +303,7 @@ public class DiskCachedClassHolderSource implements ClassHolderSource { output.writeInt(symbolTable.lookup(value.getEnumValue().getFieldName())); break; case AnnotationValue.FLOAT: - output.writeDouble(value.getFloat()); + output.writeFloat(value.getFloat()); break; case AnnotationValue.INT: output.writeInt(value.getInt()); diff --git a/tools/idea/jps-common/src/main/java/org/teavm/idea/jps/model/TeaVMJpsWorkspaceConfiguration.java b/tools/idea/jps-common/src/main/java/org/teavm/idea/jps/model/TeaVMJpsWorkspaceConfiguration.java index da8ceb373..515b0017b 100644 --- a/tools/idea/jps-common/src/main/java/org/teavm/idea/jps/model/TeaVMJpsWorkspaceConfiguration.java +++ b/tools/idea/jps-common/src/main/java/org/teavm/idea/jps/model/TeaVMJpsWorkspaceConfiguration.java @@ -20,6 +20,7 @@ import org.jetbrains.jps.model.ex.JpsElementBase; public class TeaVMJpsWorkspaceConfiguration extends JpsElementBase { private boolean daemonEnabled; + private int daemonMemory = 1024; private boolean incremental; public boolean isDaemonEnabled() { @@ -38,6 +39,14 @@ public class TeaVMJpsWorkspaceConfiguration extends JpsElementBase