If you accidently pass too large of an exponent value to BigInteger.pow(), the jvm will essentially appear to hang to the end user. Although in reality, the jvm is just busy calculating a really huge number. An exponent range is provided with BigDecimal.pow() and an Arithmetic Exception is thrown if the exponent is too large. A similar limit should be included for BigIngeger.pow().
At minimum, we should at least introduce a user defined upper limit. I have included a proposal for a source code modification in the comments section of this RFE.
At minimum, we should at least introduce a user defined upper limit. I have included a proposal for a source code modification in the comments section of this RFE.