[root]/groovy/groovy-core/src/test/org/codehaus/groovy/bsf
reformat test code
11 lines of code changed in:
CHECKSTYLE: remove unused imports
0 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
0 lines of code changed in:
improved coverage
154 lines of code changed in:
- made the build actually build
- fixed some bugs and missing def keywords
- commented some tests (like the standard jdk5 for loop) since it's been outlawed
- there seems to be some problem of exception thrown by antlr instead of CompilationFailedException
2 lines of code changed in:
updated the test cases to use JSR parser syntax
0 lines of code changed in:
test case and fix for GROOVY-311
12 lines of code changed in:
applied Peter Reilly's test case and fix for GROOVY-192 - thanks Peter!
9 lines of code changed in:
Appended another test in an attempt to reproduce this bug
http://www.jroller.com/page/gregorypierce/
35 lines of code changed in:
Patch to avoid exceptions when performing two eval() calls via BSF with the same source file name and different code
8 lines of code changed in:
test case and fix for GROOVY-88
1 lines of code changed in:
Added James Birchfield's patch to allow caching in the BSF integration.
We might wanna refactor more to combine the caching into GroovyClassLoader
127 lines of code changed in:
Fully working BSF engine including variable passing context etc.
Now rather than just Groovy scripts being put into the static main() method, the scripts now derive from Script, the code is in the run() instance method and the Script object can take a ScriptContext to allow variables to be passed into and out of the script.
This makes for easy BSF integration. It will also be useful for interactive shells too; the variables can be shared across script invocations. Indeed each script can be in its own classloader and only the ScriptContext shared.
96 lines of code changed in: