bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/26668] java.util.logging bugs


From: gnu_andrew at member dot fsf dot org
Subject: [Bug classpath/26668] java.util.logging bugs
Date: 7 May 2006 17:53:40 -0000


------- Comment #16 from gnu_andrew at member dot fsf dot org  2006-05-07 17:53 
-------
This patch means that some Mauve tests now fail as internal LogManager code
trips some code that causes security exceptions:

FAIL: gnu.testlet.java.util.logging.Handler.getErrorManager: uncaught
exception: java.lang.ExceptionInInitializerError
FAIL: gnu.testlet.java.util.logging.Handler.setEncoding: uncaught exception:
java.lang.ExceptionInInitializerError
FAIL: gnu.testlet.java.util.logging.Handler.setErrorManager: uncaught
exception: java.lang.ExceptionInInitializerError
FAIL: gnu.testlet.java.util.logging.Handler.setFilter: uncaught exception:
java.lang.ExceptionInInitializerError
FAIL: gnu.testlet.java.util.logging.Handler.setLevel: uncaught exception:
java.lang.ExceptionInInitializerError
FAIL: gnu.testlet.java.util.logging.Logger.getLogger: uncaught exception:
java.lang.ExceptionInInitializerError
FAIL: gnu.testlet.java.util.logging.Logger.getName: uncaught exception:
java.lang.ExceptionInInitializerError
FAIL: gnu.testlet.java.util.logging.Logger.securityChecks: uncaught exception:
java.lang.ExceptionInInitializerError

I looked at the first of these, getErrorManager().  The test tries first to get
the error manager without permission, and then after obtaining permission from
its own test security manager.  The first test now fails with an exception, as
an exception is generated in the initialisation of the log manager.  When
trying to set the level of the root logger, it fails due to the security
manager's restrictions.  I presume this is why the others now also fail.
Beforehand, this was obscured by the initialisation taking place in the
constructor before the security manager was activated.


-- 

gnu_andrew at member dot fsf dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gnu_andrew at member dot fsf
                   |                            |dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26668





reply via email to

[Prev in Thread] Current Thread [Next in Thread]