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

Parameter names not showing for superclass method call or this(...) constructor call #98

Open
sfiss opened this issue Apr 23, 2019 · 0 comments

Comments

@sfiss
Copy link

sfiss commented Apr 23, 2019

When calling an overridden superclass method via super.methodName(arg), the parameter name is not shown. The same issue also occurs for calls to the superclass constructor from within the constructor of the subclass.

Code example:

@SuppressWarnings("unused")
private static class MySuperClass {

	protected MySuperClass(final String value) {
	}

	protected void myMethod(final String value) {

	}
}

@SuppressWarnings("unused")
private static class MyClass extends MySuperClass {

	protected MyClass(final String value) {
		super(value); // Not showing parameter name
	}

	protected MyClass(final String value, final String value2) {
		this(value); // Not showing parameter name
	}

	@Override
	protected void myMethod(final String value) {
		super.myMethod(value); // Not showing parameter name
		this.myMethod(value); // showing parameter name
	}
}

(Also attached as image:)

CodeMining

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant