Skip to content

Method reference lambdas are not supported on IBM JDK #47

@giamma

Description

@giamma

The IBM J9 JDK 8 does not have the private native method Class.getConstantPool().
Please note the J9 is the product name while the JDK level is Java 8.

When the static initialization is performed this results in a run-time error which is ignored in the catch block and the code probably assumes that this is the case because the JDK is < 8 and turns off boolean RESOLVES_LAMBDAS used to indicate whether lambdas are supported or not.

When later a lambda is to be processed a null is returned.

The only possible work around is to not use method references any more.

While version 8 of IBM JDK is only available via commercial subscription, later releases can be downloaded for free from the Adopt OpenJDK site under the name "Open J9".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions