1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00
cdt/core
Jonah Graham ac979bd9e1 Fix unhandled event loop exception when binary parser is not in plugin.xml
If a .cproject references a binary parser ID that is not in
the plug-in XML, or in the XML, but marked as private, the
UI cannot display the binary parsers and was raising an
ArrayIndexOutOfBoundsException as below.

This fix rewrites the array handling using collections.


```java
!ENTRY org.eclipse.ui 4 0 2022-11-04 09:44:27.409
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: Index 7 out of bounds for length 7
	at org.eclipse.cdt.ui.newui.BinaryParsTab.updateData(BinaryParsTab.java:253)
	at org.eclipse.cdt.ui.newui.AbstractCPropertyTab.setVisible(AbstractCPropertyTab.java:253)
	at org.eclipse.cdt.ui.newui.BinaryParsTab.setVisible(BinaryParsTab.java:221)
	at org.eclipse.cdt.ui.newui.AbstractCPropertyTab.handleTabEvent(AbstractCPropertyTab.java:630)
	at org.eclipse.cdt.ui.newui.AbstractPage.updateSelectedTab(AbstractPage.java:412)
	at org.eclipse.cdt.ui.newui.AbstractPage$4.widgetSelected(AbstractPage.java:382)
```
2022-11-04 12:02:15 -04:00
..
org.eclipse.cdt.core Execute autoreconf in the same environment as configure and make 2022-11-04 08:24:54 -04:00
org.eclipse.cdt.core.linux Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.linux.aarch64 Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.linux.ppc64le Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.linux.x86_64 Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.macosx Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.native Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.tests Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.win32 Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.core.win32.x86_64 Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
org.eclipse.cdt.ui Fix unhandled event loop exception when binary parser is not in plugin.xml 2022-11-04 12:02:15 -04:00
org.eclipse.cdt.ui.tests Make missing identifiers and classes in plugin.xml errors 2022-11-04 08:19:23 -04:00
pom.xml [releng] Bump versions for CDT 11.0.0 2022-10-03 12:42:37 -04:00