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 241872 - Linebreak on first parameter in generated code when wrapping method parameters revisit
Summary: Linebreak on first parameter in generated code when wrapping method parameter...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2014-02-14 11:37 UTC by Chiana
Modified: 2014-02-20 12: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 Chiana 2014-02-14 11:37:59 UTC
Seems this has returned, check generated methods below.

I filed this as a REGRESSION.
It is the same bug as #225088 but since that has been fixed and verified...
It also looks as it occurs only with certain object types (alas, not Object but with Collection (see below))

@Override
  public boolean remove(Object o) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public boolean containsAll(
                             Collection<?> c) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public boolean addAll(
                        Collection<? extends SetType> c) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public boolean retainAll(
                           Collection<?> c) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }
Comment 1 Chiana 2014-02-14 11:39:15 UTC
Note: The interface implemented is the "Set" interface
Comment 2 Svata Dedic 2014-02-17 12:34:06 UTC
Setting an propriate priority. Not all regressions are automatically P1s, and this issue leaves the text into a compilable and working state, although not very elegantly formatted.
IMHO it's on the verge of P3/P4 according to http://wiki.netbeans.org/BugPriorityGuidelines.
Comment 3 Svata Dedic 2014-02-20 12:38:45 UTC
Works for me on build NetBeans IDE Dev (Build 20140218-34d16e6e98fe); please try to reproduce again on an RC build when available. I've tried to create a class that implements Set and List interfaces (so I get 1-arg and 2-arg methods generated). Method Parameters wrapping set to always as described in issue #225088. Single-param methods were not wrapped while two-param methods had their header split into two lines as expected/desired.

Please attach your complete java editor settings if the defect still happens; thanks.