Skip to content

Remove deprecated primitive wrapper constructor usage #8257

Closed
1 of 1 issue completed
Closed

Description

@mbien

Primitive wrapper constructors like new Integer("5") are deprecated for removal.

Activity

  1. added
    Code cleanupLabel for cleanup done on the Netbeans IDE
    Upgrade JDKUpgrade to the JDK requirements of a module.
    on Feb 18, 2025
  2. added
    Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
    on Feb 18, 2025
  3. mbien commented on Sep 9, 2025

    @mbien
    MemberAuthor

    this might no longer be a priority:
    https://bugs.openjdk.org/browse/JDK-8354335

    although even if the constructors would remain the object identity would be likely still gone, so the refactoring to valueOf() was likely still a useful step.

  4. neilcsmith-net commented on Sep 9, 2025

    @neilcsmith-net
    Member

    Absolutely still a useful step, and probably just as much a priority IMO. Making sure we handle all the cases where we have behaviour that relies on object identity is still really important. This helps ensure we've done that. I'm not sure I like the plan for new not to mean new - it muddies the water too much.

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

    Code cleanupLabel for cleanup done on the Netbeans IDEJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)Upgrade JDKUpgrade to the JDK requirements of a module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions