view patches/security/icedtea-6657695.patch @ 1560:3b93da7c778a icedtea6-1.5.1

2009-08-07 Lillian Angel <langel@redhat.com> * NEWS: Updated. * Makefile.am: Added new security patches. * plugin/icedtea/netscape/javascript/JSObject.java: Security patch applied to disallow the ability to run unsigned code as signed under some cases. * plugin/icedtea/sun/applet/PluginAppletSecurityContext.java: * Likewise. * rt/net/sourceforge/jnlp/SecurityDesc.java: Likewise. * rt/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Likewise. * plugin/icedtea/netscape/javascript/JSObjectCreatePermission.java: * Likewise. * rt/netscape/javascript/JSObjectCreatePermission.java: Likewise. * patches/security/icedtea-6588003.patch, patches/security/icedtea-6656586.patch, patches/security/icedtea-6656610.patch, patches/security/icedtea-6656625.patch, patches/security/icedtea-6657133.patch, patches/security/icedtea-6657619.patch, patches/security/icedtea-6657625.patch, patches/security/icedtea-6657695.patch, patches/security/icedtea-6660049.patch, patches/security/icedtea-6660539.patch, patches/security/icedtea-6736293.patch, patches/security/icedtea-6738524.patch, patches/security/icedtea-6777448.patch, patches/security/icedtea-6777487.patch, patches/security/icedtea-6801071.patch, patches/security/icedtea-6801497.patch, patches/security/icedtea-6813167.patch, patches/security/icedtea-6823373.patch, patches/security/icedtea-6824440.patch, patches/security/icedtea-6830335.patch, patches/security/icedtea-6845701.patch: New security patches.
author langel
date Fri, 07 Aug 2009 10:05:32 -0400
parents
children
line wrap: on
line source

--- old/./src/share/classes/com/sun/security/sasl/util/AbstractSaslImpl.java	Tue Jul 14 14:55:29 2009
+++ openjdk/jdk/src/share/classes/com/sun/security/sasl/util/AbstractSaslImpl.java	Tue Jul 14 14:55:28 2009
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2003 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -48,10 +48,6 @@
  * @author Rosanna Lee
  */
 public abstract class AbstractSaslImpl {
-    /**
-     * Logger for debug messages
-     */
-    protected static Logger logger;  // set in initLogger(); lazily loads logger
 
     protected boolean completed = false;
     protected boolean privacy = false;
@@ -68,7 +64,6 @@
     protected String myClassName;
 
     protected AbstractSaslImpl(Map props, String className) throws SaslException {
-        initLogger();
         myClassName = className;
 
         // Parse properties  to set desired context options
@@ -325,19 +320,15 @@
         }
     }
 
-    /**
-     * Sets logger field.
-     */
-    private static synchronized void initLogger() {
-        if (logger == null) {
-            logger = Logger.getLogger(SASL_LOGGER_NAME);
-        }
-    }
-
     // ---------------- Constants  -----------------
     private static final String SASL_LOGGER_NAME = "javax.security.sasl";
     protected static final String MAX_SEND_BUF = "javax.security.sasl.sendmaxbuffer";
 
+    /** 
+     * Logger for debug messages 
+     */
+    protected static final Logger logger = Logger.getLogger(SASL_LOGGER_NAME);
+
     // default 0 (no protection); 1 (integrity only)
     protected static final byte NO_PROTECTION = (byte)1;
     protected static final byte INTEGRITY_ONLY_PROTECTION = (byte)2;