vimeo/stag-java

"Cannot find getter or setter" for private parameterized member variables

Closed this issue · 1 comments

Issue Summary

Given the following code

private ArrayList<String> myList;

public void setMyList(ArrayList<String>) { ... }

public ArrayList<String> getMyList() { ... }

Stag will be unable to find the setters. Only parameterized fields are affected by this bug.

Reproduction Steps

See above

Expected Behavior

It should find the getter/setter.

Actual Behavior

The build fails.

The cause of this bug is incorrect comparison of TypeMirror objects, using the correct comparison will fix the problem.

Closing as fixed.