Skip to content

Commit 45f9125

Browse files
committed
Update test program
1 parent 9eb8ec7 commit 45f9125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-489/EJBMain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ public class EJBMain implements SessionBean {
33
* Create the session bean (empty implementation)
44
*/
55
public void ejbCreate() throws javax.ejb.CreateException {
6-
System.out.println("ServiceBean:ejbCreate()");
6+
System.out.println("EJBMain:ejbCreate()");
77
}
88

99
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {
@@ -24,7 +24,7 @@ public String doService() {
2424

2525
// BAD - Implement a main method in session bean.
2626
public static void main(String[] args) throws Exception {
27-
ServiceBean b = new ServiceBean();
27+
EJBMain b = new EJBMain();
2828
b.doService();
2929
}
3030

0 commit comments

Comments
 (0)