< prev index next >

test/sun/security/util/Oid/S11N.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4811968 6908628 8006564


  27  * @run main S11N check
  28  * @summary Serialization compatibility with old versions (and fixes)
  29  */
  30 
  31 import java.io.ByteArrayInputStream;
  32 import java.io.ByteArrayOutputStream;
  33 import java.io.ObjectInputStream;
  34 import java.io.ObjectOutputStream;
  35 import java.util.HashMap;
  36 import java.util.Map;
  37 import sun.misc.BASE64Encoder;
  38 import sun.security.util.ObjectIdentifier;
  39 
  40 public class S11N {
  41     static String[] SMALL= {
  42         "0.0",
  43         "1.1",
  44         "2.2",
  45         "1.2.3456",
  46         "1.2.2147483647.4",




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4811968 6908628 8006564
  27  * @modules java.base/sun.misc
  28  *          java.base/sun.security.util
  29  * @run main S11N check
  30  * @summary Serialization compatibility with old versions (and fixes)
  31  */
  32 
  33 import java.io.ByteArrayInputStream;
  34 import java.io.ByteArrayOutputStream;
  35 import java.io.ObjectInputStream;
  36 import java.io.ObjectOutputStream;
  37 import java.util.HashMap;
  38 import java.util.Map;
  39 import sun.misc.BASE64Encoder;
  40 import sun.security.util.ObjectIdentifier;
  41 
  42 public class S11N {
  43     static String[] SMALL= {
  44         "0.0",
  45         "1.1",
  46         "2.2",
  47         "1.2.3456",
  48         "1.2.2147483647.4",


< prev index next >