Deprecated API


Contents
Deprecated Interfaces
com.sun.xml.bind.serializer.NamespaceContext2
          in JAXB1.0.1 
com.sun.xml.bind.serializer.PrefixCallback
          in JAXB1.0.1 
com.sun.xml.bind.unmarshaller.SAXUnmarshallerHandler
          in JAXB1.0.1 
com.sun.xml.bind.unmarshaller.UnmarshallableObject
          in JAXB1.0.1 
com.sun.xml.bind.unmarshaller.UnmarshallingContext
          in JAXB1.0.1 
com.sun.xml.bind.unmarshaller.UnmarshallingEventHandler
          in JAXB1.0.1 
com.sun.xml.bind.validator.ValidatableObject
          in JAXB1.0.1 
com.sun.xml.bind.serializer.XMLSerializable
          in JAXB1.0.1 
com.sun.xml.bind.serializer.XMLSerializer
          in JAXB1.0.1 
 

Deprecated Classes
com.sun.xml.bind.api.BridgeContext
          The caller no longer needs to use this, as Bridge has methods that can work without BridgeContext. 
com.sun.xml.bind.serializer.ContentHandlerAdaptor
          in JAXB1.0.1 
com.sun.xml.bind.unmarshaller.ContentHandlerEx
          in JAXB1.0.1 
com.sun.xml.bind.unmarshaller.ContentHandlerExAdaptor
          in JAXB1.0.1 
com.sun.xml.bind.ContextFactory
          in JAXB1.0.1 
com.sun.xml.bind.DatatypeConverterImpl
          in JAXB 2.2.4 - use javax.xml.bind.DatatypeConverterImpl instead or let us know why you can't 
com.sun.xml.bind.DefaultJAXBContextImpl
          in JAXB1.0.1 
com.sun.xml.bind.GrammarInfo
          in JAXB1.0.1 
com.sun.xml.bind.marshaller.MarshallerImpl
          in JAXB1.0.1 
com.sun.xml.bind.validator.MSVValidator
          in JAXB1.0.1 
com.sun.xml.bind.serializer.NamespaceContextImpl
          in JAXB1.0.1 
com.sun.xml.bind.marshaller.SAXMarshaller
          in JAXB1.0.1 
com.sun.xml.xsom.impl.parser.SAXParserFactoryAdaptor
            
com.sun.xml.bind.unmarshaller.SAXUnmarshallerHandlerImpl
          in JAXB1.0.1 
com.sun.xml.bind.marshaller.SchemaLocationFilter
          not used in 2.0 
com.sun.xml.bind.TypeRegistry
          in JAXB1.0.1 
com.sun.xml.bind.unmarshaller.UnmarshallerImpl
          in JAXB1.0.1 
com.sun.xml.bind.marshaller.Util
          in JAXB1.0.1 
com.sun.xml.bind.validator.ValidatingUnmarshaller
          in JAXB1.0.1 
com.sun.xml.bind.validator.ValidatorImpl
          in JAXB1.0.1 
 

Deprecated Exceptions
com.sun.xml.bind.unmarshaller.UnreportedException
          in 1.0.1. Error should be reported to the appropriate error handler as soon as it is detected. 
 

Deprecated Annotation Types
com.sun.xml.bind.annotation.XmlIsSet
          this hasn't been implemented in the RI, and this hasn't been speced yet. I believe Joe asked for this feature. I'd like to drop this. 
 

Deprecated Fields
com.sun.xml.bind.marshaller.Messages.ERR_DANGLING_IDREF
          only used from 1.0 
com.sun.xml.bind.marshaller.Messages.ERR_MISSING_OBJECT
          use ERR_MISSING_OBJECT2 
com.sun.xml.bind.marshaller.Messages.ERR_NOT_IDENTIFIABLE
          only used from 1.0 
com.sun.xml.bind.validator.Messages.MISSING_OBJECT
          use MISSING_OBJECT2 
com.sun.xml.bind.validator.Messages.MISSING_OBJECT2
          use com.sun.xml.bind.serializer.Util#createMissingObjectError(JAXBObject, String) 
com.sun.xml.bind.DatatypeConverterImpl.theInstance
           
com.sun.xml.bind.v2.WellKnownNamespace.XML_NAMESPACE_URI
          Use javax.xml.XMLConstants.XML_NS_URI instead; 
com.sun.xml.bind.v2.WellKnownNamespace.XML_SCHEMA
          Use javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI instead; 
com.sun.xml.bind.v2.WellKnownNamespace.XML_SCHEMA_INSTANCE
          Use javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI instead 
 

Deprecated Methods
com.sun.codemodel.JPackage._class(int, String, boolean)
            
com.sun.codemodel.JDefinedClass._class(int, String, boolean)
            
com.sun.codemodel.JClassContainer._class(int, String, boolean)
          use JClassContainer._class(int, String, ClassType) 
com.sun.codemodel.JAnnotationUse.annotate(Class)
          use JAnnotationArrayMember.annotate(java.lang.Class) 
com.sun.tools.xjc.model.CBuiltinLeafInfo.asElement()
          always return null at this level. 
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.asElement()
          always return null at this level. 
com.sun.codemodel.JClass.boxify()
          calling this method from JClass would be meaningless, since it's always guaranteed to return this. 
com.sun.tools.xjc.model.CEnumLeafInfo.canBeReferencedByIDREF()
          why are you calling the method whose return value is known? 
com.sun.tools.xjc.model.CBuiltinLeafInfo.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.xml.bind.v2.model.impl.ArrayInfoImpl.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.xml.bind.v2.ContextFactory.createContext(Class[], Collection, Map, String, boolean, RuntimeAnnotationReader, boolean, boolean, boolean)
          use createContext(Class[] classes, Map properties) method instead 
com.sun.xml.bind.v2.ContextFactory.createContext(Class[], Collection, Map, String, boolean, RuntimeAnnotationReader, boolean, boolean, boolean, boolean)
          use createContext( Class[] classes, Map properties) method instead 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.expectText()
           
com.sun.tools.xjc.XJCListener.generatedFile(String)
          Override XJCListener.generatedFile(String, int, int). Deprecated in 2.0.1. 
com.sun.tools.xjc.model.CNonElement.getAdapterUse()
           
com.sun.tools.xjc.model.CEnumLeafInfo.getAdapterUse()
           
com.sun.tools.xjc.model.CBuiltinLeafInfo.getAdapterUse()
           
com.sun.xml.bind.v2.runtime.XMLSerializer.getCachedBase64DataInstance()
          Base64Data is no longer cached, so that XMLStreamWriterEx impl can retain the data, like JAX-WS does. 
com.sun.tools.xjc.api.JAXBModel.getClassList()
          this method is provided for now to allow gradual migration for JAX-RPC. 
com.sun.xml.xsom.impl.scd.SimpleCharStream.getColumn()
            
org.kohsuke.rngom.parse.compact.UCode_UCodeESC_CharStream.getColumn()
          @see #getEndColumn 
org.kohsuke.rngom.parse.compact.JavaCharStream.getColumn()
           
com.sun.xml.bind.unmarshaller.UnmarshallingContext.getCurrentHandler()
          Ue the getCurentEventHandler method. 
com.sun.xml.bind.unmarshaller.SAXUnmarshallerHandlerImpl.getCurrentHandler()
            
com.sun.tools.xjc.model.CBuiltinLeafInfo.getElementName()
          always return null at this level. 
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.getElementName()
          always return null at this level. 
org.jvnet.fastinfoset.FastInfosetParser.getExternalVocabularies()
          The map returned will not be the same instance and contain the same entries as the map set by FastInfosetParser.setExternalVocabularies(java.util.Map) method. 
com.sun.xml.bind.marshaller.DataWriter.getIndentStep()
          Only return the length of the indent string. 
com.sun.xml.txw2.output.IndentingXMLStreamWriter.getIndentStep()
          Only return the length of the indent string. 
