On 3/31/20 5:17 PM, Martin Grigorov wrote:
On Tue, Mar 31, 2020 at 6:06 PM Martin Grigorov <mgrigo...@apache.org>
wrote:

I've found a problem with the default impl for #detach() method of
IRequestablePage and IRequestableComponent.
In Java everything is OK but my Scala application fails with:

INFO] --- scala-maven-plugin:4.3.1:compile (default) @ presentation ---
[INFO] Using incremental compilation using JavaThenScala compile order
[INFO] Compiler bridge file:
/home/martin/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.13-1.3.2-bin_2.13.1__58.0-1.3.2_20200115T025827.jar
[INFO] Compiling 91 Scala sources and 27 Java sources to
/home/martin/git/myscalaapp/target/classes ...
[ERROR] [Error]
/home/martin/git/myscalaapp/src/main/scala/com/mycompany/myscalaapp/pages/MainPage.scala:65:
cannot override final member:
final def detach#12140(): Unit#1311 (defined in class Component#7657)
   with <defaultmethod> def detach#12448(): Unit#1311 (defined in trait
IRequestablePage#11471)
[ERROR] [Error]
/home/martin/git/myscalaapp/src/main/scala/com/mycompany/myscalaapp/pages/HomePage.scala:8:
cannot override final member:
final def detach#12140(): Unit#1311 (defined in class Component#7657)
   with <defaultmethod> def detach#12448(): Unit#1311 (defined in trait
IRequestablePage#11471)
[ERROR] two errors found

It looks like a problem in the Scala compiler but it would take some time
to convince the Scala team to fix it.
I will revert my recent changes in this area!

Done!
Ok, is on board!

Reply via email to