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

Synthetic attribute in .class files

No replies
Aemon Cannon
Joined: 2010-03-21,
User offline. Last seen 1 year 24 weeks ago.

I've been parsing debug info in .class files in order to generate a
mapping between Scala source positions and emitted classes. Synthetic
classes, e.g. those generated for case classes, have bizarre debug line
numbering that throws off my mapping.

Given a .class file generated by the Scala compiler, is there a reliable
way to check if it is based on a synthetic class?

Thanks,
Aemon

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