PlasticRelease Notes
Plastic is a support library that aids Fantom-Factory Ltd in the development of other libraries, frameworks and applications. Though you are welcome to use it, you may find features are missing and the documentation incomplete.
v1.1
v1.1.8
- Chg: Removed dependency on BeanUtils.
- Chg: Added
toStr()methods to model classes.
v1.1.6
- Chg: A default it-block ctor is not added if class has a superclass.
v1.1.4
- New:
afPlasticnow available as a SkySpark extension.
v1.1.2
- New:
PlasticCompiler.compileCodeToPodFile()creates pod files. - New:
PlasticCompiler.podBaseNamefield for default pod names. - New:
PlasticCompiler.compileCode()now takes an optionalsrcCodeLocationparameter. - Chg: Made better use of
StrBufswhen generating Fantom code.
v1.1.0
- New: Can override ctors.
- Chg: Tweaked
SrcCodeErrand addedlinesOfPadding. (Breaking change.) - Chg: Added a non-invasive module for use with IoC v3.
- Chg: Gave Plastic a dependency on
compilerJavaso it ships with a default (and most common) FFI bridge. - Chg: Ctors may call
superctors. - Chg: Guessing param defaults for method overrides now makes use of
Method.paramDef(...)from Fantom 1.0.68. - Bug:
PlasticCompilercould not wrap aCompilerErrwith anullline number.
v1.0
v1.0.18
- Bug: Java types could not be used as fields or method return types. See BitBucket Issue: Error using java class
- Bug: Fields could not have
getandsetbodies with an initial value.
v1.0.16
- Bug: Fix for null values in facets. See Compilation Err when using Facet with null value.
v1.0.14
- New:
Plasticnow attempts to guess the default values for overridden methods. - New: Compiled Pod code is logged at debug level.
- Chg: Now depends on Bean Utils for guessing the default values.
v1.0.12
- New: Added
PlasticCompiler.compileModels()for compiling multiple models at once. - Chg: Deprecated
PlasticClassModel.extendClass()andPlasticClassModel.extendMixin()in favour of a singleextend()method. - Chg: Exposed the lists in
PlasticClassModel.
v1.0.10
- New: Added
PlasticUsingModel.
v1.0.8
- Chg:
PlasticClassModel.mixinsonly returns the lowest subclass mixins - see Mixin Inheritance Order Bug.
v1.0.6
- New: Added
PlasticFacetModelto classes, ctors, methods and fields. - New: Added
PlasticClassModel.hasField(Str name)
v1.0.4
- New: Fields can have init values.
- Chg: the
PlasticClassModeladd methods now return sub-model classes. - Chg: Fantom compilation is silent to reduce noise on std out. We raise afPlastic Errs in event of a compilation failure.
- Bug: Fields can not be const if they have a getter.
v1.0.2
- New: Added ctor models.
- New: Updates to ensure backwards compatibility with IoC.
- Chg: Made
PlasticCompiler.srcCodePaddingmutable so it may be (re)set byafBedSheet. - Chg: Added
msg()to SrcCodeErr so Err msgs can be reported. - Bug: The wrong compilation line could be reported in
PlasticErr.toStr()