[OpenJDK 2D-Dev] Image parsing spams stack traces to System.err

Philip Race philip.race at oracle.com
Tue Apr 20 21:42:10 UTC 2021


The real answer was a bug report at bugreport.java.com

But never mind - I've submitted 
https://bugs.openjdk.java.net/browse/JDK-8265603

FWIW I think the prints were there because the developer who added them
didn't expect them to be hit unless something went seriously wrong and 
wanted
it to be clear to whoever hit it. This case shows it is not so clear cut.

-phil.



On 4/20/21 1:38 PM, Brian Burkhalter wrote:
> I think this post needs to go to 2d-dev (copied).
>
>> On Apr 20, 2021, at 9:58 AM, Lapo Luchini <lapo at lapo.it> wrote:
>>
>> In both OpenJDK 8, 11 and 15 I verified that:
>>
>> sun/awt/image/InputStreamImageSource.java
>>
>> has "e.printStackTrace()" commands that might better be converted to java.util.logging in order to be able to configure/redirect them to the proper log file each application might decide to use.
>>
>> A little bit of more details as reported here (where they suggested this was the proper place):
>> https://github.com/AdoptOpenJDK/openjdk-jdk11u/issues/21
>>
>> cheers,
>>
>> -- 
>> Lapo Luchini
>> lapo at lapo.it
>>



More information about the 2d-dev mailing list