diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b263a73d..2579b335 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@v1 with: - java-version: 11 + java-version: 17 - name: Build with Maven run: mvn -B package --file pom.xml - name: Upload geoscript-groovy.zip diff --git a/pom.xml b/pom.xml index 97835588..e07ef419 100755 --- a/pom.xml +++ b/pom.xml @@ -375,6 +375,10 @@ 1.8 1.8 groovy-eclipse-compiler + + --add-exports + java.desktop/sun.awt.image=ALL-UNNAMED + @@ -396,6 +400,7 @@ once @{argLine} -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=1024m + @{argLine} --add-exports java.desktop/sun.awt.image=ALL-UNNAMED true diff --git a/src/main/groovy/geoscript/filter/Color.groovy b/src/main/groovy/geoscript/filter/Color.groovy index 75c8ae35..3dae06bf 100644 --- a/src/main/groovy/geoscript/filter/Color.groovy +++ b/src/main/groovy/geoscript/filter/Color.groovy @@ -345,7 +345,7 @@ class Color extends Expression { int r = color[0].toInteger() int g = color[1].toInteger() int b = color[2].toInteger() - int a = color.size > 3 ? color[3].toInteger() : 0 + int a = color.size() > 3 ? color[3].toInteger() : 0 return new java.awt.Color(r, g, b, a) } // RGB as Map [r:255,g:255,b:0,a:125]