Daniel Fuchs
ddddd1d31f
8025140: TEST_BUG: java/util/logging/Logger/getGlobal tests fail due to timeout
...
Arbitrary timeouts in the tests @run lines where too agressive for some configurations. The tests will now run with default timeout.
Reviewed-by: alanb, mchung
2013-09-25 09:47:24 +02:00
Daniel Fuchs
f0317e41c1
8024525: Make Logger log methods call isLoggable()
...
This changeset makes the various Logger logging method call isLoggable() instead of inlining the level checks.
Reviewed-by: mchung, alanb
2013-09-12 17:01:39 +02:00
Daniel Fuchs
33dbc2d51c
8023168: Cleanup LogManager class initialization and LogManager/LoggerContext relationship
...
8021003: java/util/logging/Logger/getGlobal/TestGetGlobalConcurrent.java fails intermittently
8019945: test/java/util/logging/LogManagerInstanceTest.java failing intermittently
This fix untangles the class initialization of Logger and LogManager, and also cleans up the relationship between LogManager, LoggerContext, and Logger, which were at the root cause of some intermittent test failures.
Reviewed-by: mchung, martin, plevart
2013-09-09 13:59:51 +02:00
Daniel Fuchs
a0c3d88fba
8019853: Break logging and AWT circular dependency
...
Break logging and AWT circular dependency, which was at the root cause for 8023258 - Logger.getLogger() after ImageIO.read() returns different logger instance
Reviewed-by: mchung, art
2013-09-04 16:22:22 +02:00
Daniel Fuchs
b81e7785d1
8016127: NLS: logging.properties translatability recommendation
...
8024131: Issues with cached localizedLevelName in java.util.logging.Level
This fix updates logging.properties resource bundles to follow internationalization guidelines. It also fixes a caching issue with localizedLevelName. The regression test that was added needs both fixes to pass.
Reviewed-by: mchung, alanb
2013-09-02 18:28:50 +02:00
Daniel Fuchs
6d2de008d7
8005899: Logger.getLogger(name, null) should not allow to reset a non-null resource bundle
...
Reviewed-by: mchung, lancea
2013-08-23 20:59:34 +02:00
Daniel Fuchs
91e6f28796
8019948: java/util/logging/bundlesearch/ResourceBundleSearchTest.java is failing intermittently
...
Reviewed-by: mchung, dholmes
2013-08-13 16:00:44 +02:00
Daniel Fuchs
5f717a6674
7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
...
Due to subtle synchronization issues between LogManager & Logger class initialization the global logger doesn't have its 'manager' field initialized until the LogManager is initialized. This fix will ensure that the global logger has its 'manager' field set when getGlobal() is called.
Reviewed-by: mchung, plevart
2013-07-02 19:47:58 +02:00
Daniel Fuchs
677643324e
8017174: NPE when using Logger.getAnonymousLogger or LogManager.getLogManager().getLogger
...
This patch makes sure that LoggerContext instances created for applets have a root and global logger.
Reviewed-by: mchung
2013-07-02 11:30:31 +02:00
Mandy Chung
24edc8dc91
8010727: WLS fails to add a logger with "" in its own LogManager subclass instance
...
Reviewed-by: alanb, jgish
2013-05-14 08:07:08 -07:00
Jim Gish
b0c93f4d19
8013380: Removal of stack walk to find resource bundle breaks Glassfish startup
...
Use caller's classloader to load resource as an alternative to thread context classloader and system classloader
Reviewed-by: mchung, alanb
2013-05-16 11:19:00 -04:00
Jim Gish
8f316cc40e
8010939: Deadlock in LogManager
...
Re-order locks to avoid deadlock
Reviewed-by: mchung
2013-04-19 16:50:10 -07:00
Jim Gish
30e93b56e3
8012005: LogManager needs test to ensure stack trace is not being done to find bundle
...
Reviewed-by: mchung
2013-04-18 16:33:11 -04:00
Mandy Chung
c9e6a41b99
8006104: Improve tests to test ".useParentHandlers" property set in the logging configuration
...
Reviewed-by: alanb
2013-03-20 09:50:07 -07:00
Lana Steuck
4f62a2b334
Merge
2013-03-15 23:31:19 -07:00
Jim Gish
709f67b8f9
8002070: Remove the stack search for a resource bundle for Logger to use
...
The fragile, vulnerable, stack crawling has been eliminated from findResourceBundle(String)
Reviewed-by: mchung, alanb
2013-03-13 11:24:48 -04:00
Edvard Wendelin
2f5be3ab0d
Merge
2013-02-25 08:44:00 +01:00
David Holmes
eb1726c151
Merge
2013-02-04 18:08:50 -05:00
Henry Jen
293df92991
8005632: Extend java.util.Logger to use Supplier<String> for messages
...
Reviewed-by: briangoetz, mduigou
2013-01-25 16:13:32 -08:00
Alan Bateman
3ca765dfbd
8004931: add/removePropertyChangeListener should not exist in subset Profiles of Java SE
...
Reviewed-by: dholmes, mchung, ksrini
2013-01-21 23:23:12 -05:00
Mandy Chung
3243aaf47a
8005615: Java Logger fails to load tomcat logger implementation (JULI)
...
Reviewed-by: alanb, ahgross
2013-01-10 19:43:36 -08:00
Lana Steuck
b7af263526
Merge
2012-12-28 18:36:41 -08:00
David Katleman
306cab1006
8004982: JDK8 source with GPL header errors
...
Reviewed-by: ohair
2012-12-20 16:24:50 -08:00
Alexey Utkin
c5c34df7bf
8004928: TEST_BUG: Reduce dependence of CoreLib tests from the AWT subsystem
...
The tests were refactored to drop AWT dependence where it was possible.
Reviewed-by: alanb, mchung
2012-12-17 14:34:37 +04:00
Jim Gish
3e23931d0c
8004651: TEST: java/util/logging/CheckLockLocationTest.java failed to delete file (win)
...
Failure to delete test log file should be a warning instead of test failure
Reviewed-by: mduigou, smarks
2012-12-12 15:37:27 -08:00
Jim Gish
f436d23492
8003596: TEST_BUG: java/util/logging/CheckLockLocationTest.java failing [win]
...
Reviewed-by: alanb
2012-12-04 20:21:19 +00:00
Jim Gish
7aed72aa11
8003380: Compiler warnings in logging test code
...
Use generics, suppress warnings where appropriate, remove unused imports, etc.
Reviewed-by: lancea, chegar
2012-11-29 12:28:02 +00:00
Jim Gish
f439018255
6244047: impossible to specify directories to logging FileHandler unless they exist
...
Reviewed-by: alanb
2012-11-15 13:46:45 +00:00
Alan Bateman
430592a30e
7197491: update copyright year to match last edit in jdk8 jdk repository
...
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Jim Gish
07f94ef8bc
7159567: inconsistent configuration of MemoryHandler
...
Reviewed-by: mchung, alanb
2012-10-25 15:04:09 -07:00
Jim Gish
48ba63e9e0
7146552: java/util/logging/LoggingMXBeanTest.java failing intermittently
...
Reviewed-by: alanb, mchung
2012-10-13 10:15:57 +01:00
Alan Bateman
280b56b270
7192275: Minimize LogManager dependencies on java.beans
...
Reduce dependency to PropertyChangeListener and PropertyChangeEvent. Also add basic test coverage.
Reviewed-by: dcubed, dsamersoff, mchung
2012-08-19 13:03:00 +01:00
Alan Bateman
3269d85838
7113349: Initial changeset for Macosx port to jdk
...
Co-authored-by: Alexander Potochkin <alexander.potochkin@oracle.com>
Co-authored-by: Alexander Zuev <alexander.zuev@oracle.com>
Co-authored-by: Andrew Brygin <andrew.brygin@oracle.com>
Co-authored-by: Artem Ananiev <artem.ananiev@oracle.com>
Co-authored-by: Alex Strange <astrange@apple.com>
Co-authored-by: Bino George <bino@apple.com>
Co-authored-by: Christine Lu <christine.lu@oracle.com>
Co-authored-by: David Katleman <david.katleman@oracle.com>
Co-authored-by: David Durrence <david_durrence@apple.com>
Co-authored-by: Dmitry Cherepanov <dmitry.cherepanov@oracle.com>
Co-authored-by: Greg Lewis <glewis@eyesbeyond.com>
Co-authored-by: Kevin Miller <kevin_m_miller@apple.com>
Co-authored-by: Kurt Miller <kurt@intricatesoftware.com>
Co-authored-by: Landon Fuller <landonf@plausiblelabs.com>
Co-authored-by: Leonid Romanov <leonid.romanov@oracle.com>
Co-authored-by: Loefty Walkowiak <loefty@apple.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Roger Hoover <rhoover@apple.com>
Co-authored-by: Scott Kovatch <scott.kovatch@oracle.com>
Co-authored-by: Sergey ByloKhov <sergey.bylokhov@oracle.com>
Co-authored-by: Mike Swingler <swingler@apple.com>
Co-authored-by: Tomas Hurka <tomas.hurka@oracle.com>
Reviewed-by: jjh, alanb, dholmes, anthony, ohrstrom, ksrini, jrose, weijun, smarks
2012-03-06 20:34:38 +00:00
Weijun Wang
035522bd7a
7092627: use agentvm mode instead of samevm in regtests
...
Reviewed-by: alanb, dsamersoff
2011-09-22 12:05:26 +08:00
Daniel D. Daugherty
a86407a0b2
7045594: 4/4 fix for 6977677 introduced a ResourceBundle race
...
Fix Logger.getLogger() ResourceBundle name race.
Reviewed-by: dholmes, mchung
2011-06-01 17:11:23 -07:00
Daniel D. Daugherty
0d21eb970f
7048308: 4/4 LoggingDeadlock3 test timeout is too small
...
Change timeout for test from 15 seconds to 80 seconds.
Reviewed-by: dholmes
2011-06-01 17:10:30 -07:00
Daniel D. Daugherty
41491be4d6
7041595: 4/4 add lost test for 6487638
...
Add missing LoggingDeadlock3.java and LoggingDeadlock3.props
Reviewed-by: dsamersoff, never, acorn, mchung
2011-05-16 12:58:48 -07:00
Daniel D. Daugherty
564b2b7a17
6977677: 3/2 Deadlock on logging subsystem initialization
...
Over synchronized Logger.getLogger() deadlocks with LogManager.<clinit>via PlatformLogger
Reviewed-by: dsamersoff, never, acorn, mchung
2011-05-16 12:56:29 -07:00
Kelly O'Hair
7c8e01891a
Merge
2011-04-13 16:56:16 -07:00
Kelly O'Hair
d2b1e20c7d
7033660: Update copyright year to 2011 on any files changed in 2011
...
Reviewed-by: dholmes
2011-04-06 22:06:11 -07:00
Mandy Chung
47a20b7526
6381464: SimpleFormatter should use one single line format
...
Define a new logging properties to support custom output format
Reviewed-by: alanb
2011-03-29 15:58:18 -07:00
Mandy Chung
793f1078b6
7024172: Move BufferPoolMXBean and PlatformLoggingMXBean java.lang.management
...
Reviewed-by: alanb
2011-03-29 15:50:55 -07:00
Stuart Marks
6e7cb44eea
6880112: Project Coin: Port JDK core library code to use diamond operator
...
Reviewed-by: darcy, lancea, alanb, briangoetz, mduigou, mchung
2010-12-20 13:47:04 -08:00
Daniel D. Daugherty
cf3105821b
6971847: 4/4 jmap '-histo:live' option is necessary for proper leak detection
...
Add work around for 6971851. Abort if 'histo:live' option isn't supported.
Reviewed-by: alanb, darcy
2010-07-26 09:06:47 -07:00
Daniel D. Daugherty
7dea7787e2
6964018: 3/4 AnonLoggerWeakRefLeak and LoggerWeakRefLeak can fail in JPRT
...
Refactor test/sun/tools/common/* code and refactor AnonLoggerWeakRefLeak and LoggerWeakRefLeak to use it.
Reviewed-by: ohair, alanb
2010-07-21 17:01:31 -07:00
Daniel D. Daugherty
ccbd107813
6968401: 3/3 disable tests added by 6942989 until 6964018 is fixed
...
Disable AnonLoggerWeakRefLeak.sh and LoggerWeakRefLeak.sh
Reviewed-by: ohair
2010-07-12 14:19:44 -07:00
Jeremy Manson
9a0c9857b1
6942989: 2/2 Memory leak of java.lang.ref.WeakReference objects
...
Use ReferenceQueues to manage WeakReferences in LogManager and Logger.
Reviewed-by: dholmes, alanb, emcmanus, tonyp
2010-06-22 10:54:59 -07:00
Mandy Chung
ec720fb754
6961408: test/java/util/logging/ParentLoggersTest.java fails in samevm mode
...
Check against the list of loggers added since the test begins to run
Reviewed-by: dcubed
2010-06-16 23:27:41 -07:00
Kelly O'Hair
fe008ae27a
6943119: Rebrand source copyright notices
...
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Mandy Chung
f66cba870b
6876135: Add PlatformLoggingMXBean to eliminate the dependency on JMX from logging
...
Added a new PlatformLoggingMXBean interface to extend PlatformManagedObject instead of LoggingMXBean
Reviewed-by: alanb
2009-10-27 16:32:23 -07:00