support for volatile

This commit is contained in:
Alex Tkachman
2012-01-31 12:21:18 +02:00
parent 2826db7d9a
commit 27425c5851
4 changed files with 37 additions and 0 deletions
@@ -76,6 +76,9 @@ public class PropertyCodegen {
if (!propertyDescriptor.isVar()) {
modifiers |= Opcodes.ACC_FINAL;
}
if(state.getStandardLibrary().isVolatile(propertyDescriptor)) {
modifiers |= Opcodes.ACC_VOLATILE;
}
v.newField(p, modifiers, p.getName(), state.getTypeMapper().mapType(propertyDescriptor.getOutType()).getDescriptor(), null, value);
}
}