I tried to compile the latest source (https://github.com/cquiroz/scala-java-time/tree/b58861fa7df8c1fec6bc881547d94e2c70992d70) and got the compilation error as below
[error] /home/vagrant/IdeaProjects/scala-java-time/tzdb/js/target/scala-2.12/src_managed/main/tzdb/tzdb_java.scala:275:25: identifier expected but '.' found.
[error] val Africa_Abidjan: ... = js.Dynamic.literal(("s", -968), ("w", -968), ("t", ...(...(1912001, 0, -968, 0))), ("l", ...(...(1912001, 0, -968, 0))), ("r", ...()))
[error] ^
It is due to the generated tzdb_java.scala
and tzdb_threeten.scala
contains ...
throughout the text.
Actual
// Auto-generated code from TZDB definitions, don't edit
package zonedb.threeten
import org.threeten.bp._
import org.threeten.bp.zone._
import scala.collection.JavaConverters._
import scala.language.postfixOps
import scala.scalajs.js
object tzdb {
object pacli {
val Pacific_Wallis: ... = js.Dynamic.literal(("s", 44120), ("w", 44120), ("t", ...(...(1901001, 0, 44120, 43200))), ("l", ...(...(1901001, 0, 44120, 43200))), ("r", ...()))
}
object asird {
val Asia_Qyzylorda: ... = js.Dynamic.literal(("s", 15712), ("w", 15712), ("t", ...(...(1924123, 0, 15712, 14400), ...(1930172, 0, 14400, 18000), ...(1981273, 82800, 18000, 21600), ...(1982091, 0, 21600, 18000), ...(1991090, 7200, 18000, 14400), ...(1991272, 7200, 14400, 18000), ...(1992019, 7200, 18000, 21600), ...(1992089, 7200, 21600, 18000), ...(2004305, 7200, 18000, 21600))), ("l", ...(...(1924123, 0, 15712, 14400), ...(1930172, 0, 14400, 18000), ...(1981091, 0, 18000, 21600), ...(1982274, 0, 21600, 18000), ...(1983091, 0, 18000, 21600), ...(1983274, 0, 21600, 18000), ...(1984092, 0, 18000, 21600), ...(1984274, 10800, 21600, 18000), ...(1985090, 7200, 18000, 21600), ...(1985272, 10800, 21600, 18000), ...(1986089, 7200, 18000, 21600), ...(1986271, 10800, 21600, 18000), ...(1987088, 7200, 18000, 21600), ...(1987270, 10800, 21600, 18000), ...(1988087, 7200, 18000, 21600), ...(1988269, 10800, 21600, 18000), ...(1989085, 7200, 18000, 21600), ...(1989267, 10800, 21600, 18000), ...(1990084, 7200, 18000, 21600), ...(1990273, 10800, 21600, 18000), ...(1992019, 7200, 18000, 21600), ...(1992271, 10800, 21600, 18000), ...(1993087, 7200, 18000, 21600), ...(1993269, 10800, 21600, 18000), ...(1994086, 7200, 18000, 21600), ...(1994268, 10800, 21600, 18000), ...(1995085, 7200, 18000, 21600), ...(1995267, 10800, 21600, 18000), ...(1996091, 7200, 18000, 21600), ...(1996301, 10800, 21600, 18000), ...(1997089, 7200, 18000, 21600), ...(1997299, 10800, 21600, 18000), ...(1998088, 7200, 18000, 21600), ...(1998298, 10800, 21600, 18000), ...(1999087, 7200, 18000, 21600), ...(1999304, 10800, 21600, 18000), ...(2000086, 7200, 18000, 21600), ...(2000303, 10800, 21600, 18000), ...(2001084, 7200, 18000, 21600), ...(2001301, 10800, 21600, 18000), ...(2002090, 7200, 18000, 21600), ...(2002300, 10800, 21600, 18000), ...(2003089, 7200, 18000, 21600), ...(2003299, 10800, 21600, 18000), ...(2004088, 7200, 18000, 21600))), ("r", ...()))
}
// omitted
}
Expected
I guess that the ...
would be
js.Dynamic
as type annotation for value definition
js.Array
as a function that receives integer arguments
as below
// Auto-generated code from TZDB definitions, don't edit
package zonedb.java
import java.time._
import java.time.zone._
import scala.collection.JavaConverters._
import scala.language.postfixOps
import scala.scalajs.js
object tzdb {
object pacli {
val Pacific_Wallis: js.Dynamic = js.Dynamic.literal(("s", 44120), ("w", 44120), ("t", js.Array(js.Array(1901001, 0, 44120, 43200))), ("l", js.Array(js.Array(1901001, 0, 44120, 43200))), ("r", js.Array()))
}
object asird {
val Asia_Qyzylorda: js.Dynamic = js.Dynamic.literal(("s", 15712), ("w", 15712), ("t", js.Array(js.Array(1924123, 0, 15712, 14400), js.Array(1930172, 0, 14400, 18000), js.Array(1981273, 82800, 18000, 21600), js.Array(1982091, 0, 21600, 18000), js.Array(1991090, 7200, 18000, 14400), js.Array(1991272, 7200, 14400, 18000), js.Array(1992019, 7200, 18000, 21600), js.Array(1992089, 7200, 21600, 18000), js.Array(2004305, 7200, 18000, 21600))), ("l", js.Array(js.Array(1924123, 0, 15712, 14400), js.Array(1930172, 0, 14400, 18000), js.Array(1981091, 0, 18000, 21600), js.Array(1982274, 0, 21600, 18000), js.Array(1983091, 0, 18000, 21600), js.Array(1983274, 0, 21600, 18000), js.Array(1984092, 0, 18000, 21600), js.Array(1984274, 10800, 21600, 18000), js.Array(1985090, 7200, 18000, 21600), js.Array(1985272, 10800, 21600, 18000), js.Array(1986089, 7200, 18000, 21600), js.Array(1986271, 10800, 21600, 18000), js.Array(1987088, 7200, 18000, 21600), js.Array(1987270, 10800, 21600, 18000), js.Array(1988087, 7200, 18000, 21600), js.Array(1988269, 10800, 21600, 18000), js.Array(1989085, 7200, 18000, 21600), js.Array(1989267, 10800, 21600, 18000), js.Array(1990084, 7200, 18000, 21600), js.Array(1990273, 10800, 21600, 18000), js.Array(1992019, 7200, 18000, 21600), js.Array(1992271, 10800, 21600, 18000), js.Array(1993087, 7200, 18000, 21600), js.Array(1993269, 10800, 21600, 18000), js.Array(1994086, 7200, 18000, 21600), js.Array(1994268, 10800, 21600, 18000), js.Array(1995085, 7200, 18000, 21600), js.Array(1995267, 10800, 21600, 18000), js.Array(1996091, 7200, 18000, 21600), js.Array(1996301, 10800, 21600, 18000), js.Array(1997089, 7200, 18000, 21600), js.Array(1997299, 10800, 21600, 18000), js.Array(1998088, 7200, 18000, 21600), js.Array(1998298, 10800, 21600, 18000), js.Array(1999087, 7200, 18000, 21600), js.Array(1999304, 10800, 21600, 18000), js.Array(2000086, 7200, 18000, 21600), js.Array(2000303, 10800, 21600, 18000), js.Array(2001084, 7200, 18000, 21600), js.Array(2001301, 10800, 21600, 18000), js.Array(2002090, 7200, 18000, 21600), js.Array(2002300, 10800, 21600, 18000), js.Array(2003089, 7200, 18000, 21600), js.Array(2003299, 10800, 21600, 18000), js.Array(2004088, 7200, 18000, 21600))), ("r", js.Array()))
}
// ommited
}
Environment
- Java: openjdk version "1.8.0_141"
- sbt: 1.0.4