From 2fefaf57589209e54a3de92c08d12131cea28114 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Wed, 30 Jul 2014 07:43:43 -0600 Subject: [PATCH] Change "Not a simple type" warning to log message Workaround for -Xfatal-warnings being triggered because of #830. --- compile/interface/src/main/scala/xsbt/ExtractAPI.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/interface/src/main/scala/xsbt/ExtractAPI.scala b/compile/interface/src/main/scala/xsbt/ExtractAPI.scala index 2b205398e..d42b1a457 100644 --- a/compile/interface/src/main/scala/xsbt/ExtractAPI.scala +++ b/compile/interface/src/main/scala/xsbt/ExtractAPI.scala @@ -149,7 +149,7 @@ class ExtractAPI[GlobalType <: CallbackGlobal](val global: GlobalType, private def simpleType(in: Symbol, t: Type): SimpleType = processType(in, t) match { case s: SimpleType => s - case x => warning("Not a simple type:\n\tType: " + t + " (" + t.getClass + ")\n\tTransformed: " + x.getClass); Constants.emptyType + case x => log("Not a simple type:\n\tType: " + t + " (" + t.getClass + ")\n\tTransformed: " + x.getClass); Constants.emptyType } private def types(in: Symbol, t: List[Type]): Array[xsbti.api.Type] = t.toArray[Type].map(processType(in, _)) private def projectionType(in: Symbol, pre: Type, sym: Symbol) =