Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Wagenknecht2016-10-15 07:14:35 +0000
committerArun Thondapu2017-03-23 17:52:19 +0000
commit98fb0fa32692eb176a502f67f34e40b05db747e8 (patch)
treecc058292fa1079ef429ed3fced0fe2886dab0167 /bundles/org.eclipse.swt.tools
parentb914d0b9c4f136c21ef9e12b298b47f5d77fa0f4 (diff)
downloadeclipse.platform.swt-98fb0fa32692eb176a502f67f34e40b05db747e8.tar.gz
eclipse.platform.swt-98fb0fa32692eb176a502f67f34e40b05db747e8.tar.xz
eclipse.platform.swt-98fb0fa32692eb176a502f67f34e40b05db747e8.zip
Bug 502090 - Add an error for invalid enums
This allows better debugging of enums no longer available. Change-Id: I18adf33633a8464d27b0a478201a73aec9acbd20 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.java2
1 files changed, 2 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 4875e6bfba..d80943a8f1 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
@@ -1151,6 +1151,8 @@ void generateEnums() {
if (isLong && !value.endsWith("L")) out("L");
out(";");
outln();
+ } else {
+ System.err.printf("No value for enum. Check bridge file! It might have been removed, renamed, etc. Location: %s %n", toDebugLocation(node));
}
}
}

Back to the top