Skip to content

Commit c20fe1f

Browse files
Merge remote-tracking branch 'origin/master' into BETA_JAVA26
ensure plugin versions are master + 0.0.50 except j.core which has a minor update wrt master.
2 parents 5459bc7 + 08768d4 commit c20fe1f

File tree

165 files changed

+4691
-1146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+4691
-1146
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Upload
16-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
16+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
1717
with:
1818
name: Event File
1919
path: ${{ github.event_path }}
@@ -41,14 +41,14 @@ jobs:
4141
- name: Set up Maven
4242
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
4343
with:
44-
maven-version: 3.9.11
44+
maven-version: 3.9.12
4545
- name: Build with Maven 🏗️
4646
run: |
4747
mvn clean install --batch-mode -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99
4848
mvn -U clean verify --batch-mode --fail-at-end -Ptest-on-javase-21 -Pbree-libs -Papi-check -Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,17,20 -Djdt.performance.asserts=disabled" -Dcbi-ecj-version=99.99
4949
- name: Upload Test Results for Linux
5050
if: always()
51-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
51+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5252
with:
5353
name: test-results-linux
5454
if-no-files-found: warn

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<extension>
44
<groupId>org.eclipse.tycho</groupId>
55
<artifactId>tycho-build</artifactId>
6-
<version>4.0.10</version>
6+
<version>5.0.1</version>
77
</extension>
88
</extensions>

org.eclipse.jdt.apt.pluggable.core/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.jdt.apt.pluggable.core;singleton:=true
5-
Bundle-Version: 1.4.600.qualifier
5+
Bundle-Version: 1.4.700.qualifier
66
Bundle-Activator: org.eclipse.jdt.internal.apt.pluggable.core.Apt6Plugin
77
Bundle-Vendor: %providerName
88
Require-Bundle: org.eclipse.core.runtime,

org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/dispatch/IdeProcessingEnvImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public Map<String, String> getOptions() {
102102

103103
private Function<Entry<String, String>, String> replacePlaceholdersUsing(Map<String, String> commandLineOptions) {
104104
return option -> {
105-
String variable, replacement, optionValue = option.getValue();
105+
String variable, replacement, optionValue = option.getValue() == null ? "" : option.getValue();
106106
Matcher placeholder = Pattern.compile("%([^%]+)%").matcher(optionValue);
107107
if (placeholder.find() && (variable = placeholder.group(1)) != null
108108
&& (replacement = commandLineOptions.get(variable)) != null) {

org.eclipse.jdt.apt.pluggable.tests/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.jdt.apt.pluggable.tests;singleton:=true
5-
Bundle-Version: 3.6.800.qualifier
5+
Bundle-Version: 3.6.900.qualifier
66
Bundle-Activator: org.eclipse.jdt.apt.pluggable.tests.Apt6TestsPlugin
77
Bundle-Localization: plugin
88
Require-Bundle: org.junit,

org.eclipse.jdt.apt.pluggable.tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<relativePath>../tests-pom/</relativePath>
2020
</parent>
2121
<artifactId>org.eclipse.jdt.apt.pluggable.tests</artifactId>
22-
<version>3.6.800-SNAPSHOT</version>
22+
<version>3.6.900-SNAPSHOT</version>
2323
<packaging>eclipse-test-plugin</packaging>
2424
<properties>
2525
<testSuite>${project.artifactId}</testSuite>

org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/BuilderTests.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,25 @@ public void testBug341298() throws Throwable {
415415
fullBuild();
416416
assertTrue("Processor should be able to compile with passed options", Bug341298Processor.success());
417417
}
418+
public void testGHIssue4640() throws Throwable {
419+
ProcessorTestStatus.reset();
420+
IJavaProject project = createJavaProject(_projectName);
421+
IPath root = project.getProject().getFullPath().append("src");
422+
env.addClass(root, "test341298", "Annotated",
423+
"package test341298;\n" +
424+
"@Annotation public class Annotated {}"
425+
);
426+
env.addClass(root, "test341298", "Annotation",
427+
"package test341298;\n" +
428+
"public @interface Annotation {}"
429+
);
430+
AptConfig.addProcessorOption(project, "classpath", "%classpath%");
431+
AptConfig.addProcessorOption(project, "sourcepath", "%sourcepath%");
432+
AptConfig.addProcessorOption(project, "phase", null);
433+
AptConfig.setEnabled(project, true);
434+
fullBuild();
435+
assertTrue("Processor should be able to compile with passed options", Bug341298Processor.success());
436+
}
418437

419438
public void testBug539663() throws Throwable {
420439
if (!canRunJava9()) {

org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.jdt.apt.tests; singleton:=true
5-
Bundle-Version: 3.6.900.qualifier
5+
Bundle-Version: 3.6.1000.qualifier
66
Bundle-ClassPath: apt.jar,
77
aptext.jar,
88
.

org.eclipse.jdt.apt.tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<relativePath>../tests-pom/</relativePath>
2020
</parent>
2121
<artifactId>org.eclipse.jdt.apt.tests</artifactId>
22-
<version>3.6.900-SNAPSHOT</version>
22+
<version>3.6.1000-SNAPSHOT</version>
2323
<packaging>eclipse-test-plugin</packaging>
2424

2525
<build>

org.eclipse.jdt.apt.tests/src-resources/question/AnnotationTest.java

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ public interface AnnotationTest{
2828
@Deprecated
2929
public int field1 = 1;
3030

31-
@RTVisibleAnno(anno=@SimpleAnnotation("field"), clazzes={})
31+
@Deprecated
32+
@RTVisibleAnno(anno=@SimpleAnnotation("field"), clazzes={})
3233
@RTInvisibleAnno("2")
3334
public int field2 = 2;
3435

35-
@RTInvisibleAnno("3")
36+
@Deprecated
37+
@RTInvisibleAnno("3")
3638
public int field3 = 3;
3739

38-
@SimpleAnnotation("4")
40+
@Deprecated
41+
@SimpleAnnotation("4")
3942
public int field4 = 4;
4043

4144
@RTVisibleAnno(anno=@SimpleAnnotation("method0"), clazzes={})
@@ -46,26 +49,32 @@ public interface AnnotationTest{
4649
@Deprecated
4750
public int method1();
4851

49-
@RTVisibleAnno(anno=@SimpleAnnotation("method2"), clazzes={})
52+
@Deprecated
53+
@RTVisibleAnno(anno=@SimpleAnnotation("method2"), clazzes={})
5054
@RTInvisibleAnno("2")
5155
public int method2();
5256

53-
@RTInvisibleAnno("3")
57+
@Deprecated
58+
@RTInvisibleAnno("3")
5459
public int method3();
5560

56-
@SimpleAnnotation("method4")
61+
@Deprecated
62+
@SimpleAnnotation("method4")
5763
public int method4();
5864

59-
public int method5(int p0,
65+
@Deprecated
66+
public int method5(int p0,
6067
@Deprecated
6168
int p1,
6269
@RTVisibleAnno(anno=@SimpleAnnotation("param2"), clazzes={})
6370
@RTInvisibleAnno("2")
6471
int p2);
6572

66-
public int method6(int p0, int p1, int p2);
73+
@Deprecated
74+
public int method6(int p0, int p1, int p2);
6775

68-
@RTVisibleAnno(name = "I'm \"special\": \t\\\n",
76+
@Deprecated
77+
@RTVisibleAnno(name = "I'm \"special\": \t\\\n",
6978
charValue = '\'',
7079
clazzes = {},
7180
anno = @SimpleAnnotation(""))

0 commit comments

Comments
 (0)