Skip to content

JDK 9 support #376

@johnpoth

Description

@johnpoth

The project currently fails on JDK 9:

Caused by: java.lang.ClassCastException: [B cannot be cast to [C

To reproduce:

import org.boon.core.reflection.Reflection;
@Test
    public void testJdk9Support() throws Exception {
        Reflection.respondsTo(null, "dummy");
    }

The above fails in Reflection.java's nested static initializers. I've traced the problem to org.boon.core.reflection.FastStringUtils#toCharArray(java.lang.String) which seem to rely on sun.misc.unsafe. To checkout a full fledged example, see BoonConcurrentTest but I don't think it's needed to illustrate the problem.

Thanks!

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