From f6f87bb6759c86d941453a1776e8abfdffc48183 Mon Sep 17 00:00:00 2001 From: Volkan Yazici Date: Wed, 5 Nov 2025 13:01:51 +0000 Subject: [PATCH] 8371133: Clarify the purpose of "src/jdk.compiler/share/classes/com/sun/tools/javac/resources/ct.properties" Reviewed-by: jlahoda --- .../com/sun/tools/javac/resources/ct.properties | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/ct.properties b/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/ct.properties index ba42e8e067c..a8fdd923e2c 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/ct.properties +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/ct.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2016, 2025, 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 @@ -23,6 +23,15 @@ # questions. # +# This file was originally used to produce the `proprietary` warning when +# accessing non-APIs, and to hide some non-APIs in JDK <= 8. This has been +# superseded by the module system and `--release`. But, when compiling with +# `--source 8`, it is still used for this purpose by +# `com.sun.tools.javac.file.JRTIndex`. +# +# The build generates `jdk.compiler/com/sun/tools/javac/resources/ct.java` from +# this file, which is then used at runtime. + apple.laf.*: hidden apple.security.*: hidden com.apple.eawt.*: hidden