Skip to content
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

I20231213-0710 is unstable #1659

Closed
iloveeclipse opened this issue Dec 13, 2023 · 22 comments
Closed

I20231213-0710 is unstable #1659

iloveeclipse opened this issue Dec 13, 2023 · 22 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@iloveeclipse
Copy link
Member Author

There are ~230 bundles to touch...

|-- eclipse.jdt.core
|  |-- org.eclipse.jdt.apt.core
|  |-- org.eclipse.jdt.apt.pluggable.core
|  |-- org.eclipse.jdt.apt.pluggable.tests
|  |-- org.eclipse.jdt.apt.tests
|  |-- org.eclipse.jdt.apt.ui
|  |-- org.eclipse.jdt.compiler.apt.tests
|  |-- org.eclipse.jdt.compiler.tool.tests
|  |-- org.eclipse.jdt.core.tests.builder
|  |-- org.eclipse.jdt.core.tests.model
|  |-- org.eclipse.jdt.core.tests.performance
|  |-- org.eclipse.jdt.core
|-- eclipse.jdt.debug
|  |-- org.eclipse.jdt.debug.tests
|  |-- org.eclipse.jdt.debug.ui
|  |-- org.eclipse.jdt.debug
|  |-- org.eclipse.jdt.launching.macosx
|  |-- org.eclipse.jdt.launching.ui.macosx
|  |-- org.eclipse.jdt.launching
|-- eclipse.jdt.ui
|  |-- org.eclipse.jdt.bcoview
|  |-- org.eclipse.jdt.core.manipulation
|  |-- org.eclipse.jdt.jeview
|  |-- org.eclipse.jdt.junit.core
|  |-- org.eclipse.jdt.junit
|  |-- org.eclipse.jdt.text.tests
|  |-- org.eclipse.jdt.ui.tests.refactoring
|  |-- org.eclipse.jdt.ui.tests
|  |-- org.eclipse.jdt.ui.unittest.junit
|-- eclipse.pde
|  |-- build
|  |  |-- org.eclipse.pde.build.tests
|  |  |-- org.eclipse.pde.build
|  |-- ds
|  |  |-- org.eclipse.pde.ds.core
|  |  |-- org.eclipse.pde.ds.ui
|  |-- ua
|  |  |-- org.eclipse.pde.ua.core
|  |  |-- org.eclipse.pde.ua.ui
|  |-- ui
|  |  |-- org.eclipse.pde.bnd.ui
|  |  |-- org.eclipse.pde.core
|  |  |-- org.eclipse.pde.genericeditor.extension.tests
|  |  |-- org.eclipse.pde.genericeditor.extension
|  |  |-- org.eclipse.pde.junit.runtime.tests
|  |  |-- org.eclipse.pde.runtime
|  |  |-- org.eclipse.pde.spy.bundle
|  |  |-- org.eclipse.pde.spy.context
|  |  |-- org.eclipse.pde.spy.core
|  |  |-- org.eclipse.pde.spy.css
|  |  |-- org.eclipse.pde.spy.event
|  |  |-- org.eclipse.pde.spy.preferences
|  |  |-- org.eclipse.pde.ui.templates.tests
|  |  |-- org.eclipse.pde.ui.templates
|  |  |-- org.eclipse.tools.layout.spy
|-- eclipse.platform
|  |-- ant
|  |  |-- org.eclipse.ant.core
|  |  |-- org.eclipse.ant.launching
|  |  |-- org.eclipse.ant.tests.core
|  |  |-- org.eclipse.ant.tests.ui
|  |  |-- org.eclipse.ant.ui
|  |-- debug
|  |  |-- org.eclipse.debug.core
|  |  |-- org.eclipse.debug.examples.core
|  |  |-- org.eclipse.debug.examples.ui
|  |  |-- org.eclipse.debug.tests
|  |  |-- org.eclipse.debug.ui.launchview
|  |  |-- org.eclipse.debug.ui
|  |  |-- org.eclipse.ui.console
|  |  |-- org.eclipse.ui.externaltools
|  |  |-- org.eclipse.unittest.ui
|  |-- resources
|  |  |-- examples
|  |  |  |-- org.eclipse.ui.examples.filesystem
|  |-- runtime
|  |  |-- bundles
|  |  |  |-- org.eclipse.core.contenttype
|  |  |  |-- org.eclipse.core.expressions
|  |  |  |-- org.eclipse.core.jobs
|  |  |  |-- org.eclipse.core.runtime
|  |  |  |-- org.eclipse.e4.core.di
|  |  |-- tests
|  |  |  |-- org.eclipse.core.expressions.tests
|  |  |  |-- org.eclipse.core.tests.runtime
|  |  |  |-- org.eclipse.e4.core.tests
|  |-- team
|  |  |-- bundles
|  |  |  |-- org.eclipse.compare.core
|  |  |  |-- org.eclipse.compare.win32
|  |  |  |-- org.eclipse.compare
|  |  |  |-- org.eclipse.core.net.linux
|  |  |  |-- org.eclipse.core.net.win32
|  |  |  |-- org.eclipse.core.net
|  |  |  |-- org.eclipse.jsch.core
|  |  |  |-- org.eclipse.jsch.ui
|  |  |  |-- org.eclipse.team.core
|  |  |  |-- org.eclipse.team.ui
|  |  |-- examples
|  |  |  |-- org.eclipse.compare.examples.xml
|  |  |  |-- org.eclipse.team.examples.filesystem
|  |  |-- tests
|  |  |  |-- org.eclipse.compare.tests
|  |  |  |-- org.eclipse.core.tests.net
|  |  |  |-- org.eclipse.team.tests.core
|  |-- ua
|  |  |-- org.eclipse.help.ui
|  |  |-- org.eclipse.help
|  |  |-- org.eclipse.tips.ide
|  |  |-- org.eclipse.tips.json
|  |  |-- org.eclipse.tips.ui
|  |  |-- org.eclipse.ua.tests.doc
|  |  |-- org.eclipse.ua.tests
|  |  |-- org.eclipse.ui.cheatsheets
|  |  |-- org.eclipse.ui.intro.universal
|  |  |-- org.eclipse.ui.intro
|  |-- update
|  |  |-- org.eclipse.update.configurator
|-- eclipse.platform.releng
|  |-- bundles
|  |  |-- org.eclipse.releng.tests
|  |  |-- org.eclipse.test.performance
|  |  |-- org.eclipse.test
|-- eclipse.platform.swt
|  |-- bundles
|  |  |-- org.eclipse.swt.tools.spies
|  |  |-- org.eclipse.swt.tools
|  |-- examples
|  |  |-- org.eclipse.swt.examples.browser.demos
|  |  |-- org.eclipse.swt.examples.views
|  |  |-- org.eclipse.swt.examples
|  |-- tests
|  |  |-- org.eclipse.swt.tests
|-- eclipse.platform.swt.binaries
|  |-- bundles
|  |  |-- org.eclipse.swt.cocoa.macosx.aarch64
|  |  |-- org.eclipse.swt.cocoa.macosx.x86_64
|  |  |-- org.eclipse.swt.gtk.linux.aarch64
|  |  |-- org.eclipse.swt.gtk.linux.ppc64le
|  |  |-- org.eclipse.swt.gtk.linux.x86_64
|  |  |-- org.eclipse.swt.win32.win32.x86_64
|-- eclipse.platform.ui
|  |-- bundles
|  |  |-- org.eclipse.core.commands
|  |  |-- org.eclipse.core.databinding.beans
|  |  |-- org.eclipse.core.databinding.observable
|  |  |-- org.eclipse.core.databinding.property
|  |  |-- org.eclipse.core.databinding
|  |  |-- org.eclipse.e4.core.commands
|  |  |-- org.eclipse.e4.emf.xpath
|  |  |-- org.eclipse.e4.ui.bindings
|  |  |-- org.eclipse.e4.ui.css.core
|  |  |-- org.eclipse.e4.ui.css.swt.theme
|  |  |-- org.eclipse.e4.ui.css.swt
|  |  |-- org.eclipse.e4.ui.dialogs
|  |  |-- org.eclipse.e4.ui.model.workbench
|  |  |-- org.eclipse.e4.ui.progress
|  |  |-- org.eclipse.e4.ui.workbench.addons.swt
|  |  |-- org.eclipse.e4.ui.workbench.swt
|  |  |-- org.eclipse.e4.ui.workbench
|  |  |-- org.eclipse.e4.ui.workbench3
|  |  |-- org.eclipse.jface.databinding
|  |  |-- org.eclipse.jface.text
|  |  |-- org.eclipse.ltk.ui.refactoring
|  |  |-- org.eclipse.search
|  |  |-- org.eclipse.text.quicksearch
|  |  |-- org.eclipse.text
|  |  |-- org.eclipse.ui.browser
|  |  |-- org.eclipse.ui.editors
|  |  |-- org.eclipse.ui.forms
|  |  |-- org.eclipse.ui.genericeditor
|  |  |-- org.eclipse.ui.ide.application
|  |  |-- org.eclipse.ui.ide
|  |  |-- org.eclipse.ui.monitoring
|  |  |-- org.eclipse.ui.navigator.resources
|  |  |-- org.eclipse.ui.navigator
|  |  |-- org.eclipse.ui.views.log
|  |  |-- org.eclipse.ui.views
|  |  |-- org.eclipse.ui.workbench.texteditor
|  |  |-- org.eclipse.ui.workbench
|  |  |-- org.eclipse.urischeme
|  |-- examples
|  |  |-- org.eclipse.jface.examples.databinding
|  |  |-- org.eclipse.ui.examples.contributions
|  |  |-- org.eclipse.ui.examples.readmetool
|  |-- tests
|  |  |-- org.eclipse.core.filebuffers.tests
|  |  |-- org.eclipse.e4.ui.tests.css.core
|  |  |-- org.eclipse.e4.ui.tests.css.swt
|  |  |-- org.eclipse.jface.tests.databinding.conformance
|  |  |-- org.eclipse.jface.tests.databinding
|  |  |-- org.eclipse.jface.text.tests
|  |  |-- org.eclipse.ltk.core.refactoring.tests
|  |  |-- org.eclipse.ltk.ui.refactoring.tests
|  |  |-- org.eclipse.search.tests
|  |  |-- org.eclipse.tests.urischeme
|  |  |-- org.eclipse.text.quicksearch.tests
|  |  |-- org.eclipse.text.tests
|  |  |-- org.eclipse.ui.editors.tests
|  |  |-- org.eclipse.ui.genericeditor.tests
|  |  |-- org.eclipse.ui.tests.forms
|  |  |-- org.eclipse.ui.tests.harness
|  |  |-- org.eclipse.ui.tests.navigator
|  |  |-- org.eclipse.ui.tests.performance
|  |  |-- org.eclipse.ui.tests.pluginchecks
|  |  |-- org.eclipse.ui.tests.rcp
|  |  |-- org.eclipse.ui.tests.views.properties.tabbed
|  |  |-- org.eclipse.ui.tests
|  |  |-- org.eclipse.ui.workbench.texteditor.tests
|  |-- tools
|  |  |-- bundles
|  |  |  |-- org.eclipse.e4.tools.emf.editor3x
|  |  |  |-- org.eclipse.e4.tools.emf.ui
|  |  |  |-- org.eclipse.e4.tools.services
|  |  |  |-- org.eclipse.e4.tools
|-- equinox
|  |-- bundles
|  |  |-- org.eclipse.equinox.app
|  |  |-- org.eclipse.equinox.bidi.tests
|  |  |-- org.eclipse.equinox.bidi
|  |  |-- org.eclipse.equinox.cm
|  |  |-- org.eclipse.equinox.common.tests
|  |  |-- org.eclipse.equinox.common
|  |  |-- org.eclipse.equinox.console.ssh
|  |  |-- org.eclipse.equinox.ds.tests
|  |  |-- org.eclipse.equinox.event
|  |  |-- org.eclipse.equinox.http.jetty
|  |  |-- org.eclipse.equinox.http.registry
|  |  |-- org.eclipse.equinox.http.servlet.tests
|  |  |-- org.eclipse.equinox.http.servlet
|  |  |-- org.eclipse.equinox.jsp.jasper
|  |  |-- org.eclipse.equinox.registry
|  |  |-- org.eclipse.equinox.security.linux
|  |  |-- org.eclipse.equinox.security.tests
|  |  |-- org.eclipse.equinox.security.ui
|  |  |-- org.eclipse.equinox.security
|  |  |-- org.eclipse.equinox.servletbridge
|  |  |-- org.eclipse.equinox.transforms.hook
|  |  |-- org.eclipse.equinox.transforms.xslt
|  |  |-- org.eclipse.equinox.useradmin
|  |  |-- org.eclipse.equinox.weaving.caching.j9
|  |  |-- org.eclipse.equinox.weaving.caching
|  |  |-- org.eclipse.equinox.weaving.hook
|  |  |-- org.eclipse.osgi.tests
|-- rt.equinox.p2
|  |-- bundles
|  |  |-- org.eclipse.equinox.frameworkadmin.equinox
|  |  |-- org.eclipse.equinox.frameworkadmin.test
|  |  |-- org.eclipse.equinox.frameworkadmin
|  |  |-- org.eclipse.equinox.p2.artifact.repository
|  |  |-- org.eclipse.equinox.p2.console
|  |  |-- org.eclipse.equinox.p2.core
|  |  |-- org.eclipse.equinox.p2.director.app
|  |  |-- org.eclipse.equinox.p2.director
|  |  |-- org.eclipse.equinox.p2.discovery.compatibility
|  |  |-- org.eclipse.equinox.p2.discovery
|  |  |-- org.eclipse.equinox.p2.engine
|  |  |-- org.eclipse.equinox.p2.extensionlocation
|  |  |-- org.eclipse.equinox.p2.installer
|  |  |-- org.eclipse.equinox.p2.jarprocessor
|  |  |-- org.eclipse.equinox.p2.metadata.repository
|  |  |-- org.eclipse.equinox.p2.metadata
|  |  |-- org.eclipse.equinox.p2.publisher.eclipse
|  |  |-- org.eclipse.equinox.p2.publisher
|  |  |-- org.eclipse.equinox.p2.reconciler.dropins
|  |  |-- org.eclipse.equinox.p2.repository.tools
|  |  |-- org.eclipse.equinox.p2.repository
|  |  |-- org.eclipse.equinox.p2.tests.discovery
|  |  |-- org.eclipse.equinox.p2.tests.ui
|  |  |-- org.eclipse.equinox.p2.tests.verifier
|  |  |-- org.eclipse.equinox.p2.tests
|  |  |-- org.eclipse.equinox.p2.touchpoint.eclipse
|  |  |-- org.eclipse.equinox.p2.touchpoint.natives
|  |  |-- org.eclipse.equinox.p2.transport.ecf
|  |  |-- org.eclipse.equinox.p2.ui.discovery
|  |  |-- org.eclipse.equinox.p2.ui.importexport
|  |  |-- org.eclipse.equinox.p2.ui.sdk.scheduler
|  |  |-- org.eclipse.equinox.p2.ui
|  |  |-- org.eclipse.equinox.p2.updatesite
|  |  |-- org.eclipse.equinox.simpleconfigurator.manipulator
|  |  |-- org.eclipse.equinox.simpleconfigurator

