Skip to content

Retrolambda can not be run under JDK 9 #137

Description

@teras

If we run retrolambda under Java 9, then this error appears:

java.lang.IncompatibleClassChangeError: Method java.util.stream.Stream.of([Ljava/lang/Object;)Ljava/util/stream/Stream; must be InterfaceMethodref constant
	at net.orfjackal.retrolambda.SystemPropertiesConfig.parsePathList(SystemPropertiesConfig.java:158)
	at net.orfjackal.retrolambda.SystemPropertiesConfig.getClasspath(SystemPropertiesConfig.java:148)
	at net.orfjackal.retrolambda.Retrolambda.run(Retrolambda.java:25)
	at net.orfjackal.retrolambda.Main.main(Main.java:28)

Compared with issue #119 indeed at net.orfjackal.retrolambda.SystemPropertiesConfig.parsePathList(SystemPropertiesConfig.java:158) there is a call to Stream.of which, since retrolamda jar is downgraded, it falls to the same problem.

Apart of the obvious answer ("run retrolambda under Java 8), is there any real solution to this problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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