Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Still fails after removal of generics

  • Loading branch information...
commit a2e1f1900e79350770fdc5c244e00ea6c19f5332 1 parent 2474466
unknown authored
View
6 testcases/javaee/jboss7-weld-ejb-abstract-local/src/main/java/com/example/AbstractBase.java
@@ -2,10 +2,10 @@
// Doesn't actually matter for the purpose of this test
// whether or not AbstractBase is really abstract.
-public abstract class AbstractBase<T> {
+public abstract class AbstractBase {
- public T doSomething() {
- return (T)null;
+ public String doSomething() {
+ return "Something";
}
}
View
2  testcases/javaee/jboss7-weld-ejb-abstract-local/src/main/java/com/example/ConcreteEJBSubclass.java
@@ -3,7 +3,7 @@
import javax.ejb.Stateless;
@Stateless
-public class ConcreteEJBSubclass extends AbstractBase<String> {
+public class ConcreteEJBSubclass extends AbstractBase {
// We do *not* override doSomething()
View
6 testcases/javaee/jboss7-weld-ejb-abstract-local/src/main/java/com/example/RequestBean.java
@@ -11,10 +11,6 @@
@Inject ConcreteEJBSubclass ejb;
public String getSomething() {
- if (ejb.doSomething() == null) {
- return "Result of doSomething was null as expected";
- } else {
- return "WTF? Result of doSomething non-null and not exception";
- }
+ return ejb.doSomething();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.