Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] 4.35 Y-Build: Y20250111-1000 - BUILD FAILED

Outch, thanks for the pointers which indicate quite a bit of time traveling back and forth:
* the error looked like a message from the past (< May 2022)
* in ecj the error has been revived in master
* BETA_JAVA24 now uses a compiler that is ahead of the branch
* Sources inside the branch are not aligned to that future compiler
* Merge will again synchronize branches.

Question: is it by intention that the beta branch uses the compiler from the latest I-build? Would it make sense to actually stay within the branch and use ecj from the latest Y-build?
I see two advantages:
* avoid the above confusion of using a compiler that's incompatible with sources
* early stress-testing of the compiler from the beta branch.

best,
Stephan


Am 12.01.25 um 12:37 schrieb Hannes Wellmann via jdt-dev:

This looks like a reincarnation of [1] caused by [2], because since [3] the latest ECJ is used after the next I-build for the builds of all other parts of the Eclipse-SDK automatically.
Best regards
Hannes
[1] - https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/ issues/2739 <https://github.com/eclipse-platform/ eclipse.platform.releng.aggregator/issues/2739> [2] - https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3478 <https:// github.com/eclipse-jdt/eclipse.jdt.core/issues/3478> [3] - https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/ pull/2538 <https://github.com/eclipse-platform/ eclipse.platform.releng.aggregator/pull/2538>
*Gesendet: *Sonntag, 12. Januar 2025 um 12:24
*Von: *"JAYAPRAKASH ARTHANAREESWARAN via jdt-dev" <jdt-dev@xxxxxxxxxxx>
*An: *"Eclipse JDT general developers list." <jdt-dev@xxxxxxxxxxx>
*CC: *"JAYAPRAKASH ARTHANAREESWARAN" <jarthana@xxxxxxxxxx>
*Betreff: *Re: [jdt-dev] 4.35 Y-Build: Y20250111-1000 - BUILD FAILED
I think this was fixed in master. I will do the merge that should unblock us.

Regards,
Jay

-----Original Message-----
From: jdt-dev <jdt-dev-bounces@xxxxxxxxxxx> On Behalf Of Stephan Herrmann via jdt-dev
Sent: 12 January 2025 16:53
To: jdt-dev@xxxxxxxxxxx
Cc: Stephan Herrmann <stephan.herrmann@xxxxxxxxx>
Subject: [EXTERNAL] Re: [jdt-dev] 4.35 Y-Build: Y20250111-1000 - BUILD FAILED

We'll need some help here:


Am 11.01.25 um 16:05 schrieb genie.releng--- via jdt-dev:
> Please go to https://ci.eclipse.org/releng/job/YPBuilds/job/Y-build-4.35/50/ console <https://ci.eclipse.org/releng/job/YPBuilds/job/Y-build-4.35/50/console> and check the build failure.

The build aborts with these compile errors:

16:05:12 [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler- plugin:4.0.11-SNAPSHOT:compile
(default-compile) on project org.eclipse.jdt.core.compiler.batch: Compilation
failure: Compilation failure:
16:05:12 [ERROR]
/home/jenkins/agent/workspace/YPBuilds/Y-build-4.35/cje-production/gitCache/ eclipse.platform.releng.aggregator/eclipse.jdt.core/ org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/ TryStatement.java:[1015]

16:05:12 [ERROR] if (enclosingSwitchExpression(upperScope) instanceof
SwitchExpression swich) {
16:05:12 [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:05:12 [ERROR] Expression type cannot be a subtype of the Pattern type
16:05:12 [ERROR]
/home/jenkins/agent/workspace/YPBuilds/Y-build-4.35/cje-production/gitCache/ eclipse.platform.releng.aggregator/eclipse.jdt.core/ org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ lookup/TypeBinding.java:[731]

16:05:12 [ERROR] return isRecord() && components() instanceof
RecordComponentBinding [] components && components.length > 0;
16:05:12 [ERROR] ^^^^^^^^^^^^
16:05:12 [ERROR] Expression type cannot be a subtype of the Pattern type
16:05:12 [ERROR]
/home/jenkins/agent/workspace/YPBuilds/Y-build-4.35/cje-production/gitCache/ eclipse.platform.releng.aggregator/eclipse.jdt.core/ org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ problem/ProblemReporter.java:[6419]

16:05:12 [ERROR] if (annotationBinding.getAnnotationType() instanceof
ReferenceBinding type
16:05:12 [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:05:12 [ERROR] Expression type cannot be a subtype of the Pattern type
16:05:12 [ERROR] 3 problems (3 errors)

This is the problem with ID 1782 and history shows that ecj no longer raises this error since https://github.com/eclipse-jdt/eclipse.jdt.core/pull/77 <https://github.com/eclipse-jdt/eclipse.jdt.core/pull/77>

=> The build must have used a compiler version < May 12, 2022


For investigation I ran another job with verbose logging (-X):
- https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-24/12/console <https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-24/12/console> Unfortunately, tycho-compiler-plugin doesn't tell us which version of the compiler it uses, even when specifying -X.


any ideas how to proceed?
Stephan
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ jdt-dev <https://www.eclipse.org/mailman/listinfo/jdt-dev>
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ jdt-dev <https://www.eclipse.org/mailman/listinfo/jdt-dev>

_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev



Back to the top