src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/reflect/Accessor.java

changeset 707
31893650acaf
parent 650
121e938cb9c3
child 760
e530533619ec
equal deleted inserted replaced
706:1e9d08d74c48 707:31893650acaf
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2014, 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
146 set(bean, (ValueT) value); 146 set(bean, (ValueT) value);
147 } 147 }
148 148
149 public void receive(UnmarshallingContext.State state, Object o) throws SAXException { 149 public void receive(UnmarshallingContext.State state, Object o) throws SAXException {
150 try { 150 try {
151 set((BeanT) state.target, (ValueT) o); 151 set((BeanT) state.getTarget(), (ValueT) o);
152 } catch (AccessorException e) { 152 } catch (AccessorException e) {
153 Loader.handleGenericException(e, true); 153 Loader.handleGenericException(e, true);
154 } catch (IllegalAccessError iae) { 154 } catch (IllegalAccessError iae) {
155 // throw UnmarshalException instead IllegalAccesssError | Issue 475 155 // throw UnmarshalException instead IllegalAccesssError | Issue 475
156 Loader.handleGenericError(iae); 156 Loader.handleGenericError(iae);

mercurial