Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Organize Members' has random error result #7773

Open
neoedmund opened this issue Sep 20, 2024 · 0 comments
Open

'Organize Members' has random error result #7773

neoedmund opened this issue Sep 20, 2024 · 0 comments
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@neoedmund
Copy link

neoedmund commented Sep 20, 2024

Apache NetBeans version

Apache NetBeans 22

What happened

When sorting members using 'organize member' function, most of the time it OK, but someting give error results also fail to compile.

Language / Project Type / NetBeans Component

No response

How to reproduce

I made a minimum test case

class A {
	
}
public class TestOrder1 {


	public static long inst,
			aaa,			 
			zzz;


	public final static A s = new A();
	
}

sorting this result in

class A {
	
}
public class TestOrder1 {



	public static long aaa,
			inst,			 
			zzz;


	public final static A s = new A();
	public static long inst,
			aaa,
			zzz;
	
}

which has duplicated items make compile fail

Did this work correctly in an earlier version?

No / Don't know

Operating System

Linux

JDK

JDK21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

@neoedmund neoedmund added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Sep 20, 2024
@mbien mbien added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

2 participants