Community
Participate
Working Groups
I have a class simple as this: /* * Created on 19/05/2008 */ package br.com.voicetechnology.vp.brooktrout.tasks; import java.io.IOException; import br.com.voicetechnology.vp.provider.Device; public class WaitForCall implements ChannelTask { static { System.loadLibrary("tpbrooktrout"); } private final int time; public WaitForCall(int delay) { time = delay; } public native void run(Device d) throws IOException; } which has a variable and a native method. In the presence of a native method, eclipse has no way to tell whether this variable is being used locally or not. Still, it issues warning message. There should be an option, at best to set whether I want or not this warning in the presence of native methods or, at least, the platform should issue no warning at all for this circumstance.
*** This bug has been marked as a duplicate of bug 55696 ***
Actually not a dup.
Dani, What is the JDT/UI team's take on the option suggestion below ? Do you want to expose this to the user or have JDT/Core conservatively suppress the warning in the presence of native methods ? -- Thanks. (In reply to comment #0) > which has a variable and a native method. In the presence of a native method, > eclipse has no way to tell whether this variable is being used locally or not. > Still, it issues warning message. There should be an option, at best to set > whether I want or not this warning in the presence of native methods or, at > least, the platform should issue no warning at all for this circumstance.
Flagging it as problem is wrong and should be fixed. There's no need for an additional option.
Created attachment 155588 [details] Proposed patch
Released in HEAD for 3.6M5
Verified for 3.6M5 using I20100125-0800