Community
Participate
Working Groups
The following example might be semantically useless, but show the problem. Say we have the following custom class: public class Generic<T> { public int size() { return 0; } } And a testing class: public class Test { public void testList(ArrayList aList) { aList.size(); } public void testGeneric(Generic aGeneric) { aGeneric.size(); } } Now, eclipse shows a warning for "aGeneric.size()" but none for "aList.size()". In fact, it shouldn't show any warning for either case. Taken from a discussion with Bruce Chapman: "the difference between the two that is causing Eclipse to behave differently might be that with Generic, it has the source code, whereas for ArrayList it will be compiling against the bytecode from the system jar file."
I am not seeing any warning being produced. Which build are you using ?
Spoke to fast. Problem arises as soon as the types are in separate files.
And problem only shows up when reconciling editors; not when building.
Changed SourceTypeConverter#convert(SourceMethod, ...) to not create an empty array if no parameters or no exception. Added regression test ReconcilerTests#testRawUsage(). Released in both HEAD and R3_1_maintenance branch.
Fixed
Verified for 3.1.2 using build M20060109-1200.
Verified for 3.1.2 using build M20060109-1200 (maxime)
Verified for 3.2 M4 using build I20051215-1506.