summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorPatrick Wienands2012-11-07 10:08:14 (EST)
committer Stephan Herrmann2012-11-15 12:00:38 (EST)
commit2114f5a85a578c1dfa63e429261a1aa684643a26 (patch)
tree21b2f83c9260e057705f3bfbca6d7f20a91bf224
parent665e97c17575ca41b7c317dc2e7a590112fafb1f (diff)
downloadeclipse.jdt.core-2114f5a85a578c1dfa63e429261a1aa684643a26.zip
eclipse.jdt.core-2114f5a85a578c1dfa63e429261a1aa684643a26.tar.gz
eclipse.jdt.core-2114f5a85a578c1dfa63e429261a1aa684643a26.tar.bz2
Fix for bug 393749 - Static initializer in enum after 2000th enum
constant will not be generated
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java
index 47e5c9f..4f5c61d 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Patrick Wienands <pwienands@abit.de> - Contribution for bug 393749
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.ast;
@@ -210,6 +211,8 @@ public class Clinit extends AbstractMethodDeclaration {
begin = i;
count = 1;
}
+ } else {
+ remainingFieldCount++;
}
}
}