Ensure that field BigInteger.mag is not mutated after construction

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • Cause Known

      `BigInteger` is advertised as immutable.
      However, the method `largePrime()` mutates the final field `mag` on a new instance.
      While this seems harmless in this specific case, it would be better to make sure that `mag` is genuinely immutable.

            Assignee:
            Raffaello Giulietti
            Reporter:
            Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: