This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
new d1af9e595d fix asciidoc warnings
d1af9e595d is described below
commit d1af9e595da8ef7e22297c2e31b75a3bb59cdc68
Author: Paul King <[email protected]>
AuthorDate: Thu Apr 14 23:02:18 2022 +1000
fix asciidoc warnings
---
buildSrc/src/main/groovy/org.apache.groovy-asciidoctor.gradle | 3 +++
src/spec/doc/core-object-orientation.adoc | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/buildSrc/src/main/groovy/org.apache.groovy-asciidoctor.gradle
b/buildSrc/src/main/groovy/org.apache.groovy-asciidoctor.gradle
index aa55870661..a63e1b7e08 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-asciidoctor.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-asciidoctor.gradle
@@ -61,6 +61,9 @@ asciidoctor {
from("$buildDir/tmp/asciidoctor-assets")
into 'assets'
}
+ forkOptions {
+ jvmArgs("--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED",
"--add-opens", "java.base/java.io=ALL-UNNAMED")
+ }
attributes 'source-highlighter': 'prettify',
groovyversion: groovyVersion,
'groovy-major-version': major,
diff --git a/src/spec/doc/core-object-orientation.adoc
b/src/spec/doc/core-object-orientation.adoc
index 37743b4a5e..0c261b6b50 100644
--- a/src/spec/doc/core-object-orientation.adoc
+++ b/src/spec/doc/core-object-orientation.adoc
@@ -244,7 +244,7 @@ Different forms of inheritance are supported:
* _implementation_ inheritance where code (methods, fields or properties) from
a <<superclass,superclass>> or from
one or more <<_traits,traits>> is reused by a child class
* _contract_ inheritance where a class promises to provide particular abstract
methods defined in a <<superclass,superclass>>,
-or defined in one or more <<_traits,traits>> or <<_interface,interfaces>>.
+or defined in one or more <<_traits,traits>> or <<interfaces,interfaces>>.
[[superclass]]
=== Superclasses
@@ -253,6 +253,7 @@ Parent classes share visible fields, properties or methods
with child classes.
A child class may have at most one parent class.
The `extends` keyword is used immediately prior to giving the superclass type.
+[[interfaces]]
=== Interfaces
An interface defines a contract that a class needs to conform to.