Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3053 Improve error reporting and logging
  3. MYFACES-3076

Improve error reporting and logging: report duplicate converters, validators, etc.

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3-next-M1
    • Component/s: General
    • Labels:
      None

      Description

      One of the problems from category: http://www.mail-archive.com/dev@myfaces.apache.org/msg50721.html

      Situation: if user creates (mostly by mistake) two converters for same type:

      @FacesConverter(forClass=AEntity.class)
      public class ConverterOne {}

      @FacesConverter(forClass=AEntity.class)
      public class ConverterTwo {}

      myfaces don't say nothing, moreover random behaviour occurs, because HashMap<String,Converter> and together with classloading in ConverterOne or ConverterTwo is used randomly.

      This obviously can afftect @FacesValidator etc.

        Attachments

          Activity

            People

            • Assignee:
              tandraschko Thomas Andraschko
              Reporter:
              markoc50 Martin Kočí
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: