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 - Test of an interface creates inner class that *extends* it
Summary: Test of an interface creates inner class that *extends* it
Status: RESOLVED DUPLICATE of bug 172723
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-30 14:07 UTC by pribyl
Modified: 2009-11-16 07:28 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 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 ***