Skip to content

Commit 0920ddd

Browse files
committed
Fix CI: jdk24 case duplicate and Snippets license headers
- JavaSourceLevel.swift: rename duplicated 'case jdk24 = 25' to 'case jdk25 = 25'. The typo broke RawRepresentable synthesis and cascaded into every Swift build/test/sample job. - Add Apache-2.0 header to Snippets/NotSupportedYetJava{FFM,JNI}.java. - Ignore Snippets/__DO_NOT_EDIT_SYMLINK_ONLY__ in .licenseignore (extensionless marker file the license-check script can't classify).
1 parent 7efeacc commit 0920ddd

4 files changed

Lines changed: 30 additions & 1 deletion

File tree

‎.licenseignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ gradlew.bat
4545
**/gradlew.bat
4646
**/ci-validate.sh
4747
**/DO_NOT_EDIT.txt
48+
Snippets/__DO_NOT_EDIT_SYMLINK_ONLY__
4849
Plugins/**/_PluginsShared
4950
Plugins/**/0_PLEASE_SYMLINK*
5051
Plugins/PluginsShared/JavaKitConfigurationShared

‎Snippets/NotSupportedYetJavaFFM.java‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 Apple Inc. and the Swift.org project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of Swift.org project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
// This file is an intentional exception to the "Snippets/ is symlink-only" rule
216
// documented in Snippets/__DO_NOT_EDIT_SYMLINK_ONLY__ . It is a pedagogical
317
// placeholder for @Tab("Java (FFM) - not supported") blocks in the DocC pages.

‎Snippets/NotSupportedYetJavaJNI.java‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 Apple Inc. and the Swift.org project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of Swift.org project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
// This file is an intentional exception to the "Snippets/ is symlink-only" rule
216
// documented in Snippets/__DO_NOT_EDIT_SYMLINK_ONLY__ . It is a pedagogical
317
// placeholder for @Tab("Java (JNI) - not supported") blocks in the DocC pages.

‎Sources/SwiftJavaConfigurationShared/JExtract/JavaSourceLevel.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public enum JavaSourceLevel: Int, Comparable, Sendable {
2222
case jdk21 = 21
2323
case jdk22 = 22
2424
case jdk24 = 24
25-
case jdk24 = 25
25+
case jdk25 = 25
2626

2727
public static var `default`: Self { .jdk22 }
2828

0 commit comments

Comments
 (0)