Skip to content

Instantly share code, notes, and snippets.

@CC007
Created August 26, 2023 19:40
Show Gist options
  • Save CC007/afde6311db82c4f57cf8b0496f34c471 to your computer and use it in GitHub Desktop.
Save CC007/afde6311db82c4f57cf8b0496f34c471 to your computer and use it in GitHub Desktop.
Possibly unintended behavior for manifold-prop annotation parameters
package com.github.cc007;
import lombok.ToString;
import manifold.ext.props.rt.api.get;
import static manifold.ext.props.rt.api.PropOption.Public;
public class Demo7 {
// added lombok annotation to interact with the class fields from inside the class
@ToString
public static class Properties {
@get(Public) String publicGet = "public getter";
}
public static class SubProperties extends Properties {
}
public static void main(String[] args) {
Properties properties = new Properties();
System.out.println(properties);
SubProperties subProperties = new SubProperties();
System.out.println(subProperties);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment