GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 建议在APIJSON中定义 UnsupportedDataTypeException 类代替 javax.activation.UnsupportedDataTypeException · Issue #488 · APIJSON/APIJSON

建议在APIJSON中定义 UnsupportedDataTypeException 类代替 javax.activation.UnsupportedDataTypeException #488

New issue
Copy link
New issue
Copy link
Closed
#489
Closed
建议在APIJSON中定义 UnsupportedDataTypeException 类代替 javax.activation.UnsupportedDataTypeException#488
#489
Copy link
Labels
help wanted请求帮助请求帮助

Description

@cnscoo
cnscoo
opened on Dec 14, 2022
Issue body actions

Description

原因

APIJSON 代码里面引用了 javax.activation.UnsupportedDataTypeException 类,对应的包是 javax.activation:activation:1.1.1,最近有个项目用的是JDK17,JDK17中对应的包和类前缀均改为了jakarta,而 APIJSON 引用这个包唯一用到的就是 javax.activation.UnsupportedDataTypeException,所以建议在 APIJSON 中定义一个 UnsupportedDataTypeException 类代替 javax.activation.UnsupportedDataTypeException 类。

操作

  • 将 javax.activation.UnsupportedDataTypeException 类复制一份到 APIJSON 的 apijson.orm.exception 包里面去
  • 将 APIJSON 中对javax.activation.UnsupportedDataTypeException的引用全部替换为apijson.orm.exception.UnsupportedDataTypeException
  • 移除 APIJSON 的 pom.xml 文件中的 javax.activation:activation:1.1.1 依赖。

好处

  • 可以不用再考虑对JavaEE和Jakarta的不兼容
  • 减少依赖包
Reacted by TommyLemon

Activity

  1. TommyLemon commented on Dec 14, 2022

    @TommyLemon
    TommyLemon
    on Dec 14, 2022
    Member
    More actions

    赞,很好的建议,感谢反馈问题和建议。
    如果能帮忙贡献下代码就更好了,开源要大家一起参与贡献才会更美好~
    image

    提 PR 贡献代码的步骤可参考:
    https://github.com/Tencent/APIJSON/blob/master/CONTRIBUTING.md#%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E5%AE%9A%E8%A6%81%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81

  2. TommyLemon
    added
    help wanted请求帮助请求帮助
    on Dec 14, 2022
  3. TommyLemon
    closed this as completedin #489on Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted请求帮助请求帮助

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.