Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1256

Inconsistent behavior when dealing with parameter names among various spring components

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      Spring IoC handle parameter names in a different way than spring-data, which brings ambiguity to developers.

      While spring IoC uses DefaultParameterNameDiscoverer, in the same time Spring data throws exception when it faces a similar scenario, which says:

      java.lang.IllegalArgumentException: Name for parameter binding must not be null or empty! On JDKs < 8, you need to use @Param for named parameters, on JDK 8 or better, be sure to compile with -parameters.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mhewedy Muhammad
              Last updater:
              Juergen Hoeller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: