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 69561 - Override methods generates incorect array definitions
Summary: Override methods generates incorect array definitions
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 70818 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-29 21:34 UTC by hash9
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

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 hash9 2005-11-29 21:34:55 UTC
Override methods sometimes generates arrays of the form type[] var[] for one
dimentional arrays.

This happened whilst using override methods to override the write methods of
FilterOutputStream, it generated the following code;

public void write(byte[] b[], int off, int len) throws IOException {
    super.write(b, off, len);
}

public void write(byte[] b[]) throws IOException {
    super.write(b);
}

With two dimensional arrays as parameters instead of one dimensional ones.
Comment 1 Jan Becicka 2005-11-30 13:26:11 UTC
Good report. Thanks.

Checking in ParameterImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ParameterImpl.java,v
 <--  ParameterImpl.java
new revision: 1.29; previous revision: 1.28
done
Checking in FieldImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/FieldImpl.java,v
 <--  FieldImpl.java
new revision: 1.43; previous revision: 1.42
done
Checking in SemiPersistentElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java,v
 <--  SemiPersistentElement.java
new revision: 1.76; previous revision: 1.75
done
Checking in MethodImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MethodImpl.java,v
 <--  MethodImpl.java
new revision: 1.43; previous revision: 1.42
done
Comment 2 Daniel Prusa 2006-01-02 15:46:46 UTC
*** Issue 70818 has been marked as a duplicate of this issue. ***