Created
August 26, 2023 19:40
-
-
Save CC007/afde6311db82c4f57cf8b0496f34c471 to your computer and use it in GitHub Desktop.
Possibly unintended behavior for manifold-prop annotation parameters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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