Skip to content

IntelliJ incorrectly sees projects as Java 8 modules #126

Open
@Camotoy

Description

@Camotoy

As of this commit: GeyserMC/Geyser@a72e495, I can verify three different Linux computers read the Geyser project as Java 8. Gradle still correctly compiles to Java 16.

Reproduced on IntelliJ versions 2021/2022/2023.

To reproduce should be as simple as cloning the Geyser repository, finding a record class, and noting how IntelliJ doesn't process the class correctly.

Here's the output of uname -a on my current computer:
Linux HOSTNAME 6.2.6-76060206-generic #202303130630~1679424972~22.04~4a8cde1 SMP PREEMPT_DYNAMIC Tue M x86_64 x86_64 x86_64 GNU/Linux
And cat /etc/os-release:

NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

IntelliJ:

Build #IU-213.5744.223, built on November 27, 2021

Runtime version: 11.0.13+7-b1751.19 amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions