changeset 2350:5d87b6068c99

8037881: javax.crypto is not listed in the compact* profiles javadoc Reviewed-by: jjg
author ksrini
date Thu, 03 Apr 2014 12:04:58 -0700
parents ec1cfd55bf28
children a04b7eb6733f
files src/share/classes/com/sun/tools/javac/sym/Profiles.java
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/sym/Profiles.java	Tue Apr 01 23:58:04 2014 -0700
+++ b/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