title: Kotlin - SimpleDateFormat parsing takes infinite time
body: <p>I am trying to parse date string with <code>SimpleDateFormat</code> which never stops nor gives any exception. Please see the code below,</p>
  
  <pre><code>fun getDate(dateStr: String) {
  
      try {
          /** DEBUG dateStr = '2006-04-16T04:00:00Z' **/
          val formatter = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.ENGLISH)
          val mDate = formatter.parse(dateStr) // this never ends while debugging
      } catch (e: Exception){
          Logger.e("Error $e") // this never gets called either
      }
  }
  </code></pre>
  
  <p>What can be the possible issue?</p>
  
  <p>Note: I am using,</p>
  
  <blockquote>
    <p>Android Studio: 3.4.1, Kotlin version: 1.3.31, Min SDK: 23, Target SDK: 28, Compile SDK: 28</p>
  </blockquote>