@laeubi
Copy link
Contributor

laeubi commented Dec 13, 2023

@mickaelistria is it possible to disable the qualifier checks for one I build so everything gets uploaded with the same qualifier?

@akurtakov
Copy link
Member

@mickaelistria is it possible to disable the qualifier checks for one I build so everything gets uploaded with the same qualifier?

Honestly, it's @sravanlakkimsetti who may know this.

@sravanlakkimsetti
Copy link
Member

@mickaelistria is it possible to disable the qualifier checks for one I build so everything gets uploaded with the same qualifier?

Honestly, it's @sravanlakkimsetti who may know this.

We need to disable comparator for a build here. Let me check how this can be done.

@sravanlakkimsetti
Copy link
Member

Here are the steps I would follow.

  1. Update parent pom by disabling comparator
  2. Build eclipse platform
  3. Remove older builds from I-build repository (This is important for the next build the basebuilder creation will have problems). use Mark Unstable job
  4. revert the change made in step 1
  5. Build once again (make sure you have 5 hour gap between builds because features use Newyork time stamp for the qualifier and plugins use UTC time stamp, sometimes comparator throws away perfectly good feature jar)

@sravanlakkimsetti
Copy link
Member

On sidenote I think We should have a flag that can turn on or turnoff comparator by the way of check box in the build job

A change similar to eclipse-jdt/eclipse.jdt.core#1435 should enable us to have a switch in the build job

@akurtakov
Copy link
Member

What is the plan here guys? I would like to combine this with setting tycho-compiler-plugin to use project settings by default so we don't touch twice so let me know when/if should I deliver it.

@akurtakov
Copy link
Member

There is #1661 which IMO should be pushed ASAP as there are already comparator issues and "touching" bundles will fix both at once.

@iloveeclipse
Copy link
Member Author

What is the plan here guys? I would like to combine this with setting tycho-compiler-plugin to use project settings by default so we don't touch twice so let me know when/if should I deliver it.

I saw proposal from Sravan, that sounded too much for me (simply because I'm not experienced doing that) so I planned to write a script that would touch every bundle mentioned in the artifactcomparisons.zip and create/update "touch bundle" files.

However I have some tasks to do before that, so if someone wants follow up with steps from Sravant, please feel free to do so.

There is #1661 which IMO should be pushed ASAP

This PR has compilation errors :-(

@akurtakov
Copy link
Member

What is the plan here guys? I would like to combine this with setting tycho-compiler-plugin to use project settings by default so we don't touch twice so let me know when/if should I deliver it.

I saw proposal from Sravan, that sounded too much for me (simply because I'm not experienced doing that) so I planned to write a script that would touch every bundle mentioned in the artifactcomparisons.zip and create/update "touch bundle" files.

However I have some tasks to do before that, so if someone wants follow up with steps from Sravant, please feel free to do so.

There is #1661 which IMO should be pushed ASAP

This PR has compilation errors :-(

The compilation error is actually due to usage of project settings, which includes failing the build if a warnings as raised to error.

iloveeclipse added a commit to iloveeclipse/eclipse.platform.releng.aggregator that referenced this issue Dec 14, 2023
Added TouchBundles to run over extracted artifactcomparisons.zip and
touch every bundle that need to be touched.

See eclipse-jdt/eclipse.jdt.core#1394
See eclipse-platform#1659
@iloveeclipse
Copy link
Member Author

so I planned to write a script that would touch every bundle mentioned in the artifactcomparisons.zip and create/update "touch bundle" files.

For the record, here is the script:
https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/eclipse.platform.releng/bundles/org.eclipse.releng.tests/src/org/eclipse/releng/tests/TouchBundles.java

@iloveeclipse
Copy link
Member Author

Still showing comparator error, seems got missed previously .

I will address them soon. And yes, I've missed them, looks like they had a bit different tree structure compared with others.

@MohananRahul
Copy link
Contributor

Still showing comparator error, seems got missed previously .

I will address them soon. And yes, I've missed them, looks like they had a bit different tree structure compared with others.

Im Preparing PR.. almost done.

@iloveeclipse
Copy link
Member Author

Thanks all. We finally have stable SDK build.

@iloveeclipse iloveeclipse self-assigned this Dec 15, 2023
@iloveeclipse iloveeclipse added this to the 4.31 M1 milestone Dec 15, 2023
@merks
Copy link
Contributor

merks commented Dec 15, 2023

@iloveeclipse

And of course a huge thank you to you personally too!!

@laeubi
Copy link
Contributor

laeubi commented Dec 15, 2023

Thanks all. We finally have stable SDK build.

But now all verification builds show numerous of warnings like:

[WARNING] MavenProject: org.eclipse.pde:org.eclipse.pde.build.tests:1.4.300-SNAPSHOT @ /home/jenkins/agent/workspace/eclipse.pde_PR-1010/build/org.eclipse.pde.build.tests/.polyglot.META-INF: baseline and build artifacts have same version but different contents
no-classifier: different
org/eclipse/pde/build/internal/tests/AssembleTests.class: different
org/eclipse/pde/build/internal/tests/ScriptGenerationTests.class: different
org/eclipse/pde/build/internal/tests/SourceTests.class: different
org/eclipse/pde/build/internal/tests/Utils.class: different
org/eclipse/pde/build/internal/tests/p2/LicenseTests.class: different
org/eclipse/pde/build/internal/tests/p2/P2TestCase.class: different
org/eclipse/pde/build/internal/tests/p2/P2Tests.class: different
org/eclipse/pde/build/internal/tests/p2/PublishingTests.class: different
org/eclipse/pde/build/tests/PDETestCase.class: different

because verification builds use the default ECJ compiler and not the latest-and-greatest... so I think there must be a deploy and parent pom must use new ECJ compiler.

mpalat added a commit to eclipse-jdt/eclipse.jdt.core that referenced this issue Dec 19, 2023
* configure default output.. = bin/

* JavaSearchScope: improve encloses() performance  #474

* [test] remove outdated latestBREE project

* fix some ecj markers

Especially after moving files to compiler.batch - which has no resource
warnings - the @SuppressWarnings("resource") is not used - leading to a
marker

* Single async "Synchronizing projects" Job #419

Scheduling multiple times "while the job is running, the job will still
only be rescheduled once" (javadoc) so there will be always only a
single job running.
Using a Set prevents touching projects multiple times.

#419

Manually tested by changing Compiler Building options "Circular
dependencies", which triggers a new build.

* [test] fix AbstractJavaModelTests #1333

avoid asynchronous refresh. Implementation taken from
org.eclipse.core.tests.resources.refresh.RefreshProviderTest.joinAutoRefreshJobs()

#1333

* TestVerifier: never wait 100ms

improve test time, accurate timeout

* [performance] ClassFileReader: use already open Zip File

instead of creating new ZipFile instance.

also:
* use Files.readAllBytes
* removed unused code
* faster toUri avoiding isDirectory() check for the JARs which are known
to be no directory

improves performance of read() on windows by factor 2
tested with java reference search to java.lang.Object

* Stop skipping compare-with-baseline for jdt.annotation v2

One less thing that has to be manually tracked and done.

* Version bump for jdt.annotation

Pointed by
https://download.eclipse.org/eclipse/downloads/drops4/I20231130-0020/buildlogs/reporeports/reports/versionChecks.html

* Fix github urls in NOTICE file

* Use try-with-resource and enable warning if not

org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning

StringWriter does not need flush() or close() and can not throw
IOException.

Tests excluded.

To get rid of boiler plate code.

* version bumps

* [21] JEP 430 String Templates (#1513)

Grammar, compiler AST, resolution and code generation changes

* Javadoc: fix unclosed <code>

* break from loop within labeled block causes loss of nullness info (#1660)

fixes #1659

* Fixes incorrect Javadoc after StringBuffer to StringBuilder change

* NPE in ASTRewriteFlattener as return value of GuardedPattern.getPattern() is null  (#1647)

NPE in ASTRewriteFlattener as return value of
GuardedPattern.getPattern() is null

* Adding pomless build to JDT core

This enables pomless builds for JDT coreand removes the simple pom
files.

Future commits can reduce the usage of pom files further. This might
require enhancements in pomless builds to specify the test classes and
suites eclipse-tycho/tycho#3105

* Using Simplify lambda expression and method reference syntax cleanup on
core

Using the JDT UI "Simplify lambda expression and method reference
syntax" clean-up on jdt.core.

* Internal compiler error: ArrayIndexOutOfBoundsException in latest i build (#1664)


fixes #1661

* Using Simplify lambda expression and method reference syntax cleanup on
all plug-ins except core

Using the JDT UI "Simplify lambda expression and method reference
syntax" clean-up on all plug-ins except jdt.core.

* Using short-circuit in IncrementalImageBuilder

* Re-normalize line-endings in git of all files to Linux style ("\n")

Some files were checked-in into git having windows style line
endings (\r\n). This is in general not wanted because it can cause
modified files without any difference in git-staging on Windows if
auto-crlf is enabled.

To re-normalize line endings of all files use the following command
(including dot):

git add --renormalize .

* Bump bundle dependencies to trigger a rebuild / fix SDK build error

The change in bytecode of FullSourceWorkspaceBuildTests is due the
constant value change of
o.e.jdt.internal.compiler.parser.TerminalTokens.TokenNameEOF coming
from #1513.

Fixes eclipse-platform/eclipse.platform.releng.aggregator#1617

* False positive "Dead code" compiler error reported on org.eclipse.pde.internal.core.util.PDEJavaHelper.getExternalPackageFragment(String, String) (#1671)

fixes #1667

* Use diamond operator in jdt.core repo

Using the JDT UI clean-up, this removes the redundant type information.

Also activating
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
The rest of the changes in the prefs file were done by the tooling, not
by
selecting anther value.

* Improve constructor completions inside method invocations Fix #1587 (#1588)

* Try-with-resource clean-up in JDT core

Using the JDT UI try-with-resource clean-up on core.
Also manually inlining the declaration of multiple places into the try()
clause.

* Make inner classes static where possible in JDT core

Running the JDT performnace clean-up "Make inner classes static where
possible" in JDT core

* Use Use lazy logical operator (&& and ||)

Running the performance clean-up "Use lazy logical operator (&& and ||)"
on JDT core

* Using Integer.toString directly in Disassembler

It is also a JDT UI performance clean-up but this clean-up found only
one occurrence.

* use Path.of() to avoid 'Potential resource leak' warnings

* @NonNullByDefault does not work for type arguments of a local type (#1694)

fixes #1693

* ClassCastException during code completion on Annotation (#1696)

fixes #1440

Also fixes noise from #1662

* CompilationUnitResolver: Name the CU that causes Exception (#1690)

for example during Cleanup
eclipse-jdt/eclipse.jdt.ui#950

Co-authored-by: Jörg Kubitz <jkubitz-eclipse@gmx.de>

* Code selection support for String template expressions (#1699)

Fixes  #1685

* Report error if string template is used without preview option enabled (#1697)

Improves the fix for #544

* ECJ crashes when an embedded expression contains broken code (#1702)

Set haltOnSyntaxError when parsing for embedded expressions. Also using the correct delimiters for text blocks in printExpression() methods.

* Selection model tests for string templates (#1704)

* tests: enable discouragedReference=warning, declare x-friends

to get rid of warnings during build (does not respect the jdt
preferences)

* Javadoc format fixes

Contributes to
eclipse-platform/eclipse.platform.releng.aggregator#1531

* Performance: Add public API for Batch Reads in UI - closes #1614

During Batches:
* cache Zip Files
* enable JavaModelManager.temporaryCache

Also:
* uses Batch Reads during some core actions that benefit from it.
* adds trace logging when caching is missing.

#1614

* Javadoc format fixes (part 2)

Contributes to
eclipse-platform/eclipse.platform.releng.aggregator#1531.
It's a pity that this takes multiple cycles but fixing one thing from
the log uncovers the next.

* ECJ 3.36.0 regression: The type 'E extends java.lang.Exception' is not a valid substitute for the type parameter 'E extends java.lang.@nonnull Exception' (#1708)

fixes #1691

+ also slightly updates NullAnnotationTests18 as NullAnnotationTests21

* Implement support for code completion inside embedded expression of (only) string templates (not text block templates) (#1712)

* Implement support for code completion inside embedded expression of
(only) string templates (not text block templates)

* Fixes #1711

* Fixes #1641 (#1713)

* Add new testcase #1701 (#1705)

* Content assist does not propose overrides in records (#1718)

* Fixes #1095

* JavaModelManager: lazy initialize TouchJob #1720

#1720

* Run the JavaCoreStandaloneTest in the build

#1720

* Bogus error about return expression involving pattern matching (#1731)

Fixes #1726

* Compiler fails to recognize an exhaustive switch (#1733)

*  Fixes #1725

* [21] Processed string templates falsely contain backslash characters (#1730)

#1719

* 1641_enum_further_fixes (#1739)

* Fix one too many pops arising from string concat invoke dynamic (#1740)

* Fix one too many pops arising from string concat invoke dynamic

* Fixes #1394

* Wrong placement of exception range closure results in AIOOB (#1744)

Fixes #1686

* Improper warning - Potential null pointer access (#1469)

Fixes #1461
Sets the flow info reach mode to FlowInfo.UNREACHABLE_BY_NULLANALYSIS
after 'Object o = null;if (Objects.isNull(o)) return;', 'Object o = "";if (Objects.nonNull(o)) return;

Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>

* Touch bundles affected by the changed ecj version

See #1394
See eclipse-platform/eclipse.platform.releng.aggregator#1659

* Upload eventfile and unit test results

* 2023-06->2023-09 Seems to have broke dependency graph management in our project (#1698)

* Add test for reproducing #1654
* Fix to make that test pass

---------

Co-authored-by: Stephan Herrmann <stephan.herrmann@berlin.de>

* [memory] SoftReference for ResourceCompilationUnit.contents #1743

Ability to reduce memory during searches that find many files

#1743

* deduplicate "eclipse" #1743

CharDeduplication was not designed to deduplicate tokens with length 7+
which could lead to high memory consumption. With this change tokens of
all sizes can be deduplicated.

#1743

A benchmark implemented in CharDeduplicationTest.main(String[]) shows
the new deduplication is performed at similar speed (.21s instead of
.16s) but deduplicates much more tokens (99% instead of 36%).

* 1703.constant definitions (#1756)

* Fixes [21] AIOOB at switchStatement TNode.addPattern  (#1757)

org.eclipse.jdt.internal.compiler.ast.SwitchStatement $TNode.addPattern

---------

Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
Co-authored-by: Jörg Kubitz <jkubitz-eclipse@gmx.de>
Co-authored-by: Eric Milles <eric.milles@thomsonreuters.com>
Co-authored-by: Александър Куртаков <akurtakov@gmail.com>
Co-authored-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Co-authored-by: Stephan Herrmann <stephan.herrmann@berlin.de>
Co-authored-by: Lars Vogel <Lars.Vogel@vogella.com>
Co-authored-by: Suby S Surendran <suby.surendran@ibm.com>
Co-authored-by: Hannes Wellmann <wellmann.hannes1@gmx.net>
Co-authored-by: Andrey Loskutov <loskutov@gmx.de>
Co-authored-by: Gayan Perera <gayanper@gmail.com>
Co-authored-by: Jörg Kubitz <51790620+jukzi@users.noreply.github.com>
Co-authored-by: Srikanth Sankaran <131454720+srikanth-sankaran@users.noreply.github.com>
Co-authored-by: Ed Merks <ed.merks@gmail.com>
Co-authored-by: Snjeza <snjezana.peco@redhat.com>
Co-authored-by: Christoph Läubrich <laeubi@laeubi-soft.de>
Co-authored-by: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
rgrunber pushed a commit to eclipse-jdtls/eclipse-jdt-core-incubator that referenced this issue Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants