Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A little game..

Name: Anonymous 2007-04-19 7:35 ID:4aeRzkyG

Okay here are the rules for this game
Someone posts a code, and you have to add lines/code and post it.
Then someone has to add lines/code to your post and post it etc..

For example:


Changing

int main()
to

int main(int i)

Is ok but changing

int main(int i)

to

int main(int b)

is against the rules

Only C/C++ code is allowed.

I'll do the start


int main() {
    void *p;
    int i = 926102321;
    p = (void*)&i+4;
    *((char*)p) = 0;
    (void)puts((char*)&i);
}

Name: Anonymous 2007-04-19 19:14 ID:VxGEm3U0

>>15

package javax.enterprise.deploy.spi.factories;

import javax.enterprise.deploy.spi.MockDeploymentManager;
import javax.enterprise.deploy.spi.DeploymentManager;
import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException;

public class MockDeploymentFactory implements DeploymentFactory {
    public boolean handlesURI(String uri) {
        // for the moment we accept all uri's
        return true;
    }

    public DeploymentManager getDeploymentManager(String uri, String username, String password) throws DeploymentManagerCreationException {
        return getDisconnectedDeploymentManager(uri);
    }

    public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException {
        if ("return-null".equals(uri)) {
            return null;
        } else if ("throw-exception".equals(uri)) {
            throw new DeploymentManagerCreationException("Simulated Exception");
        } else {
            return new MockDeploymentManager();
        }
    }

    public String getDisplayName() {
        return null;
    }

    public String getProductVersion() {
        return null;
    }
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List