Skip to content

Play 2.6.5 does not work with Java 9 #7879

@markehammons

Description

@markehammons

Play Version (2.5.x / etc)

2.6.5

API (Scala / Java / Neither / Both)

Scala

Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

Fedora 26

JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)

openjdk version "9.0.0.15"
OpenJDK Runtime Environment (Zulu build 9.0.0.15+181)
OpenJDK 64-Bit Server VM (Zulu build 9.0.0.15+181, mixed mode)

Expected Behavior

I expect my application to load!

Actual Behavior

java.lang.NumberFormatException: Not a version: 9
        at scala.util.PropertiesTrait$class.parts$1(Properties.scala:176)
        at scala.util.PropertiesTrait$class.isJavaAtLeast(Properties.scala:180)
        at scala.util.Properties$.isJavaAtLeast(Properties.scala:16)
        at play.dev.filewatch.FileWatchService$$anon$1.delegate$lzycompute(FileWatchService.scala:68)
        at play.dev.filewatch.FileWatchService$$anon$1.delegate(FileWatchService.scala:66)
        at play.dev.filewatch.FileWatchService$$anon$1.watch(FileWatchService.scala:79)
        at play.runsupport.Reloader.<init>(Reloader.scala:359)
        at play.runsupport.Reloader$.reloader$lzycompute$1(Reloader.scala:220)
        at play.runsupport.Reloader$.play$runsupport$Reloader$$reloader$1(Reloader.scala:220)
        at play.runsupport.Reloader$.startDevMode(Reloader.scala:230)
        at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scala:77)
        at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.play$sbt$run$PlayRun$$anonfun$$anonfun$$anonfun$$devModeServer$1(PlayRun.scala:77)
        at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:100)
        at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:63)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)

Reproducible Test Case

I imagine this is reproducible with any application if you're using a java 9 vm. It appears there is a hardcoded list of java versions in the framework, and 9 is not in the list.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions