Changes:
[Alex Eagle <alex...@google.com>] Update tests to work with Guice'd code.
[Alex Eagle <alex...@google.com>] Wire up the interpreter using Guice, and also begin using Guice as the underlying injector used at runtime by the interpreter. The actual creation of objects still has a TODO, because it's not using that guice injector to create our runtime objects yet, but we are ready now.
[Alex Eagle <alex...@google.com>] Build noop objects using Guice, with an @Assisted Inject, so Guice creates the factories for us.
TODO: the noop objects want to know their class def, not the classloader - looks like a violation of Demeter's law. should refactor to pass their classdef instead.
[Alex Eagle <alex...@google.com>] Introduce a dependency from the interpreter on Guice
[Alex Eagle <alex...@google.com>] Visit BindingDeclarations before the block that they wrap.
------------------------------------------
A SCM change trigger started this job
[workspace] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n"
[workspace] $ hg pull -u hg.bundle
pulling from hg.bundle
searching for changes
adding changesets
adding manifests
adding file changes
added 5 changesets with 37 changes to 37 files
37 files updated, 0 files merged, 2 files removed, 0 files unresolved
[workspace] $ /bin/sh -xe /tmp/hudson15380.sh
+ buildr clean package
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/Doc.g>
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/Noop.g>
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/NoopAST.g>
Note: <http://jakeherringbone.com:8080/job/Noop/ws/core/target/generated/antlr/noop/grammar/antlr/NoopAST.java> uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
warning: there were deprecation warnings; re-run with -deprecation for details
one warning found
- allows the binding operator in a binding
- can appear as an anonymous binding block
- can appear as a named binding block
- can appear in a method declaration with a name
- can appear anonymously in a method declaration
- can appear in a unittest declaration with a name
- can appear anonymously in a unittest declaration
Run completed. Total number of tests run was: 7
All tests passed.
- should allow a return statement
- should allow chained property access on properties
- should allow a method call on implicit 'this'
- should allow calling a method on an identifier
- should allow method chaining
- should allow a method call on a property
- should allow a method call with arguments
Run completed. Total number of tests run was: 7
All tests passed.
line 1:10 mismatched input '{' expecting '('
- should fail to parse a class with no parenthesis
- should parse a class with no parameters
- should parse a class with one parameter
- should parse a class with multiple parameters
- should allow modifiers on the parameters
- should allow an implements clause with one interface
- should allow an implements clause with several interfaces
- should allow the native modifier on a class
Run completed. Total number of tests run was: 8
All tests passed.
- should be able to parse a single line comment
- should be able to parse a multi-line comment
- should be able to parse nested comments
- should allow tab characters to appear in the source
Run completed. Total number of tests run was: 4
All tests passed.
- should appear before a class definition, in a string literal
- should appear before a method declaration
Run completed. Total number of tests run was: 2
All tests passed.
- should parse a variable assignment
- should parse arithmetic
Run completed. Total number of tests run was: 2
All tests passed.
- should allow the word 'test' as a package name
- should parse namespace declaration
- should allow import in default namespace
- should parse import statements
line 1:16 mismatched input ';' expecting '.'
line 0:-1 no viable alternative at input '<EOF>'
- should not allow import without a type on the end
- should parse a realistic looking file header
- should not allow extra stuff after the class definition
Run completed. Total number of tests run was: 7
All tests passed.
- should parse correctly equality expression on two literals
- should parse correctly an inequality expression on two literals
- should parse correctly an inequality expression followed by an or'ed equality expression on literals
- should parse correctly an inequality expression followed by an and'ed equality expression on literals
- should parse correctly complex conditional with or and and primaries
- should parse correctly greater than conditional
- should parse correctly lesser than conditional
- should parse correctly greater than or equal conditional
- should parse correctly lesser than or equal conditional
- should parse regular expression
Run completed. Total number of tests run was: 10
All tests passed.
- should parse an interface with no methods
- should parse an interface with one method
line 1:41 mismatched input '{' expecting ';'
line 1:49 mismatched input '=' expecting '('
- should not parse an interface with a method having a body
Run completed. Total number of tests run was: 3
All tests passed.
- should parse an import as interpretable
- should parse a class definition as interpretable
- should parse a variable declaratian as interpretable
- should parse several statements at once
Run completed. Total number of tests run was: 4
All tests passed.
- should parse integer literals
- should parse a string literal
- should parse a multi-line string literal
line 1:13 mismatched character '\n' expecting '"'
line 2:10 mismatched character '<EOF>' expecting '"'
line 1:4 no viable alternative at input '='
line 1:4 no viable alternative at input '='
- should not allow a single-double-quoted string to span lines
- should parse boolean literals
Run completed. Total number of tests run was: 5
All tests passed.
- should be formed with a while statement
- should be formed with a for-in statement
- should allow an existing identifier to be the loop variable
- should allow a c-style loop with explicit initialization, termination, and iteration expressions
Run completed. Total number of tests run was: 4
All tests passed.
- should parse a method with no parameters
- should parse a method with parameters
- should allow variable declaration without an initial value
- should parse a method invocation on a parameter reference
- should parse a method with a return statement
- should allow the native modifier on a method
- should parse a method with one return type (no parentheses)
- should parse a method with one return type (parentheses)
- should parse a method with multiple return types
line 1:21 extraneous input 'calculate' expecting '('
- should NOT parse a method with one named return parameter (no parentheses)
line 1:20 extraneous input 'a' expecting ')'
- should NOT parse a method with one named return parameter (parentheses)
line 1:25 missing ')' at 'b'
line 1:26 mismatched input ',' expecting '('
line 1:31 no viable alternative at input ')'
line 1:31 no viable alternative at input ')'
line 1:42 no viable alternative at input '('
line 1:42 no viable alternative at input '('
line 1:43 no viable alternative at input ')'
- should NOT parse a method with a mixture of named and unnamed return parameters
line 1:20 missing ')' at 'a'
line 1:21 mismatched input ',' expecting '('
line 1:27 no viable alternative at input 'b'
line 1:27 no viable alternative at input 'b'
line 1:28 no viable alternative at input ')'
line 1:39 no viable alternative at input '('
line 1:39 no viable alternative at input '('
line 1:40 no viable alternative at input ')'
- should NOT parse a method with multiple named return parameters
Run completed. Total number of tests run was: 13
All tests passed.
<http://jakeherringbone.com:8080/job/Noop/ws/core/src/main/antlr3/noop/grammar/antlr/NoopAST.g>: node from line 1:48 mismatched input 'List' expecting VariableIdentifier in statement
- should throw an exception if there's an error parsing the AST
Run completed. Total number of tests run was: 1
All tests passed.
- should parse a single property declaration
Run completed. Total number of tests run was: 1
All tests passed.
- should allow a unittest block in a class
line 1:25 missing '}' at 'unittest'
- should not allow a unittest block in a method
line 1:14 mismatched input 'test' expecting '}'
- should not allow a test block in a class
- should allow a test block in a file
- should allow a unittest block in a test block
- should allow a test block in a test block
line 1:0 no viable alternative at input 'unittest'
- should not allow a unittest block in a unittest block
- should have a 'should' operator
Run completed. Total number of tests run was: 8
All tests passed.
/tmp/hudson15380.sh: line 1: 2806 Segmentation fault buildr clean package
Archiving artifacts
------------------------------------------
Started by user aeagle
[workspace] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n"
[workspace] $ /bin/sh -xe /tmp/hudson15488.sh
/tmp/hudson15488.sh: line 1: 2838 Segmentation fault buildr clean package
Archiving artifacts
All tests passed.
/tmp/hudson15488.sh: line 1: 2838 Segmentation fault buildr clean package
Archiving artifacts
Sending e-mails to: noop...@googlegroups.com alex...@google.comUh.... :(
Finished: FAILURE