aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Wienands2012-11-07 10:08:14 (EST)
committerJayaprakash Arthanareeswaran2012-11-07 10:08:14 (EST)
commit8aab6b334c56ea22c179215ade8ac8c0a3d89d22 (patch)
tree46e0df0315fd07683f52094673ef09a90657b3bc
parent2243a1720484174384e2e167f3a772c6dbdd7151 (diff)
downloadeclipse.jdt.core-8aab6b334c56ea22c179215ade8ac8c0a3d89d22.zip
eclipse.jdt.core-8aab6b334c56ea22c179215ade8ac8c0a3d89d22.tar.gz
eclipse.jdt.core-8aab6b334c56ea22c179215ade8ac8c0a3d89d22.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++;
}
}
}