manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.43k stars 125 forks source link

Conventional getter/setter methods are not properly inferred on record classes #397

Closed rsmckinney closed 2 years ago

rsmckinney commented 2 years ago

Conventional getter/setter methods are not properly inferred on record classes.

public record FooRecord(String rawName) {
  public Name getParsedName() {
    return parseName(rawName);
 }
. . .
}
FooRecord record = new FooRecord("foo.bar");
Name name = record.parsedName; // error
rsmckinney commented 2 years ago

Fixed in release 2022.1.25.