Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8172961

Please add flag to java.beans.Introspector to ignore Customizer class

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      Current bean info lookup mechanism _always_ try to find class instance for Customizer suffix in `findCustomizerClass` method.

      It's expensive for applications in general and in particular it hurts start of spring container.

      JUSTIFICATION :
      If there is additional flag then it it will be possible to fetch bean info based on class provided and it will be much more efficient that looking for non existing classes.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      In addition to `IGNORE_ALL_BEANINFO` I think it makes sense to add `IGNORE_ALL_BEANINFO_AND_CUSTOMIZER` flag which will return bean info with customizer being null and code will work as expected.

      ACTUAL -
      At the moment ClassNotFound is thrown and customizer is set to `null` anyway.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: