{"action":"closed","issue":{"url":"https://api.github.com/repos/scalacenter/scalafix/issues/674","repository_url":"https://api.github.com/repos/scalacenter/scalafix","labels_url":"https://api.github.com/repos/scalacenter/scalafix/issues/674/labels{/name}","comments_url":"https://api.github.com/repos/scalacenter/scalafix/issues/674/comments","events_url":"https://api.github.com/repos/scalacenter/scalafix/issues/674/events","html_url":"https://github.com/scalacenter/scalafix/issues/674","id":311346918,"number":674,"title":"ExplicitResultTypes crashes on java paths","user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars0.githubusercontent.com/u/1408093?v=4","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"labels":[{"id":421302734,"url":"https://api.github.com/repos/scalacenter/scalafix/labels/bug","name":"bug","color":"b60205","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-04T18:45:59Z","updated_at":"2018-05-30T16:56:23Z","closed_at":"2018-05-30T16:56:23Z","author_association":"MEMBER","body":"```scala\r\nscala/test/explicitResultTypes/ExplicitResultTypesBase.scala:55:16: error: java.lang.ClassCastException: scala.meta.Type$Select$TypeSelectImpl cannot be cast to scala.meta.Term$Ref\r\n\tat scalafix.internal.util.TypeSyntax.loop$2(TypeSyntax.scala:183)\r\n\tat scalafix.internal.util.TypeSyntax.symbolToTree(TypeSyntax.scala:196)\r\n\tat scalafix.internal.util.TypeSyntax.toTypeRef(TypeSyntax.scala:287)\r\n\tat scalafix.internal.util.TypeSyntax.toType(TypeSyntax.scala:341)\r\n\tat scalafix.internal.util.TypeSyntax.$anonfun$toType$1(TypeSyntax.scala:297)\r\n\tat scala.collection.Iterator$$anon$10.next(Iterator.scala:448)\r\n\tat scala.collection.Iterator.foreach(Iterator.scala:929)\r\n\tat scala.collection.Iterator.foreach$(Iterator.scala:929)\r\n\tat scala.collection.AbstractIterator.foreach(Iterator.scala:1417)\r\n\tat scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:59)\r\n\tat scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:50)\r\n\tat scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:186)\r\n\tat scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:44)\r\n\tat scala.collection.TraversableOnce.to(TraversableOnce.scala:310)\r\n\tat scala.collection.TraversableOnce.to$(TraversableOnce.scala:308)\r\n\tat scala.collection.AbstractIterator.to(Iterator.scala:1417)\r\n\tat scala.collection.TraversableOnce.toList(TraversableOnce.scala:294)\r\n\tat scala.collection.TraversableOnce.toList$(TraversableOnce.scala:294)\r\n\tat scala.collection.AbstractIterator.toList(Iterator.scala:1417)\r\n\tat scalafix.internal.util.TypeSyntax.targs$1(TypeSyntax.scala:297)\r\n\tat scalafix.internal.util.TypeSyntax.toType(TypeSyntax.scala:347)\r\n\tat scalafix.internal.util.TypeSyntax.prettify(TypeSyntax.scala:449)\r\n\tat scalafix.internal.util.TypeSyntax$.prettify(TypeSyntax.scala:28)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.$anonfun$fix$3(ExplicitResultTypes.scala:82)\r\n\tat scala.Option.flatMap(Option.scala:171)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.$anonfun$fix$2(ExplicitResultTypes.scala:81)\r\n\tat scala.Option.flatMap(Option.scala:171)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.$anonfun$fix$1(ExplicitResultTypes.scala:80)\r\n\tat scala.Option.flatMap(Option.scala:171)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.defnType$1(ExplicitResultTypes.scala:79)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.$anonfun$fix$9(ExplicitResultTypes.scala:100)\r\n\tat scala.Option.flatMap(Option.scala:171)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.$anonfun$fix$7(ExplicitResultTypes.scala:98)\r\n\tat scala.Option.flatMap(Option.scala:171)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.$anonfun$fix$5(ExplicitResultTypes.scala:94)\r\n\tat scala.Option.flatMap(Option.scala:171)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.scalafix$internal$rule$ExplicitResultTypes$$fix$1(ExplicitResultTypes.scala:93)\r\n\tat scalafix.internal.rule.ExplicitResultTypes$$anonfun$fix$15.applyOrElse(ExplicitResultTypes.scala:151)\r\n\tat scalafix.internal.rule.ExplicitResultTypes$$anonfun$fix$15.applyOrElse(ExplicitResultTypes.scala:148)\r\n\tat scala.PartialFunction$Lifted.apply(PartialFunction.scala:224)\r\n\tat scala.PartialFunction$Lifted.apply(PartialFunction.scala:220)\r\n\tat scala.meta.transversers.Api$XtensionCollectionLikeUI$traverser$4$.apply(Api.scala:32)\r\n\tat scala.meta.transversers.Traverser.apply(Traverser.scala:4)\r\n\tat scala.meta.transversers.Traverser.apply(Traverser.scala:4)\r\n\tat scala.meta.transversers.Api$XtensionCollectionLikeUI$traverser$4$.apply(Api.scala:33)\r\n\tat scala.meta.transversers.Traverser.apply(Traverser.scala:4)\r\n\tat scala.meta.transversers.Api$XtensionCollectionLikeUI$traverser$4$.apply(Api.scala:33)\r\n\tat scala.meta.transversers.Traverser.apply(Traverser.scala:4)\r\n\tat scala.meta.transversers.Traverser.apply(Traverser.scala:4)\r\n\tat scala.meta.transversers.Api$XtensionCollectionLikeUI$traverser$4$.apply(Api.scala:33)\r\n\tat scala.meta.transversers.Traverser.apply(Traverser.scala:4)\r\n\tat scala.meta.transversers.Traverser.apply(Traverser.scala:4)\r\n\tat scala.meta.transversers.Api$XtensionCollectionLikeUI$traverser$4$.apply(Api.scala:33)\r\n\tat scala.meta.transversers.Api$XtensionCollectionLikeUI.collect(Api.scala:36)\r\n\tat scalafix.internal.rule.ExplicitResultTypes.fix(ExplicitResultTypes.scala:148)\r\n\tat scalafix.rule.Rule.fixWithName(Rule.scala:104)\r\n\tat scalafix.rule.Rule$CompositeRule.$anonfun$fixWithName$2(Rule.scala:139)\r\n\tat scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:122)\r\n\tat scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:118)\r\n\tat scala.collection.immutable.List.foldLeft(List.scala:86)\r\n\tat scalafix.rule.Rule$CompositeRule.fixWithName(Rule.scala:139)\r\n  implicit val map = new java.util.HashMap[Int, java.lang.String]().entrySet()\r\n               ^\r\n```"}}
{"actor":{"display_login":"olafurpg"}}