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 8041565
27 * @summary Tests the limits imposed on the domain name part of an
28 * ObjectName instance
29 * @author Jaroslav Bachorik
30 * @modules java.management/javax.management:open
31 * @run main CompressedStorageTest
32 */
33
34 import java.lang.reflect.Field;
35 import java.lang.reflect.InvocationTargetException;
36 import java.lang.reflect.Method;
37 import java.util.function.Consumer;
38 import javax.management.MalformedObjectNameException;
39 import javax.management.ObjectName;
40
41 public class CompressedStorageTest {
42 private static Method setDomainLengthM;
43 private static Field compressedStorageFld;
44
45 private static int DOMAIN_PATTERN;
46 private static int PROPLIST_PATTERN;
47 private static int PROPVAL_PATTERN;
48
49 private static Method setDomainPattern;
50 private static Method setPropertyListPattern;
|
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 8041565
27 * @summary Tests the limits imposed on the domain name part of an
28 * ObjectName instance
29 * @author Jaroslav Bachorik
30 *
31 * @modules java.management/javax.management:open
32 *
33 * @run main CompressedStorageTest
34 */
35
36 import java.lang.reflect.Field;
37 import java.lang.reflect.InvocationTargetException;
38 import java.lang.reflect.Method;
39 import java.util.function.Consumer;
40 import javax.management.MalformedObjectNameException;
41 import javax.management.ObjectName;
42
43 public class CompressedStorageTest {
44 private static Method setDomainLengthM;
45 private static Field compressedStorageFld;
46
47 private static int DOMAIN_PATTERN;
48 private static int PROPLIST_PATTERN;
49 private static int PROPVAL_PATTERN;
50
51 private static Method setDomainPattern;
52 private static Method setPropertyListPattern;
|