diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-07-13 10:42:08 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-07-13 10:42:08 -0700 |
commit | 9df8f8ae9e36cf1c04929b7b0d2bdfb6fd2f360f (patch) | |
tree | 44cc063799793b543f7cff14df8ac79918e4a77a /src | |
parent | 02c3bac0b2c534ff8a8bbdb544034bf68a0be334 (diff) | |
parent | 0b19aba1b9636c0f092c316892f55f1f8b4bd94e (diff) | |
download | scala-9df8f8ae9e36cf1c04929b7b0d2bdfb6fd2f360f.tar.gz scala-9df8f8ae9e36cf1c04929b7b0d2bdfb6fd2f360f.tar.bz2 scala-9df8f8ae9e36cf1c04929b7b0d2bdfb6fd2f360f.zip |
Merge pull request #4621 from retronym/ticket/9393
SI-9393 Temporarily disable two assertions in GenBCode
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala b/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala index 7f0aaa7305..150f38d6ec 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala @@ -841,16 +841,17 @@ abstract class BTypes { assert(!ClassBType.isInternalPhantomType(internalName), s"Cannot create ClassBType for phantom type $this") - assert( - if (info.get.superClass.isEmpty) { isJLO(this) || (isCompilingPrimitive && ClassBType.hasNoSuper(internalName)) } - else if (isInterface.get) isJLO(info.get.superClass.get) - else !isJLO(this) && ifInit(info.get.superClass.get)(!_.isInterface.get), - s"Invalid superClass in $this: ${info.get.superClass}" - ) - assert( - info.get.interfaces.forall(c => ifInit(c)(_.isInterface.get)), - s"Invalid interfaces in $this: ${info.get.interfaces}" - ) + // TODO bring these back in a way that doesn't trip pos/t9393 + // assert( + // if (info.get.superClass.isEmpty) { isJLO(this) || (isCompilingPrimitive && ClassBType.hasNoSuper(internalName)) } + // else if (isInterface.get) isJLO(info.get.superClass.get) + // else !isJLO(this) && ifInit(info.get.superClass.get)(!_.isInterface.get), + // s"Invalid superClass in $this: ${info.get.superClass}" + // ) + // assert( + // info.get.interfaces.forall(c => ifInit(c)(_.isInterface.get)), + // s"Invalid interfaces in $this: ${info.get.interfaces}" + // ) assert(info.get.nestedClasses.forall(c => ifInit(c)(_.isNestedClass.get)), info.get.nestedClasses) } |