Callin method, signature, identity [message #629822] |
Wed, 29 September 2010 12:15  |
Eclipse User |
|
|
|
Hey guys,
I might have just stumbled upon another issue. Either my unterstand or a compiler bug.
I have just written the following code:
@SuppressWarnings("restriction")
protected class GOTLookupEnvironment playedBy LookupEnvironment {
@SuppressWarnings("decapsulation")
ReferenceBinding askForType(PackageBinding packageBinding, char[] name) <- replace ReferenceBinding askForType(PackageBinding packageBinding, char[] name);
callin ReferenceBinding askForType(PackageBinding packageBinding, char[] name) {
GOTMetaTypeMapping tm = GOTMetaTypeMapping.getDefault();
if(tm.hasJavaTypeEquivalent(name)) {
return askForType(tm.getJavaTypeAsCharArray(name));
}
return base.askForType(packageBinding, name);
}
}
Which yields the following error message:
Method askForType(char[][]) cannot be called explicitly; is a callin method (OTJLD 4.2(d)). GOTLookupAdapter.java /org.objectteams.gotdt/src/org/objectteams/gotdt/internal/co mpiler/lookup line 52 Java Problem
For my understanding the callin method has the signature
askForType(PackageBinding packageBinding, char[] name); and not askForType(char[][] name); which is another method in the same base.
So how is a callin on a method defined? By the signature or just the method name?
greetings
Jan Marc
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03835 seconds