From 407d568ac5d7481cd0aa7d7bb54f3154dda17793 Mon Sep 17 00:00:00 2001 From: ksrini Date: Thu, 3 Apr 2014 12:04:58 -0700 Subject: [PATCH] 8037881: javax.crypto is not listed in the compact* profiles javadoc Reviewed-by: jjg --- .../classes/com/sun/tools/javac/sym/Profiles.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/share/classes/com/sun/tools/javac/sym/Profiles.java b/src/share/classes/com/sun/tools/javac/sym/Profiles.java index 1ebea231..95fec66f 100644 --- a/src/share/classes/com/sun/tools/javac/sym/Profiles.java +++ b/src/share/classes/com/sun/tools/javac/sym/Profiles.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -178,6 +178,14 @@ public abstract class Profiles { } } } + /* + * A hack to force javax/crypto package into the compact1 profile, + * because this package exists in jce.jar, and therefore not in + * ct.sym. Note javax/crypto should exist in a profile along with + * javax/net/ssl package. Thus, this package is added to compact1, + * implying that it should exist in all three profiles. + */ + includePackage(1, "javax/crypto"); } @Override -- GitLab