com.sun.xml.txw2.output.IndentingXMLFilter.getIndentStep()
          Only return the length of the indent string. 
com.sun.xml.txw2.output.DataWriter.getIndentStep()
          Only return the length of the indent string. 
com.sun.tools.xjc.model.CNonElement.getInfo()
           
com.sun.tools.xjc.model.CEnumLeafInfo.getInfo()
           
com.sun.tools.xjc.model.CClassRef.getInfo()
           
com.sun.tools.xjc.model.CClassInfo.getInfo()
           
com.sun.tools.xjc.model.CBuiltinLeafInfo.getInfo()
           
com.sun.tools.xjc.model.CArrayInfo.getInfo()
           
com.sun.xml.xsom.impl.scd.SimpleCharStream.getLine()
            
org.kohsuke.rngom.parse.compact.UCode_UCodeESC_CharStream.getLine()
          @see #getEndLine 
org.kohsuke.rngom.parse.compact.JavaCharStream.getLine()
           
com.sun.tools.xjc.model.Model.getLocator()
          No line number available for the "root" component. 
com.sun.codemodel.JMethod.getMods()
          use JMethod.mods() 
com.sun.tools.xjc.model.CPropertyInfo.getName()
          marked as deprecated so that we can spot the use of this method. 
com.sun.tools.xjc.api.SchemaCompiler.getOptions()
          This method is not really "deprecated" (in the sense of being removed from future versions), but the JAXB team is not committed to evolve Options class in the compatible fashion. So please don't use this method unless you know what you're doing. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.getPredictor()
           
com.sun.tools.xjc.model.Model.getSchemaComponent()
          Always return null. Perhaps you are interested in Model.schemaComponent? 
com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getScope()
          you shouldn't be invoking this method on ClassInfoImpl. 
com.sun.xml.xsom.XSSchema.getSourceDocument()
          Since this method always returns null, if you are calling this method from XSSchema and not from XSComponent, there's something wrong with your code. 
com.sun.xml.fastinfoset.stax.StAXDocumentParser.getTextAlgorithmBytes()
          was deprecated due to security reasons. Now the method return cloned byte[]. 
com.sun.tools.xjc.model.CElementInfo.getType()
          why are you calling a method that returns this? 
com.sun.codemodel.JPrimitiveType.getWrapperClass()
          Use JPrimitiveType.boxify(). 
com.sun.tools.xjc.model.CReferencePropertyInfo.getXmlName()
           
com.sun.tools.xjc.model.CElementPropertyInfo.getXmlName()
           
com.sun.xml.xsom.XSDeclaration.isAnonymous()
          use the isGlobal method, which always returns the opposite of this function. Or the isLocal method. 
com.sun.tools.xjc.model.CNonElement.isCollection()
           
com.sun.tools.xjc.model.CEnumLeafInfo.isCollection()
           
com.sun.tools.xjc.model.CBuiltinLeafInfo.isCollection()
           
com.sun.tools.xjc.model.CBuiltinLeafInfo.isElement()
          always return false at this level. 
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.isElement()
          always return false at this level. 
com.sun.tools.xjc.model.CClassInfo.isFinal()
          if you are calling this method directly, you must be doing something wrong. 
com.sun.tools.xjc.model.nav.NavigatorImpl.isFinal(NClass)
          no class generated by XJC is final. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.isValidating()
          since 2.0 
com.sun.tools.xjc.reader.gbind.Element.iterator()
          if you statically call this method, there's something wrong. 
com.sun.xml.xsom.XSElementDecl.listSubstitutables()
          this method allocates a new array every time, so it could be inefficient when working with a large schema. Use XSElementDecl.getSubstitutables() instead. 
com.sun.xml.xsom.impl.ElementDecl.listSubstitutables()
            
com.sun.codemodel.JCodeModel.newAnonymousClass(JClass)
          The naming convention doesn't match the rest of the CodeModel. Use JCodeModel.anonymousClass(JClass) instead. 
