[root]/groovy/groovy-core/src/main/org/codehaus/groovy/runtime/typehandling
JAVADOC: remove some warnings
0 lines of code changed in:
GROOVY-644: partial fix; improved consistency for Set by adding flatten() and minus() and tweaking plus() to return a Set if working on a Set
7 lines of code changed in:
Initial fix for GROOVY-1549: handles e.g. Integer[] and int[] but not int[][]
22 lines of code changed in:
GROOVY-1647 Groovy Truth: empty CharSequence and empty array now evaluate to false
11 lines of code changed in:
move 'as List' out of MetaClassImpl, add tests
15 lines of code changed in:
fix for GROOVY-921: asType works for Maps not just Lists
OLD: [100, 200] as Dimension
NEW: [width:100, height:200] as Dimension
4 lines of code changed in:
* replaces all ClassCastException with a new class GroovyCastException, this reaplces TypeMisMatchException too
* centralizes the coercion
* setting a non existent property will now throw an Exception
* Exceptions thrown in property setter/getter methods are no longer ignored
* simplifies the property handlig code a bit
* corrects wrapping to InvokerInvocationException
* changes the GCL a bit to simplify custom Collector code
* removes setProperties as public method
* added boolean to castToType in DefaultTypeTransformation.java
40 lines of code changed in:
modified code to avoid CCE when testing a String and a Number for being equal
3 lines of code changed in:
patches for Groovy-748 (ensure files are closed), Groovy-1125 (intersect on Collection), Groovy-1141 (conversion from int to BigInteger), Groovy-1236 (unique on Collection), Groovy-1262 (NPE in MetaClassHelper), Groovy-1439 (use closure as for interface implementation), Groovy-1529 (use map of closures for interface implementation)
152 lines of code changed in:
MOP preparations: a new typehandling package contains now the number math classes and many methods from Invoker. ScriptBytecodeAdapter and InvokerHelper do now use these functions. The bytecode is changed to provide an additional "sender class" that can be used later for handling visibility. As part of the clean up AsmClassGenerator has been changed and got a unified way for method calling Object gained a iterator() method, that was before implicitly handled by Invoker.
The wrong property name for the conf file in GroovyStarter is corrected now. The error reporting has been adjusted to show exceptions better.
Interfaces of the kind "interface T{ T t}" are now possible and no longer resulting in class loading problems
1435 lines of code changed in: