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

ErrorHandling macros log wrong source position

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • install
    • None
    • b12
    • windows
    • Not verified

        ErrorHandling macros (JDS_REPORT_ERROR, JDS_REPORT_UNKNOWN_ERROR used by JDS_CATCH_*) logs incorrect source for the log record. This makes hard to understand code position where the exception was caught:

        [2014/04/01 17:29:08.176, common_test.exe (PID: 8724, TID: 7444), ErrorHandling.cpp:27 (reportUnknownError)]
        ERROR: Unknown exception caught
        [2014/04/01 17:29:08.176, common_test.exe (PID: 8724, TID: 1644), ErrorHandling.cpp:21 (reportError)]
        ERROR: Exception with message 'bad allocation' caught

              amenkov Alex Menkov
              amenkov Alex Menkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: