You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2022/01/25 18:19:24 UTC

[groovy] branch GROOVY-5001 updated (2c88b3d -> 15d32c6)

This is an automated email from the ASF dual-hosted git repository.

emilles pushed a change to branch GROOVY-5001
in repository https://gitbox.apache.org/repos/asf/groovy.git.


    from 2c88b3d  GROOVY-5001, GROOVY-5491, GROOVY-6144: map property precedence
     add 66bb24a  GROOVY-10232: Massive increase in memory usage due to CacheableCallSite
     add 4f27d36  Trivial tweak: align indy threshold with JIT threshold
     add 019d9b3  documentation: finish builder TBDs
     add d604446  bump Groovy version in master
     add cfb6124  documentation: finish builder TBDs
     add 36d2c3b  GROOVY-4266: stubgen: only write static imports
     add 3f39cb3  GROOVY-10444: Bump javaparser to 3.24.0
     add a52e698  GROOVY-6837: prep work
     add 33d88ef  GROOVY-10445: Bump Spotbugs/Spotbugs annotations to 4.5.3 (build dependency)
     add 599e22d  GROOVY-10446: Bump logback to 1.2.10 (test dependency)
     add 5cbdf15  GROOVY-10447: Bump checkstyle to 9.2.1 (build dependency)
     add d1a4d94  GROOVY-5169: JSON output: exclude non-public properties
     add 08982d3  GROOVY-7682, GROOVY-8371: JSON output: exclude static properties
     add 801aca8  GROOVY-5169 (pt.2): JSON output: include field-based properties
     add d8a529b  minor rewording (thanks to @chagmed on twitter)
     add b832d87  update verification metadata
     add 049c16d  GROOVY-10448: Bump gradle versions plugin to 0.41.0 (build dependency)
     add bc4f802  source range for `void` return type
     add 72eabf2  reuse sample
     add ea62d51  reinstate deleted comment explaining dependency requirement
     add eecdb29  GROOVY-6837: String[] + String[] gives Object[]
     add bbbbeaf  Merge branch 'groovy6837'
     add 4b7725c  GROOVY-5169: exclude synthetic fields
     add 4856c53  GROOVY-10449: Include public fields in the list of properties returned by MetaClassImpl#getProperties()
     add 68891a0  remove deprecated methods for Groovy 5
     add b18a8df  add some javadoc
     add f72dcbe  GROOVY-10451: Sealed classes incorrectly allow a self-reference in the permitted subclasses
     add cb581fb  GROOVY-10452: Bump slf4j to 1.7.33 (test dependency)
     add 89eb25c  GROOVY-10453: Bump jqwik to 1.6.3 (test dependency)
     add 459512f  GROOVY-5358: getProperty, setProperty, invokeMethod from category method
     add 1658103  GROOVY-5358: getProperty, setProperty, invokeMethod from category method (additional test case)
     add 78247f9  GROOVY-10434: ClassNode isSealed() refactoring: mark methods @Incubating, move sealed detection to an earlier phase and fix redirect issue
     add b7a0fd6  GROOVY-10456: Inconsistent exception upon accessing empty property
     add 92ea8d9  GROOVY-7033: visit AIC's field, method, and parameter annotations
     add 6d04422  GROOVY-7033: slight tweak to test
     add da55697  GROOVY-7033: slight tweak to test (check TYPE_USE case also)
     add 3bbb165  GROOVY-10463: Add equals() and hashCode() methods to ImportNode
     add 311afc6  GROOVY-10463: Add equals() and hashCode() methods to ImportNode (fix hashCode caching)
     add f774766  GROOVY-6363: add test case
     add 7fb4b98  GROOVY-10457: support `@CompileStatic` class with `@CompileDynamic` ctor
     add bcfd3ba  GROOVY-10434: ClassNode isSealed() refactoring (additional test)
     add c8f482e  GROOVY-10434: ClassNode isSealed() refactoring (additional test)
     add de88bf2  GROOVY-6277: SC: prefer accessible field over inaccessible getter method
     add 3c37c58  GROOVY-8433: Category transform implies static methods
     add 3eac9fb  GROOVY-10434: ClassNode isSealed() refactoring: hide implementation details about sealed native/annotation flags
     add f1da776  GROOVY-10434: ClassNode isRecord() refactoring: additional clarification when information will be available
     add c63c466  GROOVY-6363: allow category to override private method of self-type impl
     add 15d32c6  Merge branch 'master' into GROOVY-5001

No new revisions were added by this update.

Summary of changes:
 build.gradle                                       |   2 +-
 gradle.properties                                  |   4 +-
 gradle/verification-metadata.xml                   |  14 +-
 src/main/java/groovy/lang/MetaClassImpl.java       |  82 +++---
 src/main/java/groovy/transform/Sealed.java         |   4 +-
 .../apache/groovy/parser/antlr4/AstBuilder.java    |   6 +-
 .../java/org/codehaus/groovy/ast/ClassNode.java    |  33 ++-
 .../java/org/codehaus/groovy/ast/ImportNode.java   |  49 ++++
 .../groovy/classgen/AsmClassGenerator.java         |  45 ++-
 .../groovy/classgen/InnerClassVisitor.java         |   5 +-
 .../groovy/classgen/VariableScopeVisitor.java      |  11 +-
 .../org/codehaus/groovy/classgen/Verifier.java     |  38 +--
 .../classgen/asm/sc/StaticTypesCallSiteWriter.java |  12 +-
 .../groovy/control/messages/LocatedMessage.java    |   2 +-
 .../groovy/runtime/DefaultGroovyMethods.java       | 317 ++++++++++++++++-----
 .../runtime/DefaultGroovyMethodsSupport.java       |   7 +-
 .../groovy/tools/javac/JavaStubGenerator.java      |  44 +--
 .../transform/RecordTypeASTTransformation.java     |  12 +
 .../groovy/transform/SealedASTTransformation.java  |  40 ++-
 .../SealedCompletionASTTransformation.java         |  81 ++++++
 .../transform/sc/StaticCompilationVisitor.java     |  57 ++--
 .../transform/stc/StaticTypeCheckingVisitor.java   |  26 +-
 .../groovy/vmplugin/v8/CacheableCallSite.java      |  28 +-
 .../codehaus/groovy/vmplugin/v8/IndyInterface.java |   4 +-
 src/spec/doc/core-domain-specific-languages.adoc   | 106 ++++++-
 src/spec/doc/core-metaprogramming.adoc             |  13 +-
 src/spec/test/builder/BuilderSpecTest.groovy       | 153 ++++++++++
 src/spec/test/metaprogramming/CategoryTest.groovy  |  20 ++
 src/test/gls/annotations/AnnotationTest.groovy     |  17 ++
 .../closures/AnnotationClosureTest.groovy          |  99 ++++---
 src/test/groovy/ClosureTest.groovy                 |   9 +-
 src/test/groovy/Property2Test.groovy               |  14 +-
 src/test/groovy/PropertyTest.groovy                |  12 +
 src/test/groovy/bugs/Groovy5358.groovy             | 112 ++++++++
 src/test/groovy/bugs/Groovy6932Bug.groovy          |   2 +-
 src/test/groovy/bugs/Groovy8060Bug.groovy          |   2 +-
 src/test/groovy/lang/CategoryAnnotationTest.groovy | 272 ++++++++++--------
 src/test/groovy/lang/MixinAnnotationTest.groovy    |  24 +-
 .../stc/FieldsAndPropertiesSTCTest.groovy          |  14 +
 .../antlr4/util/ASTComparatorCategory.groovy       |  26 +-
 .../classgen/asm/sc/CompileDynamicTest.groovy      |  40 ++-
 .../asm/sc/MixedModeStaticCompilationTest.groovy   |  14 +
 .../asm/sc/StaticCompileConstructorsTest.groovy    | 126 ++++----
 .../asm/sc/StaticCompileFlowTypingTest.groovy      |   2 +-
 .../CircularLanguageReferenceTest.groovy           |  12 +-
 .../groovy/transform/SealedTransformTest.groovy    |  41 +++
 .../groovy/groovy/console/ui/ObjectBrowser.groovy  |   5 +-
 .../console/ui/ScriptToTreeNodeAdapter.groovy      |  42 ++-
 .../groovy/jmx/builder/JmxMetaMapBuilder.groovy    |  38 +--
 subprojects/groovy-json/build.gradle               |  12 +-
 .../java/groovy/json/DefaultJsonGenerator.java     |  35 ++-
 .../groovy/json/DefaultJsonGeneratorTest.groovy    |   5 +
 .../test/groovy/groovy/json/JsonOutputTest.groovy  | 150 ++++++++--
 subprojects/groovy-test-junit5/build.gradle        |   2 +-
 versions.properties                                |  12 +-
 55 files changed, 1692 insertions(+), 662 deletions(-)
 create mode 100644 src/main/java/org/codehaus/groovy/transform/SealedCompletionASTTransformation.java
 create mode 100644 src/spec/test/builder/BuilderSpecTest.groovy
 create mode 100644 src/test/groovy/bugs/Groovy5358.groovy