Release Notes - castor - Version 1.2 - HTML format

Sub-task

  • [CASTOR-1489] - Add support for abstract complexType definitions
  • [CASTOR-1964] - Local castor.properties sax features are never read
  • [CASTOR-1973] - Integrate libraries
  • [CASTOR-1974] - Make generation method switchable
  • [CASTOR-1975] - Call the Velocity Template Engine correctly in TemplateJClassPrinter
  • [CASTOR-1976] - Create template(s) to generate the domain objects
  • [CASTOR-1983] - Allow access to <xs:documentation> configurable by builder property for type-level annotations
  • [CASTOR-1988] - Create getters for collection sizes
  • [CASTOR-1989] - Create template(s) to generate the domain objects for JAXB2
  • [CASTOR-2039] - Schema Model has XML schema namespace defined as the default ns in it, by default
  • [CASTOR-2040] - Need to change visibility levels of SimpleTypeDefinition and Schema to support JAXB2 to schema generation
  • [CASTOR-2046] - Create new HTML page for dependencies
  • [CASTOR-2047] - Test the templates using MasterTestSuite
  • [CASTOR-2055] - Use refactored Castor configuration at CPA modul
  • [CASTOR-2056] - Use refactored Castor configuration at XML modul
  • [CASTOR-2059] - Array type style (2 warnings)
  • [CASTOR-2060] - Avoid nested blocks (2 warnings)
  • [CASTOR-2061] - Avoid star (Demand) Import (26 warnings)
  • [CASTOR-2062] - Constant Names (30 warnings)
  • [CASTOR-2063] - Empty For Iterator Pad (8 warnings)
  • [CASTOR-2064] - Final Parameters (762 warnings)
  • [CASTOR-2065] - Left Curly Brace Placement (343 warnings)
  • [CASTOR-2066] - Whitespace Around (518 warnings)
  • [CASTOR-2067] - Tab Character (851 warnings)
  • [CASTOR-2068] - Right Curly Brace Placement (19 warnings)
  • [CASTOR-2069] - Redundant Modifier (145 warnings)
  • [CASTOR-2070] - Paren Pad (3717 warnings)
  • [CASTOR-2071] - Modifier Order (9 warnings)
  • [CASTOR-2072] - Unused Imports (8 warnings)
  • [CASTOR-2073] - No Whitespace After (19 warnings)
  • [CASTOR-2074] - No Whitespace Before (39 warnings)
  • [CASTOR-2075] - Whitespace After (45 warnings)
  • [CASTOR-2076] - Need Braces (340 warnings)
  • [CASTOR-2079] - Member Names (79 warnings)
  • [CASTOR-2080] - Parameter Names (4 warnings)
  • [CASTOR-2081] - Static Variable Names (3 warnings)
  • [CASTOR-2082] - Local Variable Names (4 warnings)
  • [CASTOR-2083] - Method Names (5 warnings)
  • [CASTOR-2085] - Final Class (2 warnings)
  • [CASTOR-2086] - Hide Utility Class Constructor (3 warnings)
  • [CASTOR-2087] - Inner Assignment (2 warnings)
  • [CASTOR-2088] - Empty Block (9 warnings)
  • [CASTOR-2089] - Missing Switch Default (18 warnings)
  • [CASTOR-2090] - Simplify Boolean Expression (4 warnings)
  • [CASTOR-2091] - Todo Comment (5 warnings)
  • [CASTOR-2092] - Fields that get never read (1 warning)
  • [CASTOR-2093] - Declared exception that get not thrown (3 warnings)
  • [CASTOR-2094] - Redundant Throws (89 warnings)
  • [CASTOR-2095] - Style Javadoc (170 warnings)
  • [CASTOR-2096] - Operator wrap (75 warnings)
  • [CASTOR-2097] - Maximum Line Length (338 warnings)
  • [CASTOR-2101] - Modified Control Variables (7 infos)
  • [CASTOR-2102] - Multiple Variable Declaration (9 infos)
  • [CASTOR-2103] - Visibility Modifier (85 infos)
  • [CASTOR-2104] - JavaNaming refactoring
  • [CASTOR-2106] - Move field and method creation code out of FieldInfos into FieldMemberAndAccessorFactorys
  • [CASTOR-2107] - Support jaxb style java 5 enums for simple type enumerations
  • [CASTOR-2121] - Add 'verbous' section to src/doc/release-notes.xml for this new feature.
  • [CASTOR-2122] - Add 'lenience' property so that old Java 1.4 enumeration-type classes can still be generated
  • [CASTOR-2125] - Add 'verbous' section to src/doc/release-notes.xml for this new feature ...
  • [CASTOR-2137] - Create HTML page for configuration of Marshaller.
  • [CASTOR-2138] - Create HTML page for configuration of Unmarshaller.
  • [CASTOR-2139] - Link src/doc/conf-lib to XML main tag
  • [CASTOR-2140] - Clean-up src/doc/xml-properties.xml
  • [CASTOR-2146] - Show that code generation for <xs:decimal> is wrong wrt field handler code
  • [CASTOR-2147] - Add HTML documentation for configurable field handlers.
  • [CASTOR-2148] - Add HOW-TO for configurable field handlers
  • [CASTOR-2149] - Add 'addition' to src/doc/release-notes.xml for configurable field handlers
  • [CASTOR-2154] - Finalize all 'Download' links on src/doc/dependencies.xml
  • [CASTOR-2155] - Fix incorrect dependency tp Xerces 1.4.0 in src/doc/dependencies.xml
  • [CASTOR-2156] - Simplification of ConfigurableFieldHandler
  • [CASTOR-2164] - Amend existing documentation re: usage of JAXP
  • [CASTOR-2169] - Update dependencies in pom.xml to switch to XML APIs
  • [CASTOR-2170] - Amend libraries in lib to include xml-apis and switch to xercesImpl 2.6.2
  • [CASTOR-2171] - Amend existing documentation re: switch to XML APIs
  • [CASTOR-2212] - Additional cleanup
  • [CASTOR-2215] - Expose isChoice() method at XMLClassDescriptor
  • [CASTOR-2227] - Exception generated when mapping file is not used.
  • [CASTOR-2238] - Refactor special tests 972, 1158, 1355 and 1379
  • [CASTOR-2240] - Refactor special tests 881 and 2177
  • [CASTOR-2241] - Refactor special tests proxy, 1214, 1781 and 1865
  • [CASTOR-2243] - Add ant-junit.jar to bin/lib
  • [CASTOR-2244] - Add usage of <junit> task to codegen/build.xml
  • [CASTOR-2245] - Add 'junit.tests.run' target to src/build.xml
  • [CASTOR-2246] - Add usage of <junit> task to src/build.xml for XML module
  • [CASTOR-2249] - Add <source> and <target> attribues for codegen module
  • [CASTOR-2250] - Add <source> and <target> attribues for antasks module
  • [CASTOR-2251] - Add <source> and <target> attribues for xmlctf module

Bug

  • [CASTOR-67] - Generated classes don't compile when using "default" on an element that extends xsd:string
  • [CASTOR-203] - Add the possibility to unmarshall an AnyNode directly
  • [CASTOR-1150] - castor fails to unmarshall valid instance of sequence-of-choice schema
  • [CASTOR-1342] - Proxied classes need to be identified and receive special processing
  • [CASTOR-1855] - Start using 'source' and 'target' attributes on <javac> tasks (src/build.xml et alias)
  • [CASTOR-1881] - Unwanted generation from imported schemas
  • [CASTOR-1917] - Source generator does not fail on unresolved element types instead it sets them as java.lang.Object
  • [CASTOR-1950] - XML: Castor 1.1 does not generate the necessary java import statements for the descriptor classes generated from an XSD file
  • [CASTOR-1990] - Element of SimpleType generated with a wrong Descriptor _xmlName value
  • [CASTOR-1991] - Hard coded boolean prefix "is" breaks generated code when generating code for boolean attribute "valid"
  • [CASTOR-2012] - hashCode() and equals() infinitely recurse with cyclid IDREFs
  • [CASTOR-2018] - suppress xsd:choice in xml
  • [CASTOR-2032] - using the internal Xerces parser information needs update
  • [CASTOR-2043] - The generation of class when using xsi:type does not respect inheritance
  • [CASTOR-2044] - The parseDuration(String) method does not respect the decimal place when converting the string representation of milliseconds into an integer/short.
  • [CASTOR-2048] - NPE when using ant task
  • [CASTOR-2051] - Castor cannot parse Dates where Century is 0, like the year 0001
  • [CASTOR-2053] - Generated code does not compile when a complex element has a default value.
  • [CASTOR-2077] - unbounded element generation fails for array types like HexBinary type.
  • [CASTOR-2078] - Castor 1.1.2.1 not generating choices correctly
  • [CASTOR-2098] - java.lang.NoSuchMethodError: org.exolab.castor.xml.validators.IntegerValidator.setMinInclusive(I)
  • [CASTOR-2099] - sample sources are missing
  • [CASTOR-2100] - Sealing violation occurs when using castor-jdo
  • [CASTOR-2110] - Compilation errors in generated Source when using XSD-Types like
  • [CASTOR-2111] - Castor 1.1 & JAXB Threading Issue
  • [CASTOR-2112] - Major performance slowdown unmarshalling between version 0.9.4.3 and 1.1.2.1
  • [CASTOR-2118] - Unmarshaller complains about missing attribute which is existent
  • [CASTOR-2123] - org.exolab.castor.xml.MarshalException: unable to find FieldDescriptor for 'PersonSurName' in ClassDescriptor of PersonNameType{File: [not available]; line: 9; column: 22}
  • [CASTOR-2129] - Failed to create bean object correctly when using xs:sequence or xs:choice under xs:compleType.
  • [CASTOR-2132] - Unmarshalling the same element from 2 different namespaces
  • [CASTOR-2141] - Castor snapshot 1.1.3 source generator enum default values not being set correctly.
  • [CASTOR-2152] - Castor XML source generator does not set default values for enumerations
  • [CASTOR-2153] - marshalling validation of xs:NMTOKEN elements throws ValidationException for pattern \c+
  • [CASTOR-2157] - New Configuration behaves different when constructed with new Configuration() or new Configuration(null, null)
  • [CASTOR-2158] - Fix NullPointerException in FieldValidator.validate(Object, ValidationContext)
  • [CASTOR-2159] - Fix broken code in bin/CTFrun.bat to delete old test output
  • [CASTOR-2163] - Remove all log4j configurationss from binary JARs
  • [CASTOR-2165] - In root POM, define dependency to log4j as optional
  • [CASTOR-2166] - Current "bin/build clean" does NOT clean up everything
  • [CASTOR-2173] - Castor incorrectly generates XML for choice/selection objects
  • [CASTOR-2175] - links to download sources point to wrong hostname
  • [CASTOR-2178] - NullPointerException when specifying "package" element in binding file
  • [CASTOR-2193] - Mapping file has no effect
  • [CASTOR-2194] - Castor MarshalException when there are any "&" characters in attributes of type xs:string in the XML document ("&" is treated as an entity reference)
  • [CASTOR-2199] - Issue generating code for XML elements with mixed content
  • [CASTOR-2200] - Classes of org.castor.xml and org.castor.core packages are missing in castor-xml.jar
  • [CASTOR-2201] - Castor is not able to parse schema-s with recursive imports/includes
  • [CASTOR-2204] - Returned null, while using Unmarshall
  • [CASTOR-2205] - Returned null, while using Unmarshall
  • [CASTOR-2206] - java.lang.IllegalArgumentException: Duplicate name found as a class member
  • [CASTOR-2209] - unmarshal() method in subtype should return subtype.
  • [CASTOR-2216] - problem in overwriting properties of the castor.properties file
  • [CASTOR-2217] - generated validator is missing facets
  • [CASTOR-2218] - API for reading castor.properties does not work
  • [CASTOR-2219] - I have problem in parsing xml file
  • [CASTOR-2220] - SimpleTimeZone needs timezone for formatter
  • [CASTOR-2222] - issue with generated castor mapping file when nested choice is used for castor.
  • [CASTOR-2224] - generated XML file is not valid against the XML-Schema that was used to generate the classes
  • [CASTOR-2234] - Castor Exception: Unable to generate classes annotation attributes are used in xsd.
  • [CASTOR-2235] - ValidationException thrown while unmarshalling valid documents containing sequence of substitution elements.
  • [CASTOR-2252] - If multiple attributes are marshalled using the location attribute only the first is marshalled.
  • [CASTOR-2254] - XMLCTF: If a properties file is specified but not provided, the CTF complaint is not helpful
  • [CASTOR-2256] - Test '../xmlctf/tests/MasterTestSuite/sourcegenerator/Validation/Castor-210/' fails on OSX
  • [CASTOR-2259] - Undefined contructor - Compilation Error
  • [CASTOR-2264] - mixed="1" should be the same as mixed="true"
  • [CASTOR-2265] - AnyNode changing namespace prefix to first one encountered for sibling nodes (if the namespace uri is reused) in case of marshalling
  • [CASTOR-2268] - Elements of type XML Schema list are not correctly handled
  • [CASTOR-2269] - JDO javadocs/code not present in distribution
  • [CASTOR-2270] - ClassCastException when marshalling Iterator
  • [CASTOR-2271] - XML mapping problem using pattern

Improvement

  • [CASTOR-948] - Move SourceGenerator to its own JAR file
  • [CASTOR-1906] - New test framework for castor persistence
  • [CASTOR-1927] - Refactor castor configuration
  • [CASTOR-1932] - Split ClassDescriptorResolver to be more expandable for future needs
  • [CASTOR-2011] - hashCode method of generated class does not call the hashCode() for the base XML type
  • [CASTOR-2015] - Castor will not complain or generate a warning when encountering unknowns during unmarshalling without a mapping file
  • [CASTOR-2036] - change list handling generation so that castor generated lists can be persisted with hibernate
  • [CASTOR-2042] - Add support for configurable FieldHandlers
  • [CASTOR-2113] - Remove code duplication from static Unamrshaller.unmarshal() methods
  • [CASTOR-2114] - Remove duplicate code in Marshaller
  • [CASTOR-2115] - Project settings for castor-jaxb project
  • [CASTOR-2116] - Allow suppression of xsi:type and xmlns attributes for CastorMarshaller
  • [CASTOR-2119] - Remove logic from LocalConfiguration and put it into XMLContext
  • [CASTOR-2127] - Documentation for Castor in a multi-threaded environment
  • [CASTOR-2145] - Restructure information on 3rd party dependencies
  • [CASTOR-2160] - Explicitely enlist dependencies in bin/CTFrun.bat
  • [CASTOR-2162] - Refactor the way Castor XML currently deals with XML parsers
  • [CASTOR-2167] - Modify CTFRun.sh to match changes in CTFRun.bat
  • [CASTOR-2174] - upper-case hex digits [A-F]when marshaling hexBinary elements
  • [CASTOR-2177] - Add support for custom type convertors
  • [CASTOR-2182] - Change initialization of SAX parser/XMLReader to happen *once* at startup only
  • [CASTOR-2185] - Create interface for InternalContext and make all existing *InternalContext classes implement this interface
  • [CASTOR-2188] - Remove old Configuration and LocalConfiguration
  • [CASTOR-2189] - Refactor regexp evaluation code
  • [CASTOR-2191] - Remove usage of org.exolab.castor.types.OperationNotSupportedException and switch to using UnsupportedOperationException
  • [CASTOR-2202] - org.castor.spring.xml.TestDataBindingOperations.testUnmarshalFromReader() fails because of hard-coded (Windows!) file path
  • [CASTOR-2232] - Improve JDOConfFactory
  • [CASTOR-2239] - Add method to dispose JDOManager instances
  • [CASTOR-2242] - Add Ant target to run existing JUnit tests from within Ant
  • [CASTOR-2257] - Split tips and tricks page and move to XML/JDO compartments
  • [CASTOR-2285] - Replace usage of InternalContext in org.exolab.castor.xml.schema.* classes with SchemaContext (to be created).

