Daniel Norberg

Results 42 comments of Daniel Norberg

@eshrubs, how about something like this for both getting more natural collection modification and getting rid of the singularization?

Could be interesting to make automatter support something like this: ```java @AutoMatter public interface Room { // default method called if value not set default String id() { return "foo";...

@honnix I mean just make the `id()` method a java 8 `default` method and have automatter call it to get the default value if `id` is not set. No need...

See https://immutables.github.io/immutable.html#default-attributes Immutables btw is a great lib that already does all of this. Try it out =)

I'm currently working on this: ```java @AutoMatter interface DefaultValueExample { // Normally auto-matter ignores default methods, so the @AutoMatter.Field // annotation instructs it to treat the method as a default...

https://github.com/danielnorberg/auto-matter/pull/66

That sounds useful. Feel free to submit a PR =) Meanwhile, here's an example of some utility methods for doing this using reflection. ```java public static void main(String... args) {...

This seems to be an issue with javac and/or maven-compiler-plugin https://bugs.openjdk.java.net/browse/JDK-8067747 https://jira.codehaus.org/browse/MCOMPILER-236 One straightforward fix is to get into the habit of `mvn clean `. This also works around issues...

Invoking javac directly seems to work correctly. ``` javac example/src/main/java/io/norberg/automatter/example/*.java \ > -d example/target/classes \ > -classpath example/target/classes:processor/target/classes:annotation/target/classes:$HOME/.m2/repository/com/squareup/javawriter/2.4.0/javawriter-2.4.0.jar:$HOME/.m2/repository/org/modeshape/modeshape-common/3.8.1.Final/modeshape-common-3.8.1.Final.jar:jackson/target/classes:$HOME/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.4.0/jackson-databind-2.4.0.jar:$HOME/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.jar:$HOME/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.4.0/jackson-core-2.4.0.jar:gson/target/classes:$HOME/.m2/repository/com/google/code/gson/gson/2.3/gson-2.3.jar:$HOME/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:$HOME/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar: \ > -sourcepath example/src/main/java:example/target/generated-sources/annotations: \ > -s example/target/generated-sources/annotations \ > -g -nowarn...

Added a readme comment about this issue: https://github.com/danielnorberg/auto-matter#known-issues Ideally we'd contribute to maven-compiler-plugin and try to resolve this issue upstream. Any takers? :smiley: