This page is no longer maintained — Please continue to the home page at www.scala-lang.org

three little problems

No replies
Miguel Garcia
Joined: 2009-06-10,
User offline. Last seen 42 years 45 weeks ago.

In a previous discussion on "Scala to Java" three situations were mentioned
whose resulting bytecode has no obvious counterpart in Java :

(a) blocks as part of expressions that are executed with non-empty stacks.

(b) object initialization, where outer pointers have to be assigned before
calling the superclass

(c) Overrides in parametric classes require sometimes bridge methods which
can lead to double de nitions when seen as Java source.

I *could* make progress on dealing with them (first of all, understanding
the problems) if someone were so kind to point me to the locations in
GenJVM (or GenICode) where the *bytecode version* for the above situations
is emitted. With that, I'll tryto connect the dots to the Java counterpart.

Your efforts will be rewarded! I'll post my findings in an upcoming
write-up, with credits and everything.

Miguel
http://www.sts.tu-harburg.de/people/mi.garcia

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland