Permalink
Browse files

Still fails after removal of generics

  • Loading branch information...
1 parent 2474466 commit a2e1f1900e79350770fdc5c244e00ea6c19f5332 unknown committed Jul 15, 2011
@@ -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";
}
}
@@ -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()
@@ -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();
}
}

0 comments on commit a2e1f19

Please sign in to comment.