Hi Baron,

Looking at the source code, you can see that *evaluationOrder *is only an 
integer
https://github.com/apereo/cas/blob/v5.0.10/core/cas-server-core-services/src/main/java/org/apereo/cas/services/AbstractRegisteredService.java#L77

And for Java, integer have a limit to it (A quick google search show me 
"2,147,483,647", should be similar)

So I think your assumption of int overflowing is correct. If you add 0 to 
your service, you can only have ~10 services.

I think you need to either:
- not adding 0 to sort out the ordering
- Change the evaluationOrder to use BigInteger instead, which requires some 
coding to do, but is not impossible, BigInteger pretty much don't have 
maximum, so add as many 0 as you like (but the performance might be 
downgraded of course)

Cheers!
- Andy

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2f13b2f1-fda1-463c-be57-afd6a5f4a916%40apereo.org.

Reply via email to