Better tools for adjusting to strong encapsulation

Alan Snyder javalists at cbfiddle.com
Thu Mar 23 19:31:50 UTC 2017


OK, so the configuration idea does not work.

How about the idea of using the console log instead of System.err for these messages, on systems that have such a thing?


> On Mar 23, 2017, at 12:04 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> On 23/03/2017 18:44, Alan Snyder wrote:
> 
>> If I understand JEP 264 correctly, it should be possible to direct platform generated error messages to locations other than the standard error stream (System.err).
>> 
>> Is that correct?
>> 
>> If so, would it not make sense for the default to be the (platform dependent) console log rather than System.err, which is used by applications for their own error messages?
> System.Logger can be configured to send log messages to whatever logging library you are using. However, is is not appropriate here, ditto for several other areas where you don't want arbitrary code to execute.
> 
> -Alan



More information about the jigsaw-dev mailing list