New Feature

  • [CASTOR-1972] - [GSOC] Source Code Generation using Velocity Templates
  • [CASTOR-2052] - Provide ObjectFactory to load unmarshalled objects from Spring
  • [CASTOR-2109] - jaxb2 enums & castor mapping
  • [CASTOR-2117] - Generate java5 enums for simpleType enumerations
  • [CASTOR-2120] - Add findSingleEntity() methods to CastorTemplate
  • [CASTOR-2124] - provide annotation building hooks for (external) tools
  • [CASTOR-2196] - Accessing XMLFieldDescriptor from within FieldHandler
  • [CASTOR-2208] - New ant task for XMLInstance2Schema tool
  • [CASTOR-2211] - Unable to unmarshal empty tag
  • [CASTOR-2213] - Add documentation for integration of Castor with web service frameworks
  • [CASTOR-2236] - Add ability to SourceGenerator to generate java classes from a URL
  • [CASTOR-2266] - For JAXB implementation an additional method in JavaNaming interface - extractFieldNameFromField is required

Task

  • [CASTOR-1416] - Refactor directory structure and file locations into standard Maven structures
  • [CASTOR-2022] - Issue during the marshalling of Collection
  • [CASTOR-2034] - Update "How to use a binding file with source generation"
  • [CASTOR-2058] - Cleanup checkstyle and compiler warnings at JDO modul that are easy to fix
  • [CASTOR-2161] - Add log4j configuration to xmlctf/src/test/resources
  • [CASTOR-2168] - Switch to using XML APIs to interface to SAX parsers
  • [CASTOR-2280] - Move all classes in the org.exolab.castor.schema package to a separate Maven module

Wish

  • [CASTOR-2037] - remove the dependency of xerces
  • [CASTOR-2135] - Add documentation for CastorUnmarshallerFactoryBean properties
  • [CASTOR-2225] - can stax parser be used instead of sax parser
  • [CASTOR-2226] - What are the best jaxp compliant parsers which can be used in place of org.apache.xerces.parsers.SAXParser

Edit/Copy Release Notes

The text area below allows the project release notes to be edited and copied to another document.