United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6939022 Source code adjustments for parfait compilation
JDK-6939022 : Source code adjustments for parfait compilation

Details
Type:
Bug
Submit Date:
2010-03-29
Status:
Resolved
Updated Date:
2010-12-13
Project Name:
JDK
Resolved Date:
2010-07-21
Component:
infrastructure
OS:
solaris,generic
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Duplicate:
Relates:

Sub Tasks

Description
In the file jdk/src/demo/jni/Poller/src/Poller.c there is some questionable use of the ## macro operator:

/export2/home/cristina/workspace/testing/openjdk7/build/solaris-i586/democlasses/demo/jni/Polle
r/src/Poller.c:268:1: error: pasting ""Poller:"" and ""CreatePoller - MAX_HANDLES exceeded"" do
es not give a valid preprocessing token

Solution: comment out ##:
Change lines @ 163-166:
#define MEMORY_EXCEPTION(str) throwOutOfMemoryError(env, "Poller:" ## str)
#define STATE_EXCEPTION(str)  throwIllegalStateException(env, "Poller:" ## str)
#define INTERRUPT_EXCEPTION(str) throwInterruptedIOException(env, \
                                                          "Poller:" ## str)

with these lines:
#define MEMORY_EXCEPTION(str) throwOutOfMemoryError(env, "Poller:" /*##*/ str)
#define STATE_EXCEPTION(str)  throwIllegalStateException(env, "Poller:" /*##*/ str)
#define INTERRUPT_EXCEPTION(str) throwInterruptedIOException(env, \
                                                          "Poller:" /*##*/ str)

                                    

Comments
EVALUATION

See description.
                                     
2010-06-15
EVALUATION

http://hg.openjdk.java.net/jdk7/tl/jdk/rev/25fe5c3bf7b7
                                     
2010-06-23



Hardware and Software, Engineered to Work Together