jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/SchemaCache.java
changeset 43852 93a527059d8a
parent 30994 6efa17f32dcb
equal deleted inserted replaced
43752:3c68ef249093 43852:93a527059d8a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, 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
    92                             schemaFactory.setResourceResolver(resourceResolver);
    92                             schemaFactory.setResourceResolver(resourceResolver);
    93                         }
    93                         }
    94                         schema = schemaFactory.newSchema(source);
    94                         schema = schemaFactory.newSchema(source);
    95 
    95 
    96                     } catch (IOException | SAXException e) {
    96                     } catch (IOException | SAXException e) {
    97                         throw new InternalError(e);
    97                         InternalError ie = new InternalError(e.getMessage());
       
    98                         ie.initCause(e);
       
    99                         throw ie;
    98                     } finally {
   100                     } finally {
    99                         if (resourceResolver != null) resourceResolver.closeStreams();
   101                         if (resourceResolver != null) resourceResolver.closeStreams();
   100                     }
   102                     }
   101                 }
   103                 }
   102             }
   104             }
   219 
   221 
   220     @Override
   222     @Override
   221     public void setCertifiedText(boolean certifiedText) {
   223     public void setCertifiedText(boolean certifiedText) {
   222     }
   224     }
   223 }
   225 }
   224 
       
   225