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 223547

Summary: I created a test class, tried to access a public method and get a package "..." does not exist error
Product: java Reporter: JUlrich22
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED INVALID    
Severity: normal Keywords: PLATFORM
Priority: P3    
Version: 7.2.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description JUlrich22 2012-12-09 12:48:18 UTC
Product Version = NetBeans IDE 7.2.1 (Build 201210100934)
Operating System = Linux version 3.2.0-29-generic running on amd64
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.3-b01

public class NodeProcessor {
    
    NewClass nc = new NewClass();
    nc.setTest("TestOK");
}

public class NewClass {
    private String test;
    
    public void setTest(String str){
        test = str;
    }
    
}

Botch classes are in the same package.
Comment 1 JUlrich22 2012-12-09 12:48:35 UTC
Created attachment 129104 [details]
IDE log
Comment 2 Jiri Prox 2012-12-10 12:42:44 UTC
There is syntax error in you code. The two lines in the NodeProcessor class are not placed in method body.