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

Better argument formatting for assert() and friends

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b89

        This RFE propose that we change "assert" to use variadic macros so that we can write our asserts like:
        assert(referent->is_oop(), "bad referent %p", referent);

        instead of:
        assert(referent->is_oop(), err_msg("bad referent %p", referent));

        The reason why err_msg was introduced is explained in JDK-6888954.

              david David Lindholm (Inactive)
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: