Changes in source code show no effect on restart

So in my vaadin project I have the following lines of code:

final String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath();
//dummy file to be overwritten before download starts
Resource myResource = new FileResource(new File(basepath + "/WebContent/WEB-INF/text.txt"));

        //initialize file downloader
        fileDownloader = new FileDownloader(myResource) {
            public boolean handleConnectorRequest(VaadinRequest request, VaadinResponse response, String path)
                    throws IOException {
                    //create new file which is then to be downloaded
                    StreamResource s = new StreamResource(new StreamSource() {
                    public InputStream getStream() {
                            return new ByteArrayInputStream(FileUtils.readFileToByteArray(FileUtils.getFile(basepath
                                    + "/WebContent/WEB-INF/space.jpg")));
                }, "space.jpg");

                return super.handleConnectorRequest(request, response, path);

When running the program however, it won’t let me download
. Instead, it lets me download some other random file (example.rdf) which I had worked with an hour ago. Clearly the changes in the source code since then are not taking any effect.

What to do?

Are you still having this issue? Have you tried does other source code changes (like adding new component in your view) take effect? Which IDE you are using, and if it is Eclipse, do you have “Build Automatically” option selected from Project menu?