United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6888953 some calls to function-like macros are missing semicolons
JDK-6888953 : some calls to function-like macros are missing semicolons

Details
Type:
Bug
Submit Date:
2009-10-07
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2010-05-18
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs17
Fixed Versions:
hs18 (b05)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
Some calls to assert(), guarantee(), ShouldNotReachHere(), etc., do not have a trailing semicolon.

                                    

Comments
SUGGESTED FIX

Add semicolons.  See attached semicolon.patch.zip.
                                     
2009-10-07
EVALUATION

The missing semicolons look slightly strange but are not a problem given the current definitions of these macros.  However, future changes to add formatted arguments to assert(), fatal(), etc., will require the semicolons.
                                     
2009-10-07
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/cff162798819
                                     
2010-04-29



Hardware and Software, Engineered to Work Together