Ignore:
Timestamp:
01/07/09 19:46:05 (15 years ago)
Author:
ra33
Message:

Fixed problems with ghost items being created when ranging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Simple.java

    r425 r429  
    255255                                        // if the throws exception annotation is on the frame then
    256256                                        // it passes only if an exception is thrown
    257                                         if (title.getParentOrCurrentFrame().hasAnnotation(
    258                                                         "ThrowsException")) {
     257                                        assert (title.getParent() != null);
     258                                        if (title.getParent().hasAnnotation("ThrowsException")) {
    259259                                                errorMessage = "Expected exception " + title.toString();
    260260                                                passed = false;
     
    499499                        } catch (ArrayIndexOutOfBoundsException e) {
    500500                                FlagError(item);
    501                                 throw new IncorrectUseOfStatementException("Too few parametres: " + item.toString(), item.getStatement());
     501                                throw new IncorrectUseOfStatementException(
     502                                                "Too few parametres: " + item.toString(), item
     503                                                                .getStatement());
    502504                        } catch (NullPointerException e) {
    503505                                FlagError(item);
     
    506508                        } catch (RuntimeException e) {
    507509                                FlagError(item);
    508                                 throw new IncorrectUseOfStatementException(e.getMessage() + " " + item.toString(), item.getStatement());
     510                                throw new IncorrectUseOfStatementException(e.getMessage() + " "
     511                                                + item.toString(), item.getStatement());
    509512                        } catch (Exception e) {
    510513                                throw new Exception(e.getMessage());
     
    17001703                                        1);
    17011704                        Runtime.getRuntime().exec(command);
    1702                 } else if (tokens[0].equals("executeoscommand") || tokens[0].equals("runoscommandwithoutput")) {
     1705                } else if (tokens[0].equals("executeoscommand")
     1706                                || tokens[0].equals("runoscommandwithoutput")) {
    17031707                        String command = getMessage(tokens, context, code.toString(), " ",
    17041708                                        1);
    17051709                        try {
    17061710                                Process p = Runtime.getRuntime().exec(command);
    1707                                 //Process p = Runtime.getRuntime().exec(new String[]{"date", ">", "test.date"});
     1711                                // Process p = Runtime.getRuntime().exec(new String[]{"date",
     1712                                // ">", "test.date"});
    17081713                                MessageBay.displayMessage(command, Color.darkGray);
    17091714
Note: See TracChangeset for help on using the changeset viewer.