XStream
  1. XStream
  2. XSTR-278

field level converter overriding using annotations

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      1.5

      Description

      Allow converter overriding in a field-basis and not class-level... (using annotations).

      The patch I have created has the following issues that I did not know what you would like:

      1. There is a try/catch during initialization (PureJavaReflectionProvider) that starts the AnnotationProvider.... what to do if an exception is caught? (ClassNotFoundException)
      2. JavaAnnotationsReflectionProvider has the same problem with exception dealing (did not know how you would like to do it)

      A few acceptance tests were included. I tested it compiling in jdk1.5, running the ant build.
      The generated jar file was tested under java 1.5 and 1.4 successfuly.

      1. patch.txt
        40 kB
        Mauro Talevi
      2. patch.txt
        33 kB
        Guilherme Silveira

        People

        • Assignee:
          Unassigned
          Reporter:
          Guilherme Silveira
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: