Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8017

SernoGeneratorRandom fails to build on JDK7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.15.2.2
    • Component/s: None
    • Labels:
      None

      Description

      On the 6.15.x branch, we still support JDK7.

      SernoGeneratorRandom is failing to build on JDK7. Looks like SecureRandom.getInstanceStrong was added in JDK8.

          [javac] /tmp/clover7438965514909786767.tmp/org/cesecore/certificates/ca/internal/SernoGeneratorRandom.java:122: error: cannot find symbol
          [javac]                 __CLR4_2_16ee6eejtjwziqz.R.inc(8332);random = SecureRandom.getInstanceStrong();
          [javac]                                                                           ^
          [javac]   symbol:   method getInstanceStrong()
          [javac]   location: class SecureRandom
          [javac] Note: Some input files use or override a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] Note: /tmp/clover7438965514909786767.tmp/org/cesecore/config/ConfigurationHolder.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 1 error
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tomas Tomas Gustavsson
                Reporter:
                samuel Samuel Lidén Borell
                Verified by:
                Samuel Lidén Borell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 10 minutes
                  10m
                  Remaining:
                  Time Spent - 5 minutes Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - 5 minutes Remaining Estimate - 5 minutes
                  5m