hoseindoost / decojer

Automatically exported from code.google.com/p/decojer
0 stars 0 forks source link

INVOKESPECIAL<init> is not allways super, sometimes same #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
package oracle.sdpinternal.messaging;

public class RequestInfo implements java.io.Serializable {
    private static final long serialVersionUID = -7233024684470990542L;
    private java.util.HashMap<String, String> parameters = new java.util.HashMap();

    public RequestInfo(ClientType clientType, String applicationName,
            String applicationInstanceName, String securityPrincipal) {
        setClientType(clientType);
        setApplicationName(applicationName);
        setApplicationInstanceName(applicationInstanceName);
        setSecurityPrincipal(securityPrincipal);
    }

    public RequestInfo(ClientType clientType, String applicationName,
            String applicationInstanceName, String securityPrincipal,
            String version) {
        super(clientType, applicationName, applicationInstanceName,
                securityPrincipal);
        setVersion(version);
    }

Wrong super here...

Original issue reported on code.google.com by andrePan...@gmail.com on 3 Jan 2013 at 9:40

GoogleCodeExporter commented 8 years ago
and if multiple <init>, don't delete the default one...oh yey

Original comment by andrePan...@gmail.com on 3 Jan 2013 at 1:03

GoogleCodeExporter commented 8 years ago
needed this for work, fixes both

Original comment by andrePan...@gmail.com on 3 Jan 2013 at 2:20