This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Quoting In Error/Warning Messages for Java


Ranjit Mathew wrote:

I found that most of the errors were being issued via
parse_error_context( ) which (like parse_warning_context) uses
issue_warning_error_from_context( ) (all defined in parse.y)
which directly uses vsprintf() to create the message.

The reason for that is probably to be able to emit "caret" diagnostics: error messages including column numbers and echoing the erroneous line. Hopefully soon the USE_MAPPED_LOCATION patch will be in, which will remove/reduce the need for the special error handling.

For the rest, shall I just use 'foo' style quoting instead of
`foo'?

How about for now using %<...%> and writing a 5-line patch to convert %<...%> to '...'. Then we can use the new %<...%> immediately. -- --Per Bothner per@bothner.com http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]