1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
cdt/build
Jonah Graham 9448058a76
Resolve cast exception - fixup for inferring generic types (#490)
Long ago in 334702ee05 generic types
were added. However in at least one place a previous assumption
that existed was broken. That assumption was the true
type of ResourceInfo.getTools() would be Tool[] as opposed to ITool[].
That commit broke it for ResourceConfiguration.getTools()

Internally in CDT ITool is in practice always Tool, and as a result
there are lots of downcast from ITool -> Tool. However ITool[] cannot
be downcast to Tool[] unless the original type was Tool[].

Instead we use Arrays.copyOf to copy the array into the correct
array type.

Steps to reproduce the problem now fixed:

1. Create a Managed Build executable project.
2. Open the properties window of the source file (as opposed to project)
3. At the Properties page, navigate to "C/C++ Build/Tool Chain Editor".
4. Click the "Apply" button.
2023-08-03 17:12:26 -04:00
..
org.eclipse.cdt.autotools-feature Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.autotools.core Remove deprecated binary parsers and supporting code 2022-11-07 20:58:25 -05:00
org.eclipse.cdt.autotools.docs Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.autotools.tests Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.autotools.ui Update copyright year on all features 2023-03-13 21:00:55 -04:00
org.eclipse.cdt.autotools.ui.tests Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.build.gcc.core Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.build.gcc.core.tests fix code cleanlines 2022-11-18 10:55:40 -05:00
org.eclipse.cdt.build.gcc.ui Update copyright year on all features 2023-03-13 21:00:55 -04:00
org.eclipse.cdt.core.autotools-feature Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.core.autotools.core Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.core.autotools.ui Update copyright year on all features 2023-03-13 21:00:55 -04:00
org.eclipse.cdt.gnu.build-feature Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.make.core Binary not found in Core Build Makefile project 2023-03-19 15:18:51 -04:00
org.eclipse.cdt.make.core.tests Cosmetic changes to unit test 2022-11-07 10:04:20 -05:00
org.eclipse.cdt.make.ui Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.make.ui.tests Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.managedbuilder.core Resolve cast exception - fixup for inferring generic types (#490) 2023-08-03 17:12:26 -04:00
org.eclipse.cdt.managedbuilder.core.tests Move all dependencies to maven direct where possible 2023-07-10 20:47:10 -04:00
org.eclipse.cdt.managedbuilder.gnu.ui Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.managedbuilder.headlessbuilderapp Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.managedbuilder.ui Bug 571722: Add ALL_FLAGS for scanner discovery 2022-11-21 10:46:49 -05:00
org.eclipse.cdt.managedbuilder.ui.tests Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.meson-feature Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.meson.core Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.meson.docs Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
org.eclipse.cdt.meson.ui Update copyright year on all features 2023-03-13 21:00:55 -04:00
org.eclipse.cdt.meson.ui.editor Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
org.eclipse.cdt.meson.ui.tests Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00
pom.xml Prepare repo for CDT 11.3.0 development 2023-07-10 21:41:39 -04:00