[root]/groovy/groovy-core/src/test/groovy/notworking
Made notworking 'test' into a working example as it wasn't really a test anyway
0 lines of code changed in:
updated the test cases to use JSR parser syntax
0 lines of code changed in:
Used "this" notation for Strings when outputting to the console.
Also added more test cases that demonstrate bugs folks have found the last few days
127 lines of code changed in:
A fix for GROOVY-7 at last! Who-hoo we can release beta-1 real soon.
Basically the 'property' keyword is now deprecated (though we'll continue to support it up until 1.0 proper release)
Now there is no difference between a property & field; they're essentially the same thing. Also property initializers now work fine.
0 lines of code changed in:
Apologies for the monster commit everyone - was stuck travelling for 24 hours so had heaps of time to hack groovy - without WiFi in Houston or Gatwick :(
here's a summary of the changes
* refactored the MetaClass method invocation code to be much cleaner (no List and Object[] crap) the dispatcher can now handle overloading of 1 type of a multi-arg list.
* fixed bad exception message when exceptions occur inside a closure which lead to a wierd exception message that was very confusing (due to an exception being wrapped). Added a test case to demonstrate this now works fine.
* added a NoSuchMethodException for better exception
* added better error checking validation messages & exceptions for bad class names & known properties & methods.
* attempted to tidy up the line numbers when exceptions occur; its not totally working yet :)
* tidied up class resolving code so that classpath & compile unit class resolutions work much cleaner.
* uncommented a bunch of test cases. If you search for @todo in the *.groovy files you'll often see little bits of tests that are commented out until some issue with the parser or runtime is sorted out.
* the while() loop appears to be working now
2 lines of code changed in:
Refactored the test cases to take out semicolons and to remove package statements.
Also started to use Object.println() rather than System.out.println() throughout the test cases
115 lines of code changed in:
Moved the GroovyTestCase into the core groovy.lang package (since the primary use case for Groovy to start with is writing unit test cases). We could move this to groovy.test later on maybe.
Also I've updated the copyright notice to be to myself and bob
1 lines of code changed in:
added more test cases
12 lines of code changed in:
tidied up test cases adding new map tests (commented out so far
6 lines of code changed in:
got iterations working finally! also commented out the LocalFieldTest
0 lines of code changed in:
added more details to failing field test
4 lines of code changed in:
reimported code to fix binary issue
119 lines of code changed in: