United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7008444 Remove unnecessary include of stdint.h in java_md.c
JDK-7008444 : Remove unnecessary include of stdint.h in java_md.c

Details
Type:
Bug
Submit Date:
2010-12-22
Status:
Closed
Updated Date:
2012-05-02
Project Name:
JDK
Resolved Date:
2011-04-23
Component:
hotspot
OS:
solaris_8
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs20
Fixed Versions:
hs20 (b06)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
The changes for 7006354 added an include of stdint.h in src/os/posix/launcher/java_md.c, but this include file does not exist in Solaris 8, which is the build platform for JDK6.

                                    

Comments
SUGGESTED FIX

--- old/src/os/posix/launcher/java_md.c	2010-12-21 15:00:56.000000000 +0100
+++ new/src/os/posix/launcher/java_md.c	2010-12-21 15:00:56.000000000 +0100
@@ -28,7 +28,6 @@
 #include <dlfcn.h>
 #include <fcntl.h>
 #include <inttypes.h>
-#include <stdint.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
                                     
2010-12-22
EVALUATION

Turns out the include (only added for the definition of intptr_t) is not needed as the definition is available via other includes.
                                     
2010-12-22
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/e58d06a8037e
                                     
2010-12-22



Hardware and Software, Engineered to Work Together