United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7166048 (se) EPollArrayWrapper.c no longer needs to define epoll data structures
JDK-7166048 : (se) EPollArrayWrapper.c no longer needs to define epoll data structures

Details
Type:
Bug
Submit Date:
2012-05-03
Status:
Closed
Updated Date:
2012-10-31
Project Name:
JDK
Resolved Date:
2012-06-19
Component:
core-libs
OS:
linux
Sub-Component:
java.nio
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Linux d61 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
EPollArrayWrapper.c copied the data structure definition from sys/epoll.h .

This embedded data structure is confusing and affects the portability .

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Reading the code of EPollArrayWrapper.c

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It should use include <sys/epoll.h> instead.
ACTUAL -
Embedded the data structure from sys/epoll.h

REPRODUCIBILITY :
This bug can be reproduced always.

                                    

Comments
EVALUATION

The reason this code doess not include epoll.h is because it was created in JDK6 when the build and supported platforms included Linux 2.4 based distributions. Newer code using epoll in JDK7 includes sys/epoll.h as expected and we should change the old code too.
                                     
2012-05-03



Hardware and Software, Engineered to Work Together