Skip to content

Commit

Permalink
SecureRandom can't be static initialized at build time (#1397)
Browse files Browse the repository at this point in the history
Fixes:
 - com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an instance of Random/SplittableRandom class in the image heap.

Signed-off-by: spolti <[email protected]>

Signed-off-by: spolti <[email protected]>
  • Loading branch information
spolti committed Sep 13, 2022
1 parent ef71d1a commit 8ddf828
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@Path("/stock-price")
public class RealStockPriceResource {

public static final SecureRandom SECURE_RANDOM = new SecureRandom();
public final SecureRandom SECURE_RANDOM = new SecureRandom();

@GET
@Path("/{symbol}")
Expand Down

0 comments on commit 8ddf828

Please sign in to comment.