1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00
cdt/build/org.eclipse.cdt.managedbuilder.core
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
..
.settings Upgrade build.properties warnings to errors 2022-11-06 18:29:28 -05:00
META-INF Resolve cast exception - fixup for inferring generic types (#490) 2023-08-03 17:12:26 -04:00
schema Add GNU PE64 binary parser for MinGW GCC toolchain 2023-04-13 21:54:36 +01:00
src/org/eclipse/cdt Resolve cast exception - fixup for inferring generic types (#490) 2023-08-03 17:12:26 -04:00
.classpath Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
.options Add missing buildModel tracing option 2015-10-22 15:24:47 -04:00
.project
about.html [releng] Update all legal files with update_legal_files.sh 2022-04-13 13:42:35 -04:00
build.properties Bug 540373: Cleanup: Remove trailing whitespace in properties files 2018-11-23 07:52:26 +00:00
plugin.properties Bug 571566: Document how to choose workspace for headless build 2021-03-01 02:40:52 -05:00
plugin.xml Bug 579756: Add support for prefixed toolchain binaries in parser 2022-04-25 15:34:13 -04:00