com.sun.xml.bind.api.JAXBRIContext.newInstance(Class[], Collection, String, boolean)
          Compatibility with older versions. 
com.sun.codemodel.JAnnotationArrayMember.param(JAnnotationUse)
          use JAnnotationArrayMember.annotate(java.lang.Class) 
com.sun.xml.bind.unmarshaller.DOMScanner.parse(Element, ContentHandler)
          in JAXB 2.0 Use DOMScanner.scan(Element) 
com.sun.xml.bind.DatatypeConverterImpl.parseAnySimpleType(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseBase64Binary(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseBoolean(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseByte(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseDate(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseDateTime(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseDecimal(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseDouble(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseFloat(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseHexBinary(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseInt(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseInteger(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseLong(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseQName(String, NamespaceContext)
           
com.sun.xml.bind.DatatypeConverterImpl.parseShort(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseString(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseTime(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseUnsignedInt(String)
           
com.sun.xml.bind.DatatypeConverterImpl.parseUnsignedShort(String)
           
com.sun.xml.bind.unmarshaller.DOMScanner.parseWithContext(Element, ContentHandler)
          in JAXB 2.0 Use DOMScanner.scan(Element) 
com.sun.xml.bind.DatatypeConverterImpl.printAnySimpleType(String)
           
com.sun.xml.bind.DatatypeConverterImpl.printBase64Binary(byte[])
           
com.sun.xml.bind.DatatypeConverterImpl.printBoolean(boolean)
           
com.sun.xml.bind.DatatypeConverterImpl.printByte(byte)
           
com.sun.xml.bind.DatatypeConverterImpl.printDate(Calendar)
           
com.sun.xml.bind.DatatypeConverterImpl.printDateTime(Calendar)
           
com.sun.xml.bind.DatatypeConverterImpl.printDecimal(BigDecimal)
           
com.sun.xml.bind.DatatypeConverterImpl.printDouble(double)
           
com.sun.xml.bind.DatatypeConverterImpl.printFloat(float)
           
com.sun.xml.bind.DatatypeConverterImpl.printHexBinary(byte[])
           
com.sun.xml.bind.DatatypeConverterImpl.printInt(int)
           
com.sun.xml.bind.DatatypeConverterImpl.printInteger(BigInteger)
           
com.sun.xml.bind.DatatypeConverterImpl.printLong(long)
           
com.sun.xml.bind.DatatypeConverterImpl.printQName(QName, NamespaceContext)
           
com.sun.xml.bind.DatatypeConverterImpl.printShort(short)
           
com.sun.xml.bind.DatatypeConverterImpl.printString(String)
           
com.sun.xml.bind.DatatypeConverterImpl.printTime(Calendar)
           
com.sun.xml.bind.DatatypeConverterImpl.printUnsignedInt(long)
           
com.sun.xml.bind.DatatypeConverterImpl.printUnsignedShort(int)
           
com.sun.xml.bind.marshaller.DataWriter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.xml.txw2.output.IndentingXMLStreamWriter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.xml.txw2.output.IndentingXMLFilter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.xml.txw2.output.DataWriter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.tools.xjc.XJC2Task.setStackSize(String)
          not much need for JAXB2, as we now use much less stack. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.setValidating(boolean)
          since 2.0 
com.sun.codemodel.JPrimitiveType.unboxify()
          calling this method from JPrimitiveType would be meaningless, since it's always guaranteed to return this. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(SAXSource)
           
 

Deprecated Constructors
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIConversion(Locator)
           
com.sun.xml.xsom.parser.JAXPParser()
          Unsafe, use JAXPParser(factory) instead with security features initialized by setting XMLConstants.FEATURE_SECURE_PROCESSING feature. 
com.sun.xml.bind.marshaller.SAX2DOMEx()
            
com.sun.xml.xsom.parser.XSOMParser()
          Unsafe, use XSOMParser(factory) instead with security features initialized by setting XMLConstants.FEATURE_SECURE_PROCESSING feature. 
 



Copyright © 2014 Oracle Corporation. All Rights Reserved.