Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Wagenknecht2016-10-14 16:52:10 +0000
committerLakshmi Shanmugam2018-07-28 14:35:25 +0000
commitd33580ac593398ef9901b9779dd1f40ec86fe44b (patch)
treef0554ef108946243ef3e77e8f2f42dce8c0fd1dd /bundles/org.eclipse.swt.tools
parentde8d7099dd39b789b68269b4ed2d57dc5e571f7b (diff)
downloadeclipse.platform.swt-d33580ac593398ef9901b9779dd1f40ec86fe44b.tar.gz
eclipse.platform.swt-d33580ac593398ef9901b9779dd1f40ec86fe44b.tar.xz
eclipse.platform.swt-d33580ac593398ef9901b9779dd1f40ec86fe44b.zip
Bug 514191 - [Cocoa] [10.11] Bridge support files should be updated to latest macOS supported version
Remove __kindof keyword. This is also a new objective c feature that should be ignored for now. It's like a super/extends in Java generics but we need more details in order to support it. Change-Id: Ife60c4ffc83f39acdb7a8eceb305b2a0d6307d34 Signed-off-by: Gunnar Wagenknecht <gunnar@wagenknecht.org>
Diffstat (limited to 'bundles/org.eclipse.swt.tools')
-rw-r--r--bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
index eaba4c6923..3df7c1ac0e 100644
--- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
+++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
@@ -310,6 +310,9 @@ private String getDeclaredType(NamedNodeMap map, Node location) {
// strip greater-than (>) sign
value = value.replace(">", "");
+ // also strip __kindof keyword
+ value = value.replace("__kindof", "");
+
// also remove any white spaces
value = value.chars().filter((c)->!Character.isWhitespace(c)).mapToObj(c -> String.valueOf((char)c)).collect(Collectors.joining());

Back to the top