Skip to content

latest nigtly broke compilation on JVM-14 #10131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rssh opened this issue Oct 31, 2020 · 1 comment · Fixed by #10135
Closed

latest nigtly broke compilation on JVM-14 #10131

rssh opened this issue Oct 31, 2020 · 1 comment · Fixed by #10135
Assignees

Comments

@rssh
Copy link
Contributor

rssh commented Oct 31, 2020

Minimized code

JAVA - JDK 14, macos. Any code. (sbt in dotty - ok)

Output

[error] scala.MatchError: ClassInfo(ThisType(TypeRef(NoPrefix,module class lang)), class Enum, List(TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class Object), TypeRef(ThisType(TypeRef(NoPrefix,module class constant)),trait Constable), AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),trait Comparable),List(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class lang)),class Enum)),type E))), TypeRef(ThisType(TypeRef(NoPrefix,module class io)),trait Serializable))) (of class dotty.tools.dotc.core.Types$CachedClassInfo)
[error] dotty.tools.dotc.core.Definitions.JavaEnumClass(Definitions.scala:723)
[error] dotty.tools.dotc.core.Definitions.init(Definitions.scala:1666)
[error] dotty.tools.dotc.core.Contexts$ContextBase.initialize(Contexts.scala:830)
[error] dotty.tools.dotc.core.Contexts$Context.initialize(Contexts.scala:542)
[error] dotty.tools.dotc.Run.rootContext(Run.scala:67)
[error] dotty.tools.dotc.Run.<init>(Run.scala:85)
[error] dotty.tools.dotc.Compiler.newRun(Compiler.scala:153)
[error] dotty.tools.dotc.Driver.doCompile(Driver.scala:37)
[error] dotty.tools.dotc.Driver.process(Driver.scala:194)
[error] dotty.tools.dotc.Main.process(Main.scala)
[error] xsbt.CachedCompilerImpl.run(CachedCompilerImpl.java:69)
[error] xsbt.CompilerInterface.run(CompilerInterface.java:41)
[error] java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] java.base/java.lang.reflect.Method.invoke(Method.java:564)
[error] sbt.internal.inc.AnalyzingCompiler.call(AnalyzingCompiler.scala:248)
[error] sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:122)
[error] sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:95)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$4(MixedAnalyzingCompiler.scala:91)
[error] scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
[error] sbt.internal.inc.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:186)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$3(MixedAnalyzingCompiler.scala:82)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$3$adapted(MixedAnalyzingCompiler.scala:77)
[error] sbt.internal.inc.JarUtils$.withPreviousJar(JarUtils.scala:215)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:77)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:146)

Expectation

the compilation will be successful. Note, that with JDK8 - all works.

@bishabosha
Copy link
Member

confirmed that 3.0.0-M2-bin-20201030-300e9a2-NIGHTLY is broken but 3.0.0-M1-bin-20201029-1f433d5-NIGHTLY is ok

liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 1, 2020
@bishabosha bishabosha assigned liufengyun and unassigned bishabosha Nov 2, 2020
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 2, 2020
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 2, 2020
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 2, 2020
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 2, 2020
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 2, 2020
bishabosha added a commit that referenced this issue Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants