Skip to content

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

@sfiss

Description

@sfiss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions