<AWT Dev> RFR:  JDK-8196681: Java Access Bridge logging and debug flags dynamically controlled
krishna.addepalli at oracle.com
Thu Dec 6 17:39:57 UTC 2018
Since I added string.h and its related code for manipulating the path, I encountered this warning. The standard way to deal with this is to specify /EHsc, which is to enable catching of asynchronous exceptions.
From: Sergey Bylokhov
Sent: Thursday, December 6, 2018 10:49 PM
To: Krishna Addepalli <krishna.addepalli at oracle.com>; Shashidhara Veerabhadraiah <shashidhara.veerabhadraiah at oracle.com>
Cc: Prasanta Sadhukhan <prasanta.sadhukhan at oracle.com>; awt-dev at openjdk.java.net
Subject: Re: <AWT Dev> RFR:  JDK-8196681: Java Access Bridge logging and debug flags dynamically controlled
On 06/12/2018 01:10, Krishna Addepalli wrote:
> Hi Sergey,
> I got this error while compiling: warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc.
> I couldn't immediately figure out how to specify that option, so I disabled that warning (4530).
> Now I corrected this as well as making the filePath a local variable.
> Here is the updated webrev:
But what new code required this option? As far as I understand part of this option is to "tells the compiler to assume that functions declared as extern "C" never throw a C++ exception."
I am not sure that this is correct assumption, is it?
Best regards, Sergey.
More information about the awt-dev