This is an automated email from the ASF dual-hosted git repository. sunlan pushed a change to branch GROOVY-9272 in repository https://gitbox.apache.org/repos/asf/groovy.git.
omit df0fce5 GROOVY-9272: Support switch expression add 85a62d6 formatting and tweak to comment add 84b03c4 GROOVY-10102: trait SelfType: continue checking self type for self types add 1265aca GROOVY-9985, GROOVY-9994, GROOVY-10111: STC: check array sizes and values (not like cast) add c36c8bf GROOVY-10110: AST browser should show additional information add 2c6c2e3 GROOVY-5204: add test case add 7d21ac4 GROOVY-5364: find static members from static script methods add 03a9401 GROOVY-5423: add test case add 8eddbe2 GROOVY-5441: add test cases new d588d52 GROOVY-9272: Support switch expression This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (df0fce5) \ N -- N -- N refs/heads/GROOVY-9272 (d588d52) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../groovy/ast/expr/MapEntryExpression.java | 5 +- .../groovy/classgen/VariableScopeVisitor.java | 6 +- .../transform/stc/StaticTypeCheckingVisitor.java | 22 ++-- .../codehaus/groovy/transform/trait/Traits.java | 46 ++++---- src/test/gls/generics/GenericsUsageTest.groovy | 17 +++ src/test/groovy/bugs/Groovy5364.groovy | 104 +++++++++++++++++ .../bugs/{Groovy4349.groovy => Groovy5423.groovy} | 69 ++++++----- .../stc/ArraysAndCollectionsSTCTest.groovy | 40 ++++++- src/test/groovy/transform/stc/BugsSTCTest.groovy | 57 +++++++-- .../groovy/transform/DelegateTransformTest.groovy | 20 ++++ .../console/ui/ScriptToTreeNodeAdapter.groovy | 129 ++++++++++++--------- .../console/ui/ScriptToTreeNodeAdapterTest.groovy | 61 ++++++---- 12 files changed, 422 insertions(+), 154 deletions(-) create mode 100644 src/test/groovy/bugs/Groovy5364.groovy copy src/test/groovy/bugs/{Groovy4349.groovy => Groovy5423.groovy} (53%)