Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
fc23350
8345940: Migrate security-related resources from Java classes to prop…
artur-oracle Dec 16, 2024
aee0383
Update package name
artur-oracle Dec 16, 2024
885928e
Compile properties files. Restore whitespaces
artur-oracle Dec 17, 2024
07b69c9
Temporary test to check the migration correctness
artur-oracle Dec 17, 2024
9ac56c3
Auth translations
artur-oracle Dec 19, 2024
b64a679
Cosmetic changes
artur-oracle Dec 19, 2024
3c88fdd
Merge branch 'master' into JDK-8345940
artur-oracle Jan 15, 2025
2dfa45b
Typo fix
artur-oracle Jan 16, 2025
36952ab
Merge branch 'master' into JDK-8345940
artur-oracle Jan 28, 2025
ffd3258
Adding security_de and security_es translations. Update test. Update …
artur-oracle Jan 29, 2025
4368628
Adding security_fr
artur-oracle Jan 30, 2025
acf4cad
Adding security_it
artur-oracle Jan 31, 2025
069dbc5
Merge branch 'master' into JDK-8345940
artur-oracle Feb 20, 2025
63f8b65
Converting the rest of util/Resources* files. Fixing typo in Resource…
artur-oracle Feb 20, 2025
ef1b6d2
Adding en, de and es keytool translations
artur-oracle Feb 21, 2025
905aba7
Fix typo: missing a space after "Utilice"
artur-oracle Feb 24, 2025
e5445d2
The rest of keytool translations
artur-oracle Mar 4, 2025
6cc77f2
Uncomment key
artur-oracle Mar 4, 2025
3cdc663
We copy keytool_zh_TW.java to keytool_zh_HK.java internally after we …
artur-oracle Mar 4, 2025
6650b73
Remove keytool zh_HK properties because it's being replaced with zh_T…
artur-oracle Mar 4, 2025
6116691
Jarsigner initial setup
artur-oracle Mar 5, 2025
f3698a0
The rest of Jarsigner translations
artur-oracle Mar 6, 2025
162b7ba
Merge branch 'master' into JDK-8345940
artur-oracle Mar 7, 2025
cfdc6ba
Merge branch 'master' into JDK-8345940
artur-oracle Mar 7, 2025
79783a4
Update translations after merging with master branch
artur-oracle Mar 7, 2025
98e3c81
- Remove all the Resources files and MigrationCheck unit test
artur-oracle Mar 7, 2025
15c4b64
Restore ResourcesMgr.java deleted by mistake
artur-oracle Mar 7, 2025
209d7eb
Update LocalizedMessage.java
artur-oracle Mar 7, 2025
7aa2706
Update keytool and jarsigner resources location
artur-oracle Mar 7, 2025
a386342
Fix MessageFormatting test. Update Copyright.
artur-oracle Mar 7, 2025
652900b
jarsigner_zh_CN.properties conversion plus a couple of minor fixes.
artur-oracle Mar 10, 2025
db9cee3
Fix copyright
artur-oracle Mar 10, 2025
ac1c7c3
Restore missing comma in copyright
artur-oracle Mar 10, 2025
7d911bc
Keep the original copyright year
artur-oracle Mar 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions make/modules/java.base/Gensrc.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,17 @@ $(eval $(call SetupCompileProperties, SUN_UTIL, \
CLASS := sun.util.resources.LocaleNamesBundle, \
))

TARGETS += $(LIST_RESOURCE_BUNDLE) $(SUN_UTIL)
$(eval $(call SetupCompileProperties, SECURITY_RESOURCES, \
SRC_DIRS := $(MODULE_SRC)/share/classes/sun/security/util/resources, \
CLASS := ListResourceBundle, \
))

# Some resources bundles are already present as java files but still need to be
# copied to zh_HK locale.
$(eval $(call SetupCopy-zh_HK,COPY_ZH_HK, \
$(addprefix $(TOPDIR)/src/java.base/share/classes/, \
sun/security/util/AuthResources_zh_TW.java \
sun/security/util/Resources_zh_TW.java)))
$(eval $(call SetupCompileProperties, KEYTOOL_RESOURCES, \
SRC_DIRS := $(MODULE_SRC)/share/classes/sun/security/tools/keytool/resources, \
CLASS := ListResourceBundle, \
))

TARGETS += $(COPY_ZH_HK)
TARGETS += $(LIST_RESOURCE_BUNDLE) $(SUN_UTIL) $(SECURITY_RESOURCES) $(KEYTOOL_RESOURCES)

################################################################################

Expand Down
7 changes: 6 additions & 1 deletion make/modules/jdk.jartool/Gensrc.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ $(eval $(call SetupCompileProperties, COMPILE_PROPERTIES, \
CLASS := ListResourceBundle, \
))

TARGETS += $(COMPILE_PROPERTIES)
$(eval $(call SetupCompileProperties, JARSIGNER_RESOURCES, \
SRC_DIRS := $(TOPDIR)/src/jdk.jartool/share/classes/sun/security/tools/jarsigner/resources, \
CLASS := ListResourceBundle, \
))

TARGETS += $(COMPILE_PROPERTIES) $(JARSIGNER_RESOURCES)

################################################################################
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public String toString() {
// for i18n
private static final java.util.ResourceBundle rb =
java.util.ResourceBundle.getBundle(
"sun.security.tools.keytool.Resources");
"sun.security.tools.keytool.resources.keytool");
private static final Collator collator = Collator.getInstance();
static {
// this is for case-insensitive string comparisons
Expand Down Expand Up @@ -2069,7 +2069,7 @@ private void doGenKeyPair(String alias, String dname, String keyAlgName,
* - plain algorithm name, otherwise
*
* Note: the same method appears in keytool and jarsigner which uses
* same resource string defined in their own Resources.java.
* same resource string defined in their own properties file.
*
* @param key the key object, cannot be null
* @return the full name
Expand Down
519 changes: 0 additions & 519 deletions src/java.base/share/classes/sun/security/tools/keytool/Resources.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

110 changes: 0 additions & 110 deletions src/java.base/share/classes/sun/security/util/AuthResources.java

This file was deleted.

110 changes: 0 additions & 110 deletions src/java.base/share/classes/sun/security/util/AuthResources_de.java

This file was deleted.

110 changes: 0 additions & 110 deletions src/java.base/share/classes/sun/security/util/AuthResources_es.java

This file was deleted.

Loading