[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2022-02-17 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Affects Version/s: 12.6
   13

> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3, 12.4, 12.5, 12.6, 13
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Critical
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
> 12.3-beta2 and 1.4-beta1
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}
> After further investigation, it appears to be influenced by the editor 
> settings 'spaces, within parenthesis, method declaration'  When this is 
> turned off, the effect does not appear.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2022-01-20 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Issue Type: Bug  (was: Improvement)

> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3, 12.4, 12.5
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Critical
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
> 12.3-beta2 and 1.4-beta1
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}
> After further investigation, it appears to be influenced by the editor 
> settings 'spaces, within parenthesis, method declaration'  When this is 
> turned off, the effect does not appear.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-09-27 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Affects Version/s: 12.5

> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3, 12.4, 12.5
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Critical
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
> 12.3-beta2 and 1.4-beta1
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}
> After further investigation, it appears to be influenced by the editor 
> settings 'spaces, within parenthesis, method declaration'  When this is 
> turned off, the effect does not appear.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-06-21 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Description: 
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
12.3-beta2 and 1.4-beta1

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded 
Range {   //   by whitespace with my 
settings

} // offending line, not undented to column 1

{code}

After further investigation, it appears to be influenced by the editor settings 
'spaces, within parenthesis, method declaration'  When this is turned off, the 
effect does not appear.



  was:
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
12.3-beta2 and 1.4-beta1

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded 
Range {   //   by whitespace with my 
settings

} // offending line, not undented to column 1

{code}



> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3, 12.4
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Critical
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
> 12.3-beta2 and 1.4-beta1
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}
> After further investigation, it appears to be influenced by the editor 
> settings 'spaces, within parenthesis, method declaration'  When this is 
> turned off, the effect does not appear.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-04-25 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Priority: Critical  (was: Minor)

> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Critical
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
> 12.3-beta2 and 1.4-beta1
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-04-25 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Affects Version/s: 12.4

> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3, 12.4
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Critical
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
> 12.3-beta2 and 1.4-beta1
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-04-25 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Description: 
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
12.3-beta2 and 1.4-beta1

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded 
Range {   //   by whitespace with my 
settings

} // offending line, not undented to column 1

{code}


  was:
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded 
Range {   //   by whitespace with my 
settings

} // offending line, not undented to column 1

{code}



> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Minor
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Tested on 12.2 and 
> 12.3-beta2 and 1.4-beta1
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-03-14 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Description: 
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded 
Range {   //   by whitespace in my 
settings

} // offending line, not undented to column 1

{code}


  was:
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded by whitespace in my settings
Range {

} // offending line, not undented to column 1

{code}



> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Minor
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
> 12.3-beta2 
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace in my 
> settings
> } // offending line, not undented to column 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-03-14 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Description: 
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded 
Range {   //   by whitespace with my 
settings

} // offending line, not undented to column 1

{code}


  was:
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded 
Range {   //   by whitespace in my 
settings

} // offending line, not undented to column 1

{code}



> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Minor
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
> 12.3-beta2 
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded 
> Range {   //   by whitespace with my 
> settings
> } // offending line, not undented to column 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-03-14 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Description: 
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // clsing 
parens should be preceded by whitespace in my settings
Range {

} // offending line, not undented to column 1

{code}


  was:
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 


{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements
Range {

@Override
public BiFunction meter() {
return ( a, b ) -> b - a;
}

@Override
public IntegerRange between( Integer startInclusive, Integer endExclusive ) 
{
return new IntegerRange( startInclusive, endExclusive );
}

@Override
public Integer zero() {
return 0;
}
} // offending line, not undented to column 1

{code}



> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Minor
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
> 12.3-beta2 
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // clsing 
> parens should be preceded by whitespace in my settings
> Range {
> } // offending line, not undented to column 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-5327) closing bracket stays indented in source+format on record class.

2021-03-14 Thread Pieter van den Hombergh (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-5327:
--
Description: 
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // closing 
parens should be preceded by whitespace in my settings
Range {

} // offending line, not undented to column 1

{code}


  was:
Normally the source formatter puts the class-closing brace 
at the start of the line.
This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
12.3-beta2 

Formatting happens when you select soure>format or ctrl+shift+f (linux, 
windows).
The problem appears to be related to the canonical constructor definition 
_before_ the opening braces, because my normal setting
to put white space before closing parenthesis is also ignored.

{code:java}
// Some comments here
public record IntegerRange( Integer start, Integer end) implements // clsing 
parens should be preceded by whitespace in my settings
Range {

} // offending line, not undented to column 1

{code}



> closing bracket stays indented in source+format on record class. 
> -
>
> Key: NETBEANS-5327
> URL: https://issues.apache.org/jira/browse/NETBEANS-5327
> Project: NetBeans
>  Issue Type: Improvement
>  Components: editor - Formatting  Indentation
>Affects Versions: 12.2, 12.3
> Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2
>Reporter: Pieter van den Hombergh
>Priority: Minor
>
> Normally the source formatter puts the class-closing brace 
> at the start of the line.
> This is not the case for java 14+ (preview) record types. Testes on 12.2 and 
> 12.3-beta2 
> Formatting happens when you select soure>format or ctrl+shift+f (linux, 
> windows).
> The problem appears to be related to the canonical constructor definition 
> _before_ the opening braces, because my normal setting
> to put white space before closing parenthesis is also ignored.
> {code:java}
> // Some comments here
> public record IntegerRange( Integer start, Integer end) implements // closing 
> parens should be preceded by whitespace in my settings
> Range {
> } // offending line, not undented to column 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists