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)
|