vim/runtime/syntax/testdir/input/setup/java_module_info.vim
Aliaksei Budavei 1054b18291
Some checks failed
GitHub CI / linux (arm64, gcc, [nogui], tiny) (push) Has been cancelled
GitHub CI / linux (arm64, gcc, true, [unittests], huge) (push) Has been cancelled
GitHub CI / linux (clang, [asan], huge, 5.1) (push) Has been cancelled
GitHub CI / linux (clang, [nogui], tiny) (push) Has been cancelled
GitHub CI / linux (gcc, [nogui], tiny) (push) Has been cancelled
GitHub CI / linux (gcc, [vimtags], normal) (push) Has been cancelled
GitHub CI / linux (gcc, true, [uchar testgui], huge, dynamic) (push) Has been cancelled
GitHub CI / linux (gcc, true, [unittests], huge) (push) Has been cancelled
GitHub CI / linux (i386, gcc, normal, ./src/shadow) (push) Has been cancelled
GitHub CI / linux (native, clang, [], normal) (push) Has been cancelled
GitHub CI / linux (native, clang, [], tiny) (push) Has been cancelled
GitHub CI / linux (native, clang, true, [], huge, dynamic, stable-abi) (push) Has been cancelled
GitHub CI / linux (native, gcc, [], normal) (push) Has been cancelled
GitHub CI / linux (native, gcc, [], tiny) (push) Has been cancelled
GitHub CI / linux (native, gcc, true, [], huge) (push) Has been cancelled
GitHub CI / macos (huge, macos-13) (push) Has been cancelled
GitHub CI / macos (huge, macos-15) (push) Has been cancelled
GitHub CI / macos (normal, macos-13) (push) Has been cancelled
GitHub CI / macos (normal, macos-15) (push) Has been cancelled
GitHub CI / macos (tiny, macos-13) (push) Has been cancelled
GitHub CI / macos (tiny, macos-15) (push) Has been cancelled
GitHub CI / windows (no, no, x64, HUGE, stable, msvc) (push) Has been cancelled
GitHub CI / windows (no, no, x86, TINY, mingw) (push) Has been cancelled
GitHub CI / windows (no, yes, x64, yes, HUGE, mingw) (push) Has been cancelled
GitHub CI / windows (no, yes, x86, NORMAL, msvc) (push) Has been cancelled
GitHub CI / windows (yes, no, x64, NORMAL, mingw) (push) Has been cancelled
GitHub CI / windows (yes, no, x86, HUGE, msvc) (push) Has been cancelled
GitHub CI / windows (yes, yes, x64, TINY, msvc) (push) Has been cancelled
GitHub CI / windows (yes, yes, x86, yes, HUGE, stable, mingw) (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
runtime(java): Make changes for JDK 24 in syntax script
- "Demote" SecurityManager from the list of java.lang class
  types to javaLangDeprecated.
- Reintroduce supported syntax-preview-feature numbers 455
  and 476 as _new numbers_ 488 and 494, respectively.

References:
- https://openjdk.org/jeps/486 (Permanently Disable the Security Manager)
- https://openjdk.org/jeps/488 (Primitive Types in Patterns etc.)
- https://openjdk.org/jeps/494 (Module Import Declarations)

closes: #16977

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-03-29 09:16:30 +01:00

32 lines
729 B
VimL

vim9script
# Test filenames are required to begin with the filetype name prefix,
# whereas the name of a Java module declaration must be "module-info".
const name_a: string = 'input/java_module_info.java'
const name_b: string = 'input/module-info.java'
def ChangeFilename()
exec 'saveas! ' .. name_b
enddef
def RestoreFilename()
exec 'saveas! ' .. name_a
delete(name_b)
enddef
autocmd_add([{
replace: true,
group: 'java_syntax_tests',
event: 'BufEnter',
pattern: name_a,
cmd: 'ChangeFilename()',
once: true,
}, {
group: 'java_syntax_tests',
event: ['BufLeave', 'ExitPre'],
pattern: name_b,
cmd: 'RestoreFilename()',
once: true,
}])
g:java_syntax_previews = [476, 494]