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

Index out of bounds error in globGicName[0] of the com.fasterxml.jackson.databind.util.ArrayBuilders.BooleanBuilder class. #936

Open
3 tasks done
hl9565 opened this issue Oct 30, 2024 · 1 comment

Comments

@hl9565
Copy link

hl9565 commented Oct 30, 2024

Contact Details

No response

Version

3.0.8

Plugin

smart-doc-maven-plugin

Build tool version

maven 3.6.3

Jdk version

1.8

Describe the bug (Bug描述,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

In the JsonBuildHelper class at line 476, the code String gicName = genericMap.get(subTypeName) == null ? globGicName[0] : genericMap.get(subTypeName); is causing an ArrayIndexOutOfBoundsException because globGicName has a length of 0, and the typeName is com.fasterxml.jackson.databind.util.ArrayBuilders.BooleanBuilder. I don’t know how to obtain the remaining information.

Expected Behavior (您期望的结果,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

1

Current Behavior (当前结果,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

1

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码。社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

In my project, it occurs consistently, but I don’t know the reason.

Possible Solution (Bug解决建议,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

No response

Context (Bug影响描述,社区已开启国际化推广,请用文心一言、讯飞星火等辅助翻译成英文,减少社区开发者的工作)

No response

Validations

  • Check if you're on the latest smart-doc version. (请检查是否为最新版本)
  • Read the docs. (请先阅读官方文档)
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. (检查是否存在报告相同错误的问题,以避免产生重复)
@linwumingshi
Copy link
Collaborator

linwumingshi commented Oct 30, 2024

@hl9565 Thanks for your issue! Please provide a minimal sample application that reproduces the problem for faster issue triage. We also warmly welcome pull requests (PR) for collaborative development.

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

No branches or pull requests

2 participants