Lines 3915-3921
Link Here
|
3915 |
MethodBinding method, |
3915 |
MethodBinding method, |
3916 |
ASTNode location) { |
3916 |
ASTNode location) { |
3917 |
|
3917 |
|
3918 |
if (method.isConstructor()) |
3918 |
if (method.isConstructor()) { |
|
|
3919 |
if (method.declaringClass.isEnum()) return; |
3919 |
this.handle( |
3920 |
this.handle( |
3920 |
IProblem.NeedToEmulateConstructorAccess, |
3921 |
IProblem.NeedToEmulateConstructorAccess, |
3921 |
new String[] { |
3922 |
new String[] { |
Lines 3928-3934
Link Here
|
3928 |
}, |
3929 |
}, |
3929 |
location.sourceStart, |
3930 |
location.sourceStart, |
3930 |
location.sourceEnd); |
3931 |
location.sourceEnd); |
3931 |
else |
3932 |
} else { |
3932 |
this.handle( |
3933 |
this.handle( |
3933 |
IProblem.NeedToEmulateMethodAccess, |
3934 |
IProblem.NeedToEmulateMethodAccess, |
3934 |
new String[] { |
3935 |
new String[] { |
Lines 3942-3948
Link Here
|
3942 |
typesAsString(method.isVarargs(), method.parameters, true) |
3943 |
typesAsString(method.isVarargs(), method.parameters, true) |
3943 |
}, |
3944 |
}, |
3944 |
location.sourceStart, |
3945 |
location.sourceStart, |
3945 |
location.sourceEnd); |
3946 |
location.sourceEnd); |
|
|
3947 |
} |
3946 |
} |
3948 |
} |
3947 |
public void nestedClassCannotDeclareInterface(TypeDeclaration typeDecl) { |
3949 |
public void nestedClassCannotDeclareInterface(TypeDeclaration typeDecl) { |
3948 |
String[] arguments = new String[] {new String(typeDecl.name)}; |
3950 |
String[] arguments = new String[] {new String(typeDecl.name)}; |