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 70818 - interface autoimplementing doesn't work in the specific case
Summary: interface autoimplementing doesn't work in the specific case
Status: RESOLVED DUPLICATE of bug 69561
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: Other Windows XP
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-27 16:59 UTC by olegsukhodolsky
Modified: 2007-11-05 13:38 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 olegsukhodolsky 2005-12-27 16:59:49 UTC
NB 5.0beta2, JDK 6.0 build 62
I use asm library (http://asm.objectweb.org/doc/tutorial-asm-2.0.html)

type
class Foo implements org.objectweb.asm.MethodVisitor
{
}
and ask NB to implement all abstract methods
you will get two problematic methods:

    public void visitTableSwitchInsn(int min, int max, Label dflt, Label[]
labels[]) {
    }

    public void visitLookupSwitchInsn(Label dflt, int[] keys[], Label[] labels[]) {
    }

but labels and keys params should be one-dimension arrays, such as

    public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) {
    }

    public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) {
    }

Unfortunatelly, I was unable to reproduce this problem with simplier test :(
Comment 1 Miloslav Metelka 2006-01-02 15:07:41 UTC
I've tried to make a simple interface with "Object o[]" parameter but the
problem did not occur.
Reassigning to dprusa for evaluation and fixing. Thanks.
Comment 2 Daniel Prusa 2006-01-02 15:46:47 UTC
Already reported and fixed in release50.

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