Skip to content

Commit 714c2de

Browse files
committed
[LOGMGR-49] Fix deserialization of logger instances
1 parent eb25cfb commit 714c2de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/jboss/logmanager/SerializedLogger.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
package org.jboss.logmanager;
2424

25-
import java.io.ObjectStreamException;
2625
import java.io.Serializable;
2726

2827
/**
@@ -47,10 +46,9 @@ public SerializedLogger(final String name) {
4746
* Get the actual logger for this marker.
4847
*
4948
* @return the logger
50-
* @throws ObjectStreamException (never)
5149
* @see <a href="http://java.sun.com/javase/6/docs/platform/serialization/spec/input.html#5903">Serialization spec, 3.7</a>
5250
*/
53-
public Object readResolve() throws ObjectStreamException {
54-
return Logger.getLogger(name);
51+
public Object readResolve() {
52+
return java.util.logging.Logger.getLogger(name);
5553
}
5654
}

0 commit comments

Comments
 (0)