scala - linking error on parsing java.time.LocalDate in scalajs -


when want parse localdate in scalajs, linking error occur:

java.time.localdate.parse("2016-11-11") 

here error message:

[error] referring non-existent method java.time.localdate$.parse(java.lang.charsequence)java.time.localdate [error]   called example.scalajsexample$$anonfun$myview$1.applyorelse(scala.collection.immutable.list,scala.function1)java.lang.object [error]   called example.scalajsexample$$anonfun$myview$1.applyorelse(java.lang.object,scala.function1)java.lang.object [error]   called scala.concurrent.future$class.$$anonfun$1(scala.concurrent.future,scala.partialfunction,scala.util.try)java.lang.object 

but using java.time.localdate.of(2016,11,11) works without error.

what problem?!

because java.time.localdate.parse not implemented. might try of alternative libraries java.time support, if 1 of them supports it. otherwise, guess contribute implementation.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -