Details

    • Suitable for new contributors:
      Yes, likely
    • Last commented by a user?:
      true
    • Sprint:

      Description

      I'm using Hibernat-Validator 4.2.0 Final in an Android project and it fails with the following:

      03-23 12:15:42.194: E/AndroidRuntime(858): java.lang.NoClassDefFoundError: java.beans.Introspector
      03-23 12:15:42.194: E/AndroidRuntime(858): 	at org.hibernate.validator.util.ReflectionHelper.getPropertyName(ReflectionHelper.java:176)
      

      This happens because java.beans.Introspector is not part of Dalvik. Looking at the code it seems only the Introspector is used only in the following line:

      name = Introspector.decapitalize( methodName.substring( prefix.length() ) );
      

      which is a very simple String manipulation method.

      Proposed soultion
      Included a decapitalize method in the ReflectionHelper removing the dependency toward the Introspector.
      I tested this solution with some simple valdation constraint and everything worked fine.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified