Skip to content

Commit

Permalink
build: Apache groovy 4.0.9 (micronaut-projects#8784)
Browse files Browse the repository at this point in the history
without `@CompileDynamic`

```
 [Static type checking] - Non-static method java.lang.Object#hashCode cannot be called from static context
 @ line 99, column 16.
           return visitor.getClass().hashCode()
                  ^
```
  • Loading branch information
sdelamo authored Feb 16, 2023
1 parent 74e32c1 commit 80a8749
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ wiremock = "2.33.2"
# Versions which start with managed- are managed by Micronaut in the sense
# that they will appear in the Micronaut BOM as <properties>
#
managed-groovy = "4.0.6"
managed-groovy = "4.0.9"
managed-jakarta-annotation-api = "2.1.1"
managed-jackson = "2.14.0"
managed-jackson-databind = "2.14.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package io.micronaut.ast.groovy.visitor

import groovy.transform.CompileDynamic
import groovy.transform.CompileStatic
import io.micronaut.core.annotation.AnnotationMetadata
import io.micronaut.core.annotation.Internal
Expand Down Expand Up @@ -94,6 +95,7 @@ class LoadedVisitor implements Ordered {
return true
}

@CompileDynamic
@Override
int hashCode() {
return visitor.getClass().hashCode()
Expand Down
5 changes: 5 additions & 0 deletions src/main/docs/guide/introduction/whatsNew.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
//Micronaut {version} includes the following changes:
== 4.0.0

=== Apache Groovy 4.0

Micronaut Framework 4.x supports https://groovy-lang.org/releasenotes/groovy-4.0.html[Apache Groovy 4.0].

=== Core Changes


* <<virtualThreads, Support for Virtual Threads>>

==== Injection of Maps
Expand Down

0 comments on commit 80a8749

Please sign in to comment.