Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-160

string converter providers must implement the StringConverter interface directly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • Beta 9
    • Beta 9
    • jaxrs
    • None
    • Workaround Exists
    • Hide

      add the interface to the stringconverter

      @Provider
      public class TypeStringConverter extends ObjectStringConverter<Type> implements StringConverter<Type>
      implements StringConverter<Type> {
      public Type fromString(final String value)

      { return Type.fromString(value); }

      }

      Show
      add the interface to the stringconverter @Provider public class TypeStringConverter extends ObjectStringConverter<Type> implements StringConverter<Type> implements StringConverter<Type> { public Type fromString(final String value) { return Type.fromString(value); } }

      if a super class of the provider is implementing the StringConverter interface, the provider is not detected as a StringConverter

      @Provider
      public class TypeStringConverter extends ObjectStringConverter<Type>
      implements StringConverter<Type> {
      public Type fromString(final String value)

      { return Type.fromString(value); }

      }

      public abstract class ObjectStringConverter<T> implements StringConverter<T> {
      public String toString(final T value)

      { return value.toString(); }

      }

            patriot1burke@gmail.com Bill Burke (Inactive)
            brackxm Michael Brackx (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: