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

changeset 707
31893650acaf
parent 650
121e938cb9c3
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/unmarshaller/DefaultValueLoaderDecorator.java	Mon Sep 29 11:50:34 2014 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/unmarshaller/DefaultValueLoaderDecorator.java	Sun Aug 31 16:14:36 2014 +0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -44,10 +44,10 @@
    1.11      @Override
    1.12      public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException {
    1.13          // install the default value, but don't override the one given by the parent loader
    1.14 -        if(state.elementDefaultValue==null)
    1.15 -            state.elementDefaultValue = defaultValue;
    1.16 +        if(state.getElementDefaultValue() == null)
    1.17 +            state.setElementDefaultValue(defaultValue);
    1.18  
    1.19 -        state.loader = l;
    1.20 +        state.setLoader(l);
    1.21          l.startElement(state,ea);
    1.22      }
    1.23  }

mercurial