groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated (336baf0 -> ffae2ba)
Date Mon, 08 Apr 2019 12:58:52 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git.


    from 336baf0  Trivial refactoring: Remove duplicated branch in `switch` statement
     new eebbd65  GROOVY-9008: Prefactoring
     new b76af9e  Initial implementation of native method reference
     new 13449a6  Support type inference of method reference
     new 67edd2d  Minor refactor and prepare to infer parameter types of method reference
     new fdce379  Reuse the type inference of lambda expression
     new c3f4fd8  Create parameters of dynamic type for constructed lambda expression
     new 401427b  Minor refactor and improve robustness
     new 100db21  Clone the parameters to avoid impacting the original parameter type of SAM
     new 091c349  Support class::staticMethod, instance::instanceMethod and instance::staticMethod
     new 5aff9a7  Try to fix the failing build
     new df80aa3  Support class::new and arrayClass::new
     new c18fbf1  Handle types properly when using Java 9+
     new c8272f2  Support expression::instanceMethod and expression::staticMethod
     new d8aac4e  Simplify the prefix of synthetic method name
     new 8b4cccd  Choose method candidate
     new febc067  Support reference on the RHS
     new eb35c34  Add more tests for method reference and constructor reference
     new df5c8c6  Improve the robustness
     new 59630bd  Fix typo
     new ffae2ba  GROOVY-9008: add bytecode test

The 20 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:
 .../java/org/codehaus/groovy/ast/ClassNode.java    |  18 +-
 .../org/codehaus/groovy/ast/GroovyCodeVisitor.java |   5 +
 .../groovy/ast/expr/MethodPointerExpression.java   |   5 +-
 .../groovy/ast/expr/MethodReferenceExpression.java |  22 +-
 .../codehaus/groovy/ast/tools/ParameterUtils.java  |  21 +-
 .../groovy/classgen/AsmClassGenerator.java         |  17 +-
 .../codehaus/groovy/classgen/GeneratorContext.java |   9 +-
 .../groovy/classgen/asm/BytecodeHelper.java        |  13 +-
 .../groovy/classgen/asm/DelegatingController.java  |  10 +
 .../asm/MethodPointerExpressionWriter.java         |  48 +++
 .../asm/MethodReferenceExpressionWriter.java}      |  24 +-
 .../groovy/classgen/asm/WriterController.java      |  13 +
 .../asm/sc/AbstractFunctionalInterfaceWriter.java  | 117 ++++++
 ...icTypesBinaryExpressionMultiTypeDispatcher.java |   7 +-
 .../classgen/asm/sc/StaticTypesLambdaWriter.java   |  93 +----
 ...StaticTypesMethodReferenceExpressionWriter.java | 298 +++++++++++++++
 .../asm/sc/StaticTypesWriterController.java        |  12 +
 .../transform/stc/StaticTypeCheckingSupport.java   |  71 ++++
 .../transform/stc/StaticTypeCheckingVisitor.java   | 233 +++++++-----
 .../groovy/transform/stc/StaticTypesMarker.java    |   3 +-
 src/test/groovy/transform/stc/LambdaTest.groovy    |  15 +-
 .../transform/stc/MethodReferenceTest.groovy       | 401 +++++++++++++++++++++
 .../classgen/asm/sc/StaticCompilationTest.groovy   |  26 ++
 23 files changed, 1280 insertions(+), 201 deletions(-)
 create mode 100644 src/main/java/org/codehaus/groovy/classgen/asm/MethodPointerExpressionWriter.java
 copy src/{test/groovy/bugs/Groovy5210Bug.groovy => main/java/org/codehaus/groovy/classgen/asm/MethodReferenceExpressionWriter.java}
(63%)
 create mode 100644 src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionalInterfaceWriter.java
 create mode 100644 src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticTypesMethodReferenceExpressionWriter.java
 create mode 100644 src/test/groovy/transform/stc/MethodReferenceTest.groovy


Mime
View raw message