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 48718 - improper synchronize with generics
Summary: improper synchronize with generics
Status: RESOLVED DUPLICATE of bug 48469
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-08 19:11 UTC by athompson
Modified: 2004-09-10 08:23 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 athompson 2004-09-08 19:11:37 UTC
jdk-1.5

1. add this interface:

public interface Foo {
    public <T> T getObject(Class<T> c);
}

2. add this class:

public class Bar
implements Foo {
}

3! invoke Tools-->Synchronize or Tools-->Override
Methods. what gets inserted is this:

    public Object getObject(Class<Object> c) {
    }

needless to say, it doesn't compile.
Comment 1 Daniel Prusa 2004-09-10 08:23:38 UTC

*** This issue has been marked as a duplicate of 48469 ***