8037881: javax.crypto is not listed in the compact* profiles javadoc
authorksrini
Thu, 03 Apr 2014 12:04:58 -0700
changeset 23807 a85a06f3b9d8
parent 23805 3ef77c1ebf0b
child 23808 6ec86ba2dfb6
8037881: javax.crypto is not listed in the compact* profiles javadoc Reviewed-by: jjg
langtools/src/share/classes/com/sun/tools/javac/sym/Profiles.java
--- a/langtools/src/share/classes/com/sun/tools/javac/sym/Profiles.java	Tue Apr 01 23:58:04 2014 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/sym/Profiles.java	Thu Apr 03 12:04:58 2014 -0700
@@ -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
@@ -172,6 +172,14 @@
                     }
                 }
             }
+            /*
+             * 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