You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ad...@apache.org on 2023/02/02 13:22:41 UTC
[jackrabbit-oak] branch trunk updated: OAK-10101 - Improve exception message when retrieving String properties (#840)
This is an automated email from the ASF dual-hosted git repository.
adulceanu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push:
new aa492521af OAK-10101 - Improve exception message when retrieving String properties (#840)
aa492521af is described below
commit aa492521af6bbe6f3bc3a75e6044d568f42ed5ed
Author: Andrei Dulceanu <du...@users.noreply.github.com>
AuthorDate: Thu Feb 2 15:22:34 2023 +0200
OAK-10101 - Improve exception message when retrieving String properties (#840)
---
.../java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java
index ebf2e6bb26..a6e5e34f8b 100644
--- a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java
+++ b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java
@@ -189,7 +189,8 @@ class SegmentDataV12 implements SegmentData {
return new StringData(internalReadRecordId(index + Long.BYTES), (int) length);
}
- throw new IllegalStateException("String is too long: " + length);
+ throw new IllegalStateException("String is too long: " + length + "; possibly trying to read a "
+ + "BLOB using getString; can not convert BLOB to String");
}
private StringData internalReadString(int index, int length) {