Details
Description
The specification for the method getReturnType() in javax.lang.model.element.ExecutableElement says:
---
TypeMirror getReturnType()
Returns the return type if this executable represents *a method*. Returns *NoType otherwise*. Returns VoidType if this executable is a method that does not return a value.
...
---
For a constructor in the following example VoidType is returned:
public class S_EE0004 extends TestSource {
public S_EE0004(Integer param) {}
}
---
TypeMirror getReturnType()
Returns the return type if this executable represents *a method*. Returns *NoType otherwise*. Returns VoidType if this executable is a method that does not return a value.
...
---
For a constructor in the following example VoidType is returned:
public class S_EE0004 extends TestSource {
public S_EE0004(Integer param) {}
}
Attachments
Issue Links
- relates to
-
JDK-6389414 ExecutableType.asElement should return null
-
- Resolved
-
-
JDK-6418666 JSR269: Determine proper set of type visitor methods
-
- Closed
-