Skip to content

Commit 18532ac

Browse files
author
sjaakd
committed
mapstruct#636 - adapt integration test for default and static interface methods (Java8) to eclipse compiler problem
1 parent 45db85a commit 18532ac

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

integrationtest/src/test/resources/java8Test/src/main/java/org/mapstruct/ap/test/bugs/_636/SourceTargetBaseMapper.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
@Mapper
2424
public interface SourceTargetBaseMapper {
2525

26+
// TODO.. move default and static interface method here when problem in eclipse processor is fixed.
2627

27-
default Foo fooFromId(long id) {
28-
return new Foo(id);
29-
}
30-
31-
static Bar barFromId(String id) {
32-
return new Bar(id);
33-
}
3428
}

integrationtest/src/test/resources/java8Test/src/main/java/org/mapstruct/ap/test/bugs/_636/SourceTargetMapper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@ public interface SourceTargetMapper extends SourceTargetBaseMapper {
3333
})
3434
Target mapSourceToTarget(Source source);
3535

36+
default Foo fooFromId(long id) {
37+
return new Foo(id);
38+
}
39+
40+
static Bar barFromId(String id) {
41+
return new Bar(id);
42+
}
43+
3644
}

0 commit comments

Comments
 (0)