-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
24 changes: 24 additions & 0 deletions
24
...iler-tests/src/test/java/org/codehaus/commons/compiler/tests/issue212/base/BaseClass.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
package org.codehaus.commons.compiler.tests.issue212.base; | ||
|
||
public abstract class BaseClass implements IBase { | ||
|
||
private String baseId; | ||
|
||
public | ||
BaseClass() {} | ||
|
||
public | ||
BaseClass(String baseId) { | ||
super(); | ||
this.baseId = baseId; | ||
} | ||
|
||
@Override public abstract BaseClass | ||
path(); | ||
|
||
@Override public String | ||
toString() { | ||
return "BaseClass [baseId=" + this.baseId + "]"; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...r-tests/src/test/java/org/codehaus/commons/compiler/tests/issue212/base/DerivedClass.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
package org.codehaus.commons.compiler.tests.issue212.base; | ||
|
||
public | ||
class DerivedClass extends BaseClass { | ||
|
||
private String name; | ||
|
||
public | ||
DerivedClass() { | ||
super(); | ||
} | ||
|
||
public | ||
DerivedClass(String baseId, String name) { | ||
super(baseId); | ||
this.name = name; | ||
} | ||
|
||
@Override public BaseClass | ||
path() { | ||
return new DerivedClass("0", "default"); | ||
} | ||
|
||
@Override public String | ||
toString() { | ||
return super.toString() + "DerivedClass [name=" + this.name + "]"; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...compiler-tests/src/test/java/org/codehaus/commons/compiler/tests/issue212/base/IBase.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
package org.codehaus.commons.compiler.tests.issue212.base; | ||
|
||
public | ||
interface IBase { | ||
IBase path(); | ||
} |
11 changes: 11 additions & 0 deletions
11
...er-tests/src/test/java/org/codehaus/commons/compiler/tests/issue212/base/MapperClass.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
package org.codehaus.commons.compiler.tests.issue212.base; | ||
|
||
public | ||
class MapperClass { | ||
|
||
public BaseClass | ||
mapper() { | ||
return new DerivedClass(); | ||
} | ||
} |
This file contains 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