From 73837a5f34d909cf25b830f649db5f2a1d5e7b30 Mon Sep 17 00:00:00 2001 From: George Triantafillou Date: Mon, 15 Aug 2016 15:35:27 -0400 Subject: [PATCH] 8160833: ClassesByName2Test.java and RedefineCrossEvent.java failing with jtreg tip Reviewed-by: dholmes, ctornqvi --- jdk/test/com/sun/jdi/ClassesByName2Test.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/jdk/test/com/sun/jdi/ClassesByName2Test.java b/jdk/test/com/sun/jdi/ClassesByName2Test.java index f7bd695bbf5..2a7c5288cc3 100644 --- a/jdk/test/com/sun/jdi/ClassesByName2Test.java +++ b/jdk/test/com/sun/jdi/ClassesByName2Test.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2016, 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 @@ -28,8 +28,7 @@ * * @author Tim Bell (based on ClassesByName by Robert Field) * - * @modules java.corba - * jdk.jdi + * @modules jdk.jdi * @run build TestScaffold VMConnection TargetListener TargetAdapter * @run compile -g ClassesByName2Test.java * @run driver ClassesByName2Test @@ -70,10 +69,14 @@ class ClassesByName2Targ { }; Thread two = new Thread ("TWO") { - public void run () { - javax.rmi.CORBA.Util.getCodebase(this.getClass()); + public void run () { + try { + String s = String.format("%02x", 0xff); + } catch (Exception e) { + e.printStackTrace(); } - }; + } + }; two.start(); one.start();