equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
38 } |
38 } |
39 } |
39 } |
40 |
40 |
41 public class Test { |
41 public class Test { |
42 public static void main(String[] args) throws Exception { |
42 public static void main(String[] args) throws Exception { |
43 Class fooCl = Class.forName("Foo", false, Test.class.getClassLoader()); |
43 Class<?> fooCl = Class.forName("Foo", false, Test.class.getClassLoader()); |
44 ObjectStreamClass.lookup(fooCl); |
44 ObjectStreamClass.lookup(fooCl); |
45 System.out.println("done."); |
45 System.out.println("done."); |
46 } |
46 } |
47 } |
47 } |