From fe11a60154babcec2b99acb3ebf59e35d7d22312 Mon Sep 17 00:00:00 2001 From: Stelios Voutsinas Date: Thu, 30 Nov 2023 19:32:18 +0200 Subject: [PATCH] Increase timeout / unsignedByte as string --- src/tap/TAPSyncJob.java | 4 ++-- src/tap/formatter/VOTableFormat.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tap/TAPSyncJob.java b/src/tap/TAPSyncJob.java index 67983060..11bbe1f4 100644 --- a/src/tap/TAPSyncJob.java +++ b/src/tap/TAPSyncJob.java @@ -66,10 +66,10 @@ public class TAPSyncJob { /** Ultimate execution duration (in milliseconds) to use if not a single * alternative for this duration can be found. * @since 2.4 */ - protected final long MAX_DURATION_FALLBACK = 10000; + protected final long MAX_DURATION_FALLBACK = 100000; /** The time (in ms) to wait the end of the thread after an interruption. */ - protected long waitForStop = 1000; + protected long waitForStop = 10000; /** Last generated ID of a synchronous job. */ protected static String lastId = "S" + System.currentTimeMillis() + "A"; diff --git a/src/tap/formatter/VOTableFormat.java b/src/tap/formatter/VOTableFormat.java index 39d5e018..66817885 100644 --- a/src/tap/formatter/VOTableFormat.java +++ b/src/tap/formatter/VOTableFormat.java @@ -693,7 +693,7 @@ protected static final Class getDatatypeClass(final VotDatatype datatype, fin case SHORT: return isScalar ? Short.class : short[].class; case UNSIGNEDBYTE: - return isScalar ? Short.class : short[].class; + return isScalar ? String.class : String.class; case CHAR: case UNICODECHAR: default: /* If the type is not know (theoretically, never happens), return char[*] by default. */