Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(java): DeserializationException#getMessage call #1830

Conversation

yoohaemin
Copy link
Contributor

What does this PR do?

Fix failure on DeserializationException#getMessage

java.lang.StringIndexOutOfBoundsException: Range [311, 2) out of bounds for length 313
	at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source)
	at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source)
	at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source)
	at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source)
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Unknown Source)
	at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Unknown Source)
	at java.base/java.lang.AbstractStringBuilder.delete(Unknown Source)
	at java.base/java.lang.StringBuilder.delete(Unknown Source)
	at org.apache.fury.exception.DeserializationException.getMessage(DeserializationException.java:59)

Related issues

N/A

Does this PR introduce any user-facing change?

N/A

Benchmark

N/A

@yoohaemin yoohaemin changed the title fix(java): DeserializationException.getMessage call fix(java): DeserializationException#getMessage call Sep 7, 2024
Copy link
Collaborator

@chaokunyang chaokunyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks

@chaokunyang chaokunyang merged commit 15096f5 into apache:main Sep 7, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants