Lance Andersen
004433bf70
8161965: Create initial javadoc description for modules
...
Reviewed-by: mchung, alanb, abuckley
2016-08-18 12:39:23 -04:00
Daniel Fuchs
d5e84de014
8159245: Loggers created by system classes are not initialized correctly when configured programmatically from application code
...
Loggers of the same name now share the same configuration.
Reviewed-by: mchung, mli
2016-07-12 11:29:01 +01:00
Ramanand Patil
78f385b79a
8153955: increase java.util.logging.FileHandler MAX_LOCKS limit
...
This patch adds a new configurable property "java.util.logging.FileHandler.maxLocks" to java.util.logging.FileHandler which can be defined in the logging configuration file and makes it possible to configure the maximum number of concurrent log file locks a FileHandler can handle. If not overridden, the default value of maxLocks (100) remains unchanged.
Reviewed-by: dfuchs, coffeys
2016-06-27 11:52:49 +05:30
Daniel Fuchs
4c69f47805
8153666: Optimize Formatter.formatMessage
...
This patch brings a small optimization that removes needless synchronization in Formatter.formatMessage. It also fixes the code that decides whether to call MessageFormat, and brings a small clarification to the API documentation on the conditions when that will happen.
Reviewed-by: rriggs, martin
2016-06-13 08:20:34 +01:00
Daniel Fuchs
a96b7f7d25
8139982: Re-examine java.management dependency on java.util.logging.LoggingMXBean
...
The logging MXBean implementation no longer implements java.util.logging.LoggingMXBean. java.lang.management.PlatformLoggingMXBean is used instead. java.util.logging.LoggingMXBean and java.util.logging.LogManager::getLoggingMXBean are now deprecated. Types and accessors defined in java.lang.management should be used instead.
Reviewed-by: mchung
2016-05-17 19:24:46 +02:00
Joe Darcy
01ee88c8ae
6850612: Deprecate Class.newInstance since it violates the checked exception language contract
...
Reviewed-by: lancea, mullan, dfuchs
2016-05-03 10:40:54 -07:00
Daniel Fuchs
1e0d1458a2
8148568: LoggerFinder.getLogger and LoggerFinder.getLocalizedLogger should take a Module argument instead of a Class
...
Changes System.LoggerFinder methods to take a Module argument instead of a Class.
Reviewed-by: mchung
2016-04-27 18:04:16 +02:00
Chris Hegarty
78ca5988bc
8153158: Remove sun.misc.ManagedLocalsThread from java.logging
...
Reviewed-by: dfuchs, redestad
2016-04-18 20:58:30 +01:00
Chris Hegarty
07cdc33e34
8137058: Clear out all non-Critical APIs from sun.reflect
...
Reviewed-by: alanb, jfranck, mchung
2016-04-15 16:19:15 +01:00
Chris Hegarty
25b68378f6
8153737: Unsupported Module
...
Reviewed-by: alanb, mchung, psandoz
2016-04-09 20:12:13 +01:00
Daniel Fuchs
da3998f139
8150840: Add an internal system property to control the default level of System.Logger when java.logging is not present
...
Reviewed-by: mchung, rriggs
2016-03-25 17:12:18 +01:00
Alan Bateman
db4d383614
8142968: Module System implementation
...
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Daniel Fuchs
3059ef621c
8148820: Missing @since Javadoc tag in Logger.log(Level, Supplier)
...
Added @since 1.8
Reviewed-by: lancea, rriggs
2016-03-02 11:14:35 +01:00
Iris Clark
b5f3e3a276
8149601: Update references from "1.9" to "9"
...
Reviewed-by: chegar, joehw
2016-02-12 09:49:49 -08:00
Iris Clark
9d07dc02e1
8136494: Update "@since 1.9" to "@since 9" to match java.version.specification
...
Reviewed-by: alanb, chegar, lancea, prr
2016-01-20 11:02:36 -08:00
Chris Hegarty
aa0ef2e9f5
8145544: Move sun.misc.VM to jdk.internal.misc
...
Reviewed-by: alanb, mullan, weijun
2016-01-06 10:01:44 +00:00
Daniel Fuchs
72bed9c5df
8145686: SimpleConsoleLogger and LogRecord should take advantage of StackWalker to skip classes implementing System.Logger
...
Methods defined on classes implementing System.Logger will be skipped when looking for the calling method.
Reviewed-by: mchung
2015-12-21 13:30:58 +01:00
Daniel Fuchs
66f1f09adb
8144262: LogRecord.getMillis() method is a convenience API that should not have been deprecated
...
LogRecord.getMillis() is no longer deprecated. LogRecord.setInstant() check that the instant millis can fit in a long millisecond-since-epoch.
Reviewed-by: lancea, rriggs, smarks
2015-12-07 12:35:37 +01:00
Mandy Chung
eb2c6c52bb
8143911: Reintegrate JEP 259: Stack-Walking API
...
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Hamlin Li <huaming.li@oracle.com>
Reviewed-by: coleenp, dfuchs, bchristi, psandoz, sspitsyn
2015-11-24 15:05:58 -08:00
Christian Tornqvist
557f4f366f
8143931: Back out JDK-8140450
...
Reviewed-by: coleenp
2015-11-24 10:12:32 -08:00
Mandy Chung
500a73cdb1
8140450: Implement JEP 259: Stack-Walking API
...
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Hamlin Li <huaming.li@oracle.com>
Reviewed-by: coleenp, dfuchs, bchristi, psandoz, sspitsyn
2015-11-23 12:44:50 -08:00
Daniel Fuchs
bd8942b7a1
8140364: JEP 264 Platform Logger API and Service Implementation
...
Initial implementation for JEP 264 Platform Logger API and Service
Reviewed-by: mchung, psandoz, rriggs
2015-11-20 19:26:16 +01:00
Daniel Fuchs
bd69fa0635
8033661: readConfiguration does not cleanly reinitialize the logging system
...
Two new updateConfiguration methods have been added to LogManager: call updateConfiguration to update a configuration *after* the LogManager is initialized.
Reviewed-by: mchung
2015-10-12 20:13:22 +02:00
Chris Hegarty
0cc24c29ca
8137056: Move SharedSecrets and interface friends out of sun.misc
...
Reviewed-by: alanb, mchung, psandoz, rriggs
2015-09-28 13:39:27 +01:00
Martin Buchholz
24742f7b1d
8134984: Text files should end in exactly one newline
...
Automated fixup of newlines at end-of-file via the usual perl one-liner
Reviewed-by: chegar, sherman
2015-09-02 14:11:50 -07:00
Alexander Stepanov
c78487e756
8133115: docs: replace <tt> tags (obsolete in html5) for java.util.logging, java.util.prefs, java.util.zip, java.util.jar
...
Reviewed-by: lancea
2015-08-06 19:07:35 +03:00
Daniel Fuchs
6af81451d1
8132550: java/util/logging/LoggingDeadlock2.java times out
...
LogManager must also use the configurationLock when reading its primordial configuration.
Reviewed-by: joehw
2015-08-06 16:36:47 +02:00
Daniel Fuchs
38a04dd009
8080933: LogManager.demandSystemLogger should accept a 'caller' argument
...
The caller's class is now passed to LogManager.demandSystemLogger
Reviewed-by: mchung
2015-06-16 12:15:54 +02:00
Joe Darcy
5899576955
8075284: fix up miscellaneous TM constructions
...
Reviewed-by: lancea
2015-05-19 13:30:03 -07:00
Peter Levart
30bcd97f81
8077846: improve locking strategy for readConfiguration(), reset(), and initializeGlobalHandlers()
...
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Reviewed-by: dholmes, alanb, mchung
2015-05-17 10:38:36 +02:00
Chris Hegarty
b6eef64a98
8047149: Enhance thread contexts in core libraries
...
Reviewed-by: alanb
2015-04-02 11:43:11 +01:00
Daniel Fuchs
ce950c0798
7113878: LogManager - namedLoggers should be ConcurrentHashMap instead of Hashtable
...
NamedLoggers is now a ConcurrentHashMap. findLogger is updated to take benefit of the change.
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: dholmes, lancea, martin, mchung, plevart
2015-04-02 16:24:46 +02:00
Daniel Fuchs
679db144e5
8075810: LogManager.readConfiguration may throw undocumented IllegalArgumentException
...
LogManager.readConfiguration will wrap the IllegalArgumentException thrown by Properties.load inside an IOException.
Reviewed-by: lancea, mchung, rriggs
2015-04-02 11:42:07 +02:00
Daniel Fuchs
fc084beb84
8072645: java.util.logging should use java.time to get more precise time stamps
...
J.u.logging uses j.t.Instant to store LogRecord time stamps. XMLFormatter format is updated to allow for a new optional <nanos> element containing a nano second adjustment. SimpleFormatter passes a ZonedDateTime object to String.format. LogRecord getMillis/setMillis are deprecated, replaced by getInstant/setInstant.
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: scolebourne, plevart, rriggs
2015-02-25 18:41:07 +01:00
Aleksey Shipilev
e0e6ce31fd
8073479: Replace obj.getClass hacks with Objects.requireNonNull
...
Reviewed-by: dfuchs, plevart, vlivanov
2015-02-20 18:32:10 +03:00
Daniel Fuchs
7e7e10eb42
8065991: LogManager unecessarily calls JavaAWTAccess from within a critical section
...
The call to JavaAWTAccess is moved outside of the critical section
Reviewed-by: mchung
2014-12-05 12:20:51 +01:00
Chris Hegarty
43842f6349
Merge
2014-12-03 19:28:35 +00:00
Chris Hegarty
441905cdc7
8049367: Modular Run-Time Images
...
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore
2014-12-03 14:22:58 +00:00
Daniel Fuchs
96da5b9ce3
8060132: Handlers configured on abstract nodes in logging.properties are not always properly closed
...
Loggers which have been configured with a handler in the configuration file will be retained by the LogManager until reset() is called. A new configuration property is added to explicitely turn the fix off.
Reviewed-by: mchung
2014-11-24 17:02:37 +01:00
Daniel Fuchs
59ca72f0eb
8059767: FileHandler should allow 'long' limits and handle overflow of MeteredStream.written
...
FileHandler now uses 'long' for limit and MeteredStream.written. It also reads a long for limit from the configuration, and has a new constructor allowing to pass a 'long' for limit.
Reviewed-by: alanb, igerasim, mchung
2014-10-22 17:23:14 +02:00
Daniel Fuchs
52d7b541a6
8042797: Avoid strawberries in LogRecord
...
Reviewed-by: mchung, skoivu, igerasim
2014-06-05 18:46:37 +02:00
Daniel Fuchs
14363dbaab
8041564: Improved management of logger resources
...
Reviewed-by: skoivu, mchung, igerasim
2014-05-14 15:40:39 +02:00
Daniel Fuchs
9183fba213
8028788: Logger.enterring uses String concatenation in a loop
...
Changed code to use StringBuilder instead.
Reviewed-by: chegar, lancea
2014-10-07 14:49:45 +02:00
Daniel Fuchs
7200372290
8025690: Default FileHandler constructor doesn't throw NullPointerException if pattern is empty and count > 1
...
Added additional check in default constructor in order to fix the oddity and make the implementation comply with the spec.
Reviewed-by: lancea
2014-10-01 18:16:45 +02:00
Daniel Fuchs
9087c7536e
8059269: FileHandler may throw NPE if pattern is a simple name and the lock file already exists
...
NPE may be thrown when Path.getParentPath() returns null. The fix is to call Path.getAbsolutePath().getParentPath() when Path.getParentPath() returns null.
Reviewed-by: alanb
2014-09-29 18:56:32 +02:00
Daniel Fuchs
0a6f6d9d89
8043306: Provide a replacement for the API that allowed to listen for LogManager configuration changes
...
Added two new methods to LogManager (addConfigurationListener/removeConfigurationListener) which provide an equivalent functionality with no ties to java.beans.
Reviewed-by: alanb, mchung, plevart, psandoz
2014-09-26 11:29:29 +02:00
Chris Hegarty
3bc69d393d
8054834: Modular Source Code
...
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Reviewed-by: alanb, chegar, ihse, mduigou
2014-08-17 15:54:13 +01:00