From 81c3394805fa78169cb2004e51fcf8fde2c605e4 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 11 Sep 2024 09:28:25 +0200 Subject: [PATCH] [jOOQ/jOOQ#10880] Fix isNan(), isPositiveInfinity(), isNegativeInfinity() --- jOOQ/src/main/java/org/jooq/Decfloat.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/Decfloat.java b/jOOQ/src/main/java/org/jooq/Decfloat.java index 8065c883f8..1501038b5b 100644 --- a/jOOQ/src/main/java/org/jooq/Decfloat.java +++ b/jOOQ/src/main/java/org/jooq/Decfloat.java @@ -105,6 +105,7 @@ public final class Decfloat extends Number implements Data { * Check whether this value is the {@link Decfloat} equivalent of {@link Double#NaN}. */ public final boolean isNaN() { + parse(); return special == Special.NAN; } @@ -113,6 +114,7 @@ public final class Decfloat extends Number implements Data { * {@link Double#POSITIVE_INFINITY}. */ public final boolean isPositiveInfinity() { + parse(); return special == Special.POSITIVE_INFINITY; } @@ -121,6 +123,7 @@ public final class Decfloat extends Number implements Data { * {@link Double#NEGATIVE_INFINITY}. */ public final boolean isNegativeInfinity() { + parse(); return special == Special.NEGATIVE_INFINITY; }