Quoting In Error/Warning Messages for Java

Per Bothner per@bothner.com
Sat Sep 18 16:01:00 GMT 2004


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /