Bug 31900 - Java line number debug info is bogus
Summary: Java line number debug info is bogus
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-11 16:47 UTC by Daniel Jacobowitz
Modified: 2007-07-23 07:37 UTC (History)
3 users (show)

See Also:
Host: x86_64-pc-linux-gnu
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Jacobowitz 2007-05-11 16:47:01 UTC
Compile this program with gcj -g:

public class jmain
{
  public static void main (String[] args)
    {
        return;
    }
}

There are five constructs with line numbers in the readelf -wi output (search for decl_line).  The class jmain, the method main, and the synthetic constructor all have line number zero; they should be 1, 3, and not-sure-but-probably-1 respectively.  The argument args is listed on line 5 instead of line 3 where it is declared in the source.  The synthetic "this" argument to the synthetic constructor has line 1.
Comment 1 Debian GCC Maintainers 2007-07-23 07:37:50 UTC
seen on the trunk 20070730