< prev index next >
test/hotspot/jtreg/vmTestbase/gc/g1/unloading/bytecode/DefaultTemplateClass.java
Print this page
rev 59093 : imported patch randomness-code_vmTestbase_unloading
rev 59095 : [mq]: 8243434.00
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2020, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -28,11 +28,11 @@
* This is template class. Loaded classes will derive from it.
*/
public class DefaultTemplateClass {
public static void main() {
- System.out.println("In method of generated class. Random.nextDouble = " + new Random().nextDouble());
+ System.out.println("In method of generated class. Random.nextDouble = " + new Random(42).nextDouble());
System.out.println(" Printing bytesToReplace0 bytesToReplace2");
}
public static long field;
< prev index next >