jagrosh / jagrosh/MusicBot

[Feature Request] Update JDK from 11 to 26

Open
#1,862 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
5.8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem? Please describe.

JDK 11 is just outdated af, accept it man, you need to upgrade your knownledge to JDK 26

### What is your ideal solution to the problem?

JDK 11 is pretty outdated for several reasons. If you want to know them, you can look them up on Google.

## Key Syntax Upgrades Since JDK 11

* **Records (JEP 395):** A compact, easily readable syntax for immutable data carriers, replacing boilerplate `equals()`, `hashCode()`, and getter methods.
* **Pattern Matching for `instanceof` (JEP 394):** Eliminates the need for explicit casting after checking an object's type.
* **Switch Expressions (JEP 361):** Improved `switch` statements that can return values and remove the need for error-prone `break` statements.
* **Text Blocks (JEP 378):** Multi-line string literals that preserve formatting exactly as written, removing the need for clunky string concatenation.
* **Sequenced Collections (JEP 431):** Standardized interfaces for accessing the first and last elements of collections sequentially (e.g., `List` or `Deque`).

**Source:** Google AI Review (lol)

### How would this feature be used?

uuhhmmm idk what to write, it is a JDK Upgrade with many breaking changes ig

### Additional Info

_No response_

### Checklist

- [x] I have checked [the documentation](https://jmusicbot.com/) to make sure this feature doesn't already exist
- [x] I have searched for [similar feature requests](https://github.com/jagrosh/MusicBot/labels/enhancement)
- [x] I have confirmed that my requests is **not** on the [list of things that will not be added](https://jmusicbot.com/things-that-wont-be-added)
- [x] I am running the latest version of the bot: ![Release](https://img.shields.io/github/release/jagrosh/MusicBot.svg)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or build entry points are named. Start by locating the repository's JDK 11 configuration and build process, then assess compatibility with JDK 26 and the listed language changes. Done should mean the project builds and its existing checks pass on JDK 26, with the upgrade scope and breaking changes resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.