Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b23
-
x86_64
-
windows_7
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8063822 | 8u45 | Daniel Fuchs | P3 | Resolved | Fixed | b01 |
JDK-8049857 | 8u40 | Daniel Fuchs | P3 | Resolved | Fixed | b06 |
JDK-8070093 | emb-8u47 | Daniel Fuchs | P3 | Resolved | Fixed | team |
Description
1.8.0_b123
ADDITIONAL OS VERSION INFORMATION :
Windows 7 x64
A DESCRIPTION OF THE PROBLEM :
The change
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/ac22a52a732c
causes a regression.
The parameter "append" in the constructor
public FileHandler(String pattern, int limit, int count, boolean append)
doesn't work anymore. Every time, a java program a new File is generated (when using %u in Filename), instead of appending to the existing one.
REGRESSION. Last worked in version 7u60
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
package javaapplication23;
import java.io.IOException;
import java.util.logging.FileHandler;
public class JavaApplication23 {
public static void main(String[] args) throws IOException {
new FileHandler("./test_%g_%u.log", 10000, 100, true);
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Only the file test_0_0.log (and .lck) should be generated.
ACTUAL -
With every program start, a new file is generated (test_0_1.log, test_0_2.log, ...)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package javaapplication23;
import java.io.IOException;
import java.util.logging.FileHandler;
public class JavaApplication23 {
public static void main(String[] args) throws IOException {
new FileHandler("./test_%g_%u.log", 10000, 100, true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
not known
Attachments
Issue Links
- backported by
-
JDK-8049857 Regression on java.util.logging.FileHandler
-
- Resolved
-
-
JDK-8063822 Regression on java.util.logging.FileHandler
-
- Resolved
-
-
JDK-8070093 Regression on java.util.logging.FileHandler
-
- Resolved
-
- duplicates
-
JDK-7037134 Potential writing to the same log file by multiple processes
-
- Closed
-
- relates to
-
JDK-8031438 FileHandler throws OverlappingFileLockException
-
- Open
-
-
JDK-6244047 impossible to specify directories to logging FileHandler unless they exist
-
- Closed
-
-
JDK-6774110 lock file is not deleted when child logger is used
-
- Closed
-
-
JDK-8052403 [TEST_BUG] java/util/logging/CheckZombieLockTest.java fails with NoSuchFileException
-
- Closed
-
-
JDK-8077261 FileHandler(String pattern, boolean append) doesn't lock the file created
-
- Closed
-
-
JDK-8059269 FileHandler may throw NPE if pattern is a simple name and the lock file already exists
-
- Closed
-