# HG changeset patch # User kbarrett # Date 1425430069 18000 # Node ID c539e3e94ef1236a5c41b363f605fdeee8056cdd # Parent dc72789f83aef3d67acbe09da8bfaaddc4d86967 8073994: STATIC_ASSERT use of __LINE__ is wrong Reviewed-by: dholmes, ehelin diff -r dc72789f83ae -r c539e3e94ef1 hotspot/src/share/vm/utilities/debug.hpp --- a/hotspot/src/share/vm/utilities/debug.hpp Tue Mar 17 15:53:55 2015 +0100 +++ b/hotspot/src/share/vm/utilities/debug.hpp Tue Mar 03 19:47:49 2015 -0500 @@ -222,9 +222,8 @@ template struct STATIC_ASSERT_FAILURE; template<> struct STATIC_ASSERT_FAILURE { enum { value = 1 }; }; -#define STATIC_ASSERT(Cond) \ - typedef char STATIC_ASSERT_FAILURE_ ## __LINE__ [ \ - STATIC_ASSERT_FAILURE< (Cond) >::value ] +#define STATIC_ASSERT(Cond) \ + typedef char STATIC_ASSERT_DUMMY_TYPE[ STATIC_ASSERT_FAILURE< (Cond) >::value ] // out of shared space reporting enum SharedSpaceType {