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 35852 - nosuchmethoderror
Summary: nosuchmethoderror
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-01 00:07 UTC by bdt
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 bdt 2003-09-01 00:07:44 UTC
With netbeans 3.51 this source compiles fine. When executed 
it produce this error:
java.lang.NoSuchMethodError: cls_a.Geti2
at the line "System.out.println(oa.Geti2());"

When it run from the commandline it works all fine
------------------
class cls_a  {   
    public int i1; 
    private int i2;
    
    public int Geti2()  {  
        return(i2);  
    }
    public void Seti2(int i)  {   
        i2 = i;   
    }
}
public class ex001 {
    public static void main(String[] args) {
        System.out.println("Start main");     
        cls_a oa = new cls_a();     
        cls_a ob = new cls_a();      
        oa.i1 = 11;     
        ob.i1 = 101;   
        oa.Seti2(12);   
        ob.Seti2(22);     
        System.out.println(oa.i1);
        System.out.println(ob.i1);     
        System.out.println(oa.Geti2()); 
        System.out.println(ob.Geti2());	
        System.out.println(oa.toString());
        System.out.println(ob.toString());  
    }
    
}
Comment 1 bdt 2003-09-02 20:10:02 UTC
Sorry, cancel this issue.
I was stupid, I did'nt understand the IDE.
I had several mounted filesystem and in one of these was a cls_a with 
another contant than this presented source.
How to cancel this issue
Comment 2 Vitezslav Stejskal 2003-09-03 08:09:48 UTC
OK, marking this issue as INVALID.