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.

Bug 12150 - Internal compiler can't compile regural inheritance code
Summary: Internal compiler can't compile regural inheritance code
Status: CLOSED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-14 06:37 UTC by Jakub Dadak
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Dadak 2001-05-14 06:37:29 UTC
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);
		
	}
}
Comment 1 Svata Dedic 2001-05-14 08:32:24 UTC
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.

Comment 2 Jan Becicka 2001-05-14 10:01:38 UTC
We cannot reproduce this bug. If you can provide more information, please 
reopen.
Comment 3 Quality Engineering 2003-07-01 13:11:02 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 13:19:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.