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.
I tried to inherit my own class from java.util.Vector but there is problem with compilation with Internal compiler. I tried to compile it by SUN 1.1.8 and 1.3.0 and it works without problems. Internal compiler said: VectorTest.java [31:1] No method found matching add(myObject) import java.util.*; class myObject extends Object { int x; } class MyVect extends Vector { public boolean add(myObject o) { System.out.println("MyVect add\n"); return true; } } public class VectorTest extends Object { /** Creates new VectorInherit */ public VectorTest() { } static public void main(String[] argv) { MyVect mv = new MyVect(); myObject mo = new myObject(); mv.add(mo); } }
Sorry I could not reproduce the error with the attached code. I tried putting it in the default/non-default packages (in case this would matter) - with no success. Did the error show up only once or does it occur regularly ? Did you try it with exactly the same source that you attached here, or did you just put it from some other bits of code as an example only ?. I'd want to know whether my testing environment is complete, whether there aren't other dependencies I am not aware of. Please include build number of the IDE you are using, check (and attach) execution properties of the source which does not compile and also please attach list of capabilities of the filesystem in which the source lies.
We cannot reproduce this bug. If you can provide more information, please reopen.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.