Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263136

C4530 was reported from VS 2019 at access bridge

    XMLWordPrintable

Details

    Backports

      Description

        I saw C4530 with VS 2019 (16.9.0) as following (on Japanese locale):

        ```
        AccessBridgeDebug.cpp
        メモ: インクルード ファイル: d:\github-forked\jdk\src\jdk.accessibility\windows\native\common\AccessBridgeDebug.h

            :

        c:\progra~2\micros~2\2019\commun~1\vc\tools\msvc\1428~1.299\include\ostream(611): error C2220: 次の警
        告はエラーとして処理されます
        c:\progra~2\micros~2\2019\commun~1\vc\tools\msvc\1428~1.299\include\ostream(611): warning C4530: C++
        例外処理を使っていますが、アンワインド セマンティクスは有効にはなりません。/EHsc を指定してください。
        メモ: インクルード ファイル: c:\progra~2\micros~2\2019\commun~1\vc\tools\msvc\1428~1.299\include\string
        ```

        `/EHsc` has been already passed in other makefiles, and also AccessBridgeDebug.cpp uses some STL classes (e.g. `chrono` namespace). So `/EHsc` is a solution for this problem.

        Attachments

          Issue Links

            Activity

              People

                ysuenaga Yasumasa Suenaga
                ysuenaga Yasumasa Suenaga
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: