jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java
changeset 36523 116e5d5cdade
parent 30005 b2f720a258c4
child 45678 65fdff10664d
equal deleted inserted replaced
36522:0017f3cf1657 36523:116e5d5cdade
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   578                 cl = cld.loadClass(name);
   578                 cl = cld.loadClass(name);
   579             } catch (Exception ex) {
   579             } catch (Exception ex) {
   580                 // if anything goes wrong, do it the old way
   580                 // if anything goes wrong, do it the old way
   581                 cl = Class.forName(name);
   581                 cl = Class.forName(name);
   582             }
   582             }
   583             if (cl != null)             // XXX - always true?
   583             return (DataContentHandler) cl.newInstance();
   584                 return (DataContentHandler)cl.newInstance();
       
   585         } catch (IllegalAccessException e) {
   584         } catch (IllegalAccessException e) {
   586             if (LogSupport.isLoggable())
   585             if (LogSupport.isLoggable())
   587                 LogSupport.log("Can't load DCH " + name, e);
   586                 LogSupport.log("Can't load DCH " + name, e);
   588         } catch (ClassNotFoundException e) {
   587         } catch (ClassNotFoundException e) {
   589             if (LogSupport.isLoggable())
   588             if (LogSupport.isLoggable())