< prev index next >

src/java.base/share/classes/java/lang/VersionProps.java.template

Print this page
rev 53037 : 8242154: Backport parts of JDK-4947890 to OpenJDK 11u

*** 1,7 **** /* ! * Copyright (c) 1999, 2017, 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. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1999, 2018, 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. Oracle designates this
*** 63,72 **** --- 63,81 ---- "@@VERSION_OPT@@".startsWith("LTS"); private static final String VENDOR_VERSION_STRING = "@@VENDOR_VERSION_STRING@@"; + private static final String VENDOR = + "@@VENDOR@@"; + + private static final String VENDOR_URL = + "@@VENDOR_URL@@"; + + private static final String VENDOR_URL_BUG = + "@@VENDOR_URL_BUG@@"; + private static final String vendor_version = (!VENDOR_VERSION_STRING.isEmpty() ? " " + VENDOR_VERSION_STRING : ""); static {
*** 78,87 **** --- 87,100 ---- System.setProperty("java.version.date", java_version_date); System.setProperty("java.runtime.version", java_runtime_version); System.setProperty("java.runtime.name", java_runtime_name); if (!VENDOR_VERSION_STRING.isEmpty()) System.setProperty("java.vendor.version", VENDOR_VERSION_STRING); + + System.setProperty("java.vendor", VENDOR); + System.setProperty("java.vendor.url", VENDOR_URL); + System.setProperty("java.vendor.url.bug", VENDOR_URL_BUG); } private static int parseVersionNumber(String version, int prevIndex, int index) { if (index - prevIndex > 1 && Character.digit(version.charAt(prevIndex), 10) <= 0)
< prev index next >