This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hints bulb appears incorrectly on constructor when its super class does not have default constructor and be in other package. The bulb says "Add import for the class". -- some/Some.java -- package some; public class Some{ public Some(int a){//has a constructor with param. //default constractor is not defined. } } -- other/Other.java -- package other; import some.Some; public class Other{ public Other(){//the bulb "Add import for some.Some" appears. } }
sorry. Other class extneds Some. -- other/Other.java -- public class Other extends Some{ ...
I just tried it and it works correctly. Are you able to reproduce it again?
Created attachment 27198 [details] Screenshot
Please provide exact steps how to reproduce, because we are not able to reproduce it here. Which build of Netbeans are you using?
What is the error reported by compiler on the line: public Other(){ ?
I am using Beta 2. The steps is that, first I create "Some" class in "some" package, and create "Other" class in "other" package. The error reported in that line is "Symbol not found, symbol:Constractor Some() ". It is right. # JDK I use is translated for Japanese. # So I re-translate it. the message might be defferent from yours.
I see. This is probably caused by the fact that you are running Netbeans with Japanese locale. Can you please try to run NetBeans with English locale to see if you are still able to reproduce it? Thanks.
Yes, I tried it with "-J-Duser.language=en" in netbeans.conf, That goes right. Does it depend on error message?
Yes, the hint is derived from error message. It should be language independent, but it does not work in this case. :-(
naoki, thanks for catching this problem. Fixed in trunk. Checking in external/gjast.jar; /cvs/java/external/gjast.jar,v <-- gjast.jar new revision: 1.9; previous revision: 1.8 done Checking in hints/src/org/netbeans/modules/java/hints/JavaHintsProvider.java; /cvs/java/hints/src/org/netbeans/modules/java/hints/JavaHintsProvider.java,v <-- JavaHintsProvider.java new revision: 1.54; previous revision: 1.53 done
I'd tried it with the newest daily build in Japanese locale, I found that it works well. :-D Thank you.
ok.
Reorganization of java component