commit | d27e2422654dac108423eb4bd6b67a6a193b05b4 | [log] [tgz] |
---|---|---|
author | Stephan Herrmann <stephan@cs.tu-berlin.de> | Sun Aug 21 00:55:46 2011 +0000 |
committer | Stephan Herrmann <stephan@cs.tu-berlin.de> | Sun Aug 21 00:55:46 2011 +0000 |
tree | 3a669c035b1e27fdb1416a11be5ac0ca69ad3c0c | |
parent | b6c1fa54fc2b1969ab820a89579697ee09826bcf [diff] |
initialize enum-typed field to avoid NPE in switch in CalloutImplementor.java:581.
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/MethodSpec.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/MethodSpec.java index 37b3861..961f187 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/MethodSpec.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/MethodSpec.java
@@ -108,7 +108,7 @@ /** Callout uses a generic _OT$access or _OT$accessStatic method generated by the OTREDyn. */ DYN_ACCESS } - public ImplementationStrategy implementationStrategy; + public ImplementationStrategy implementationStrategy = ImplementationStrategy.DIRECT; /** * Parsing thought it was reading a method declaration.