If you create a new project, then download and add
http://repo1.maven.org/maven2/ru/circumflex/circumflex-orm/2.0.3/circumflex-orm-2.0.3.jar,
then attach http://repo1.maven.org/maven2/ru/circumflex/circumflex-orm/2.0.3/circumflex-orm-2.0.3-sources.jar
as the source jar, opening the class files doesn't open the
corresponding source files, even though javap shows that the class
files have debug info.
This is the only library for which I can reproduce this. I'm curious
if anyone knows what's up. I've been poking around with javap and
comparing the jars with other jars that work, but so far have been
unsuccessful at debugging this.
Thanks in advance.
How did you determine this? I tried inspecting the class files using
javap and I could see the name of the source file as well as the line
number tables. I also tried inspecting the project's pom.xml, and it
doesn't override the default -g:vars parameter to scalac.
> I didn't try but I thinks that if you printStackTrace with circumflex class
> in the stack, you will have "compiled code" instead of the filename and the
> line.
Sorry, I'm having some trouble understanding this sentence.... Mind
elaborating a bit more? I'm mainly interested in being able to jump to
the source definitions of the libraries I'm using from within Eclipse,
as well as setting breakpoints on certain source lines within these
libraries.
> I hope it helps.
> /davidB
>
> On Tue, Jul 26, 2011 at 06:23, Yang Zhang <yangha...@gmail.com> wrote:
>>
>> I'm wondering if I'm missing something here.
>>
>> If you create a new project, then download and add
>>
>> http://repo1.maven.org/maven2/ru/circumflex/circumflex-orm/2.0.3/circumflex-orm-2.0.3.jar,
>> then attach
>> http://repo1.maven.org/maven2/ru/circumflex/circumflex-orm/2.0.3/circumflex-orm-2.0.3-sources.jar
>> as the source jar, opening the class files doesn't open the
>> corresponding source files, even though javap shows that the class
>> files have debug info.
>>
>> This is the only library for which I can reproduce this. I'm curious
>> if anyone knows what's up. I've been poking around with javap and
>> comparing the jars with other jars that work, but so far have been
>> unsuccessful at debugging this.
>>
>> Thanks in advance.
>
>
--
Yang Zhang
http://yz.mit.edu/
On Tue, Jul 26, 2011 at 1:33 PM, David BernardHow did you determine this? I tried inspecting the class files using
<david.be...@gmail.com> wrote:
> Hi,
> I did a quick test, the circumflex-orm's classes are compiled without debug
> info like the filename of the source and the source file doesn't match the
> classname rules (like in java), so eclipse don't know the sourcefile to
> open.
javap and I could see the name of the source file as well as the line
number tables. I also tried inspecting the project's pom.xml, and it
doesn't override the default -g:vars parameter to scalac.
Sorry, I'm having some trouble understanding this sentence.... Mind
> I didn't try but I thinks that if you printStackTrace with circumflex class
> in the stack, you will have "compiled code" instead of the filename and the
> line.
elaborating a bit more?
I'm mainly interested in being able to jump to
the source definitions of the libraries I'm using from within Eclipse,
as well as setting breakpoints on certain source lines within these
libraries.
Hmmm...in general, though, you can't rely on a direct mapping between
source files and (top-level) classes, unlike in Java.