I see. Hence, we assume that the passed ``version`` is a valid OSGi version. But the ``CrossCompiledRegex`` accepts more than valid OSGi versions. For instance ``mylib-0.1-nightly.jar`` would cause the ``Version`` constructor to throw an exception. I agree that the version in my example looks odd, but handling ``IllegalArgumentException`` seems like the right thing to do here.