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

Copy class should use assert macros

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 10
    • hotspot
    • None
    • b03
    • generic
    • generic

      utilities/copy.hpp should include debug.hpp and use assert, rather than #ifdef ASSERT blocks that call basic_fatal. This should eliminate all remaining uses of basic_fatal, which can then be removed.

      While making such a change, the error messages should be made more informative, including checked values and the like.

      While making such a change, consider changing the various assert_xxx private helper functions to be file-local macros (e.g. #undef at the end of the file), to provide useful __FILE__ and __LINE__ information.

            coleenp Coleen Phillimore
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: