src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/unmarshaller/SAXConnector.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 142,162 **** if( local==null || local.length()==0 ) local=qname; if( qname==null || qname.length()==0 ) qname=local; ! ! boolean ignorable = true; ! StructureLoader sl; ! ! // not null only if element content is processed (StructureLoader is used) ! // ugly ! if((sl = this.context.getStructureLoader()) != null) { ! ignorable = ((ClassBeanInfoImpl)sl.getBeanInfo()).hasElementOnlyContentModel(); ! } ! ! processText(ignorable); tagName.uri = uri; tagName.local = local; tagName.qname = qname; tagName.atts = atts; --- 142,152 ---- if( local==null || local.length()==0 ) local=qname; if( qname==null || qname.length()==0 ) qname=local; ! processText(!context.getCurrentState().isMixed()); tagName.uri = uri; tagName.local = local; tagName.qname = qname; tagName.atts = atts;
*** 202,212 **** public void skippedEntity(String name) { // nop } private void processText( boolean ignorable ) throws SAXException { ! if( predictor.expectText() && (!ignorable || !WhiteSpaceProcessor.isWhiteSpace(buffer))) next.text(buffer); buffer.setLength(0); } } --- 192,202 ---- public void skippedEntity(String name) { // nop } private void processText( boolean ignorable ) throws SAXException { ! if (predictor.expectText() && (!ignorable || !WhiteSpaceProcessor.isWhiteSpace(buffer))) next.text(buffer); buffer.setLength(0); } }