-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparator issues in I20240918-0950 #2358
Comments
What I see in the zip is extra CHECKCAST instructions. |
Will take a look tomorrow. Also copying @stephan-herrmann |
Looking at AnnotationCodeMiningProvider we are talking about this code: if (getAdapter(IAnnotationAccess.class) instanceof IAnnotationAccessExtension annotationAccessExtension) {
this.annotationAccess= annotationAccessExtension;
} else {
throw new IllegalStateException("annotationAccess must implement IAnnotationAccessExtension"); //$NON-NLS-1$
} Here |
Essentially the same story in p2's ValidationDialogServiceUI.OriginTreeNode: public <T> T getAdapter(Class<T> adapter) {
if (adapter == X509Certificate.class && !certificates.isEmpty()) {
if (certificates.get(0) instanceof X509Certificate certificate) {
return adapter.cast(certificate);
}
} The result of |
Thanks @stephan-herrmann for the analysis - agree that the newly introduced cast (the first cast after invoke is necessary - Commit 213967c106f77c8baf689ff315bc59bf5094f2bc that sets the valueCast via computeConversion() which causes the cast). And no, there was no such check previously - Am good with the newly generated code - probably an issue filed to see whether we can avoid duplicated cast. |
Manoj, is this final? If so, we can touch the affected bundles (org.eclipse.ui.editors and org.eclipse.equinox.p2.ui) and respin. I don't think the changes to the jdt.core bundles are necessary. |
I always wondered what is the best approach here to make the compiler "happy"... due to the first check |
yes - this is final. We can take a look via a separate issue - eclipse-jdt/eclipse.jdt.core#2992 |
I would not be able to do that. It would have to wait for Tue as it's long weekend in Bulgaria or someone else does it before that. |
ok. no issues. will check - @MohananRahul if you see this can you touch |
I believe the above two PR touch the affected bundles, correct? I didn't overlook something? |
Yes - thank you @merks |
The verification build for eclipse-platform/eclipse.platform.ui#2311 appears to stall. |
FWIW I wasn't talking about the explicit |
FYI. I replayed the pr verification build with tycho.version 4.0.8. My impression is that API baseline checks hang or fail with 4.0.9. There are logged messages about unsaved workspace changes with 4.0.9 during this check. |
Failed with 403 errors. Try again. |
Through some miracle the build completed. I will make the optimistic assumption that this issue is resolved. |
Build https://download.eclipse.org/eclipse/downloads/drops4/I20240918-0950/ is unstable.
Comparator log: https://download.eclipse.org/eclipse/downloads/drops4/I20240918-0950/buildlogs/comparatorlogs/buildtimeComparatorUnanticipated.log.txt
Comparator zip: https://download.eclipse.org/eclipse/downloads/drops4/I20240918-0950/buildlogs/comparatorlogs/artifactcomparisons.zip
The text was updated successfully, but these errors were encountered: