Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: lang.*
    • Labels:
      None

      Description

      Methods for consideration:

      • isInstanceOf(Class<?> type, Object o);
      • isAssignable(Class<?> superType, Class<?> subType);
      • state(boolean condition);
      1. LANG_559.diff
        8 kB
        Valentin Rocher

        Issue Links

          Activity

          Hide
          Henri Yandell added a comment -

          Patch applied with change of name to isAssignableFrom.

          Show
          Henri Yandell added a comment - Patch applied with change of name to isAssignableFrom.
          Hide
          Henri Yandell added a comment -

          Patch looks good. Does this match your thoughts Paul?

          Should it be isAssignableFrom instead of isAssignable?

          Show
          Henri Yandell added a comment - Patch looks good. Does this match your thoughts Paul? Should it be isAssignableFrom instead of isAssignable?
          Hide
          Valentin Rocher added a comment -

          Attached patch with tests

          Show
          Valentin Rocher added a comment - Attached patch with tests
          Hide
          Henri Yandell added a comment -

          Go with IllegalArgumentException. It was the parent class of IllegalClassException.

          Show
          Henri Yandell added a comment - Go with IllegalArgumentException. It was the parent class of IllegalClassException.
          Hide
          Valentin Rocher added a comment -

          I have a problem with this one : I've done the isInstance and isAssignable, but I don't know which exception to throw...I was thinking about IllegalClassException, but it seems to have disappeared from LANG, so I think there's a good reason...Any help ?

          Show
          Valentin Rocher added a comment - I have a problem with this one : I've done the isInstance and isAssignable, but I don't know which exception to throw...I was thinking about IllegalClassException, but it seems to have disappeared from LANG, so I think there's a good reason...Any help ?

            People

            • Assignee:
              Paul Benedict
              Reporter:
              Paul Benedict
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development