<AWT Dev> RFR: [12] JDK-8196681: Java Access Bridge logging and debug flags dynamically controlled

Krishna Addepalli 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.

https://docs.microsoft.com/en-us/previous-versions/1deeycx5(v=vs.140)

Thanks,
Krishna

-----Original Message-----
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: [12] 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:  
> http://cr.openjdk.java.net/~kaddepalli/8196681/webrev06

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 mailing list