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 169565

Summary: Test of an interface creates inner class that *extends* it
Product: java Reporter: pribyl <pribyl>
Component: JUnitAssignee: Victor Vasilyev <vvg>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description pribyl 2009-07-30 14:07:56 UTC
Product Version: NetBeans IDE Dev (Build 200907300201)
Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

If you create a test for java Interface (e.g. MyInterface) with some method (public void foo()), the file
"MyInterfaceTest" contains:

public class MyInterfaceImpl extends MyInterface { ...

with error badges "no interface expected here" and "incompatible types".

Once "extends" is changed to "implements", it works just fine.
Comment 1 Victor Vasilyev 2009-11-16 07:28:54 UTC

*** This bug has been marked as a duplicate of bug 172723 ***