-
Bug
-
Resolution: Fixed
-
P5
-
7, 8
-
b55
-
generic, x86
-
generic, windows_7
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8019030 | 7u45 | Frank Ding | P5 | Closed | Fixed | b01 |
JDK-8002056 | 7u40 | Unassigned | P5 | Closed | Fixed | b02 |
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
In java.lang.Terminator, separate signal registrations wrapped in a single try block to dedicated try block.
Current code below:
try {
Signal.handle(new Signal("INT"), sh);
Signal.handle(new Signal("TERM"), sh);
} catch (IllegalArgumentException e) {
}
The revised code below:
try {
Signal.handle(new Signal("INT"), sh);
} catch (IllegalArgumentException e) {
}
try {
Signal.handle(new Signal("TERM"), sh);
} catch (IllegalArgumentException e) {
}
The improved version makes more sense since exception thrown from first Signal.handle call does not affect subsequent calls. This is more consistent with its original intention.
See more detailed discussion in community @
http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-August/011189.html
REPRODUCIBILITY :
This bug can be reproduced always.
A DESCRIPTION OF THE PROBLEM :
In java.lang.Terminator, separate signal registrations wrapped in a single try block to dedicated try block.
Current code below:
try {
Signal.handle(new Signal("INT"), sh);
Signal.handle(new Signal("TERM"), sh);
} catch (IllegalArgumentException e) {
}
The revised code below:
try {
Signal.handle(new Signal("INT"), sh);
} catch (IllegalArgumentException e) {
}
try {
Signal.handle(new Signal("TERM"), sh);
} catch (IllegalArgumentException e) {
}
The improved version makes more sense since exception thrown from first Signal.handle call does not affect subsequent calls. This is more consistent with its original intention.
See more detailed discussion in community @
http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-August/011189.html
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
-
JDK-8002056 Terminator.setup should ignore IAE when registering signal handlers
-
- Closed
-
-
JDK-8019030 Terminator.setup should ignore IAE when registering signal handlers
-
- Closed
-
- duplicates
-
JDK-7189865 Improve registering signal handlers in java.lang.Terminator.setup()
-
- Closed
-