sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 02/03: Note that BufferedImage.getTileGridOffset() bug (JDK-8166038) has been fixed in JDK 16.
Date Wed, 26 Aug 2020 12:59:59 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit 0d5a2190aaa8095f8c3053232453315e8b3f262b
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Mon Aug 24 10:16:33 2020 +0200

    Note that BufferedImage.getTileGridOffset() bug (JDK-8166038) has been fixed in JDK 16.
---
 .../java/org/apache/sis/coverage/grid/GridCoverage2DTest.java     | 2 +-
 .../sis-utility/src/main/java/org/apache/sis/util/Workaround.java | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/core/sis-feature/src/test/java/org/apache/sis/coverage/grid/GridCoverage2DTest.java
b/core/sis-feature/src/test/java/org/apache/sis/coverage/grid/GridCoverage2DTest.java
index 2869b98..72f29e6 100644
--- a/core/sis-feature/src/test/java/org/apache/sis/coverage/grid/GridCoverage2DTest.java
+++ b/core/sis-feature/src/test/java/org/apache/sis/coverage/grid/GridCoverage2DTest.java
@@ -64,7 +64,7 @@ public strictfp class GridCoverage2DTest extends TestCase {
      * <p>If JDK-8166038 is fixed, remove the {@code if (result.getTileGridXOffset()
== ix && ...)} test in
      * {@link GridCoverage2D#render(GridExtent)}.</p>
      */
-    @Workaround(library="JDK", version="14")
+    @Workaround(library="JDK", version="14", fixed="16")
     private static final boolean PENDING_JDK_FIX = false;
 
     /**
diff --git a/core/sis-utility/src/main/java/org/apache/sis/util/Workaround.java b/core/sis-utility/src/main/java/org/apache/sis/util/Workaround.java
index ff459bd..6d73f45 100644
--- a/core/sis-utility/src/main/java/org/apache/sis/util/Workaround.java
+++ b/core/sis-utility/src/main/java/org/apache/sis/util/Workaround.java
@@ -58,4 +58,12 @@ public @interface Workaround {
      * @return the library version on which the bug has been observed.
      */
     String version();
+
+    /**
+     * If the bug has been fixed, the version on which the fix has been applied.
+     * Otherwise an empty string.
+     *
+     * @return the library version on which the fix has been applied.
+     */
+    String fixed() default "";
 }


Mime
View raw message