This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 8508 - only internal compilation shows column numbers
Summary: only internal compilation shows column numbers
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P4 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-22 06:57 UTC by Rochelle Raccah
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rochelle Raccah 2000-11-22 06:57:06 UTC
fastjavac and external compilation show row numbers and always show the column
number as 1.  internal compilation correctly shows the row and column number of
the error.

To reproduce:
Create a new class (New->Classes->Class)
In the contructor, purposely add a syntax error
Compile using fastjavac, external, and internal compilation

You will notice that only internal provides the correct column number
Comment 1 Svata Dedic 2001-01-15 07:45:59 UTC
Compilers only give the line number in error messages, so column number cannot
be extracted from the compiler's output. I think that computing column# from
position of the ^ sign pointing at the error location is not much reliable and
certainly some compilers report errors in a different way.
The internal compiler, however, has its output bound tightly to the IDE's
infrastructure so the column# can be captured from the message before it is
converted to plain text and output to the error stream.
Comment 2 Quality Engineering 2003-07-01 13:12:58 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-07-01 13:18:22 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.