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 1ebea23192d070571664a51d6c247fd365d554b8..95fec66f482d1bb7b3c5dd5fb76788a427c352af 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