Internal error when trying to use "Project language level - Experimental features" - Not a compile error

Hi

I'm using Project language level - Experimental features
JDK buit from http://openjdk.java.net/projects/valhalla/

When trying to compile, I got this error message:

Error:Internal error: (java.lang.IllegalArgumentException) No enum constant org.jetbrains.jps.model.java.LanguageLevel.JDK_X

java.lang.IllegalArgumentException: No enum constant org.jetbrains.jps.model.java.LanguageLevel.JDK_X

 at java.lang.Enum.valueOf(Enum.java:240)

 at org.jetbrains.jps.model.java.LanguageLevel.valueOf(LanguageLevel.java:23)

 at org.jetbrains.jps.model.serialization.java.JpsJavaModelSerializerExtension$JavaProjectExtensionSerializer.loadExtension(JpsJavaModelSerializerExtension.java:288)

 at org.jetbrains.jps.model.serialization.java.JpsJavaModelSerializerExtension$JavaProjectExtensionSerializer.loadExtension(JpsJavaModelSerializerExtension.java:271)

 at org.jetbrains.jps.model.serialization.JpsLoaderBase.loadComponents(JpsLoaderBase.java:61)

 at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadFromDirectory(JpsProjectLoader.java:121)

 at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:100)

 at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:41)

 at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:45)

 at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:78)

 at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:266)

 at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)

 at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:232)

 at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:42)

 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

 at java.util.concurrent.FutureTask.run(FutureTask.java:265)

 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

 at java.lang.Thread.run(Thread.java:745)


I;m not expecting IntellIj to support valhalla (which it does quite nice) - just to be able to invoke the compiler.

Thx
Boaz

4 comments
Comment actions Permalink

Hi Boaz,

Just added the constant, thanks for mentioning!

0
Comment actions Permalink

Thx
actually I'm following Valhalla project - they mentioned IDEA which I'm using since ever so I gave it a try
Meanwhile I'm compiling externally and debugging with IntelliJ

Boaz

0
Comment actions Permalink

Didn't understand what the status of it - work as design?

0
Comment actions Permalink

We have added the required constant, so that the build now "knows" about this JDK. No exceptions like that should be thrown anymore. This is done in master branch only (future IDEA 15).

0

Please sign in to leave a comment.