Skip to content

TWS 10.37.1m targets JDK 17 #331

@bsdice

Description

@bsdice

TWS stable offline version 10.37.1m released today targets no longer JDK 8 but 17:

class file has wrong version 61.0, should be 52.0

I use now

<javac srcdir="${src}" destdir="${target}/classes" release="17" includeantruntime="false">

together with

export JAVA_HOME=/usr/lib/jvm/java-17-openjdk

There is another deprecation warning

IBC/src/ibcalpha/ibc/CommandDispatcher.java:31: warning: [deprecation] getMenuShortcutKeyMask() in Toolkit has been deprecated [javac] private final static int SHORTCUT_MODIFIERS = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | KeyEvent.ALT_DOWN_MASK;

which I replaced with

private static final int SHORTCUT_MODIFIERS = Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx() | KeyEvent.ALT_DOWN_MASK;

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