improved workaround for codegen bug - this restores the full functionality.
diff --git a/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java b/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java
index 9be3f31..ca8fe4a 100644
--- a/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java
+++ b/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/util/AptConfig.java
@@ -439,9 +439,7 @@
*/
private static Map<String, String> getOldStyleRawProcessorOptions(IJavaProject jproj) {
Map<String, String> options;
-// String allOptions = getString(jproj, AptPreferenceConstants.APT_PROCESSOROPTIONS);
-// temp workaround for codegen bug - WHarley 4/7/06
- String allOptions = null;
+ String allOptions = getString(jproj, AptPreferenceConstants.APT_PROCESSOROPTIONS);
if (null == allOptions) {
options = new HashMap<String, String>();
}
@@ -496,7 +494,7 @@
_hasVal = false;
- do {
+ while (true) {
_start = _s.indexOf("-A", _start); //$NON-NLS-1$
if (_start < 0) {
return null;
@@ -516,7 +514,8 @@
++_start;
continue;
}
- } while (false);
+ break;
+ }
// We found a legitimate -A with some text after it.
// Where does the key end?