Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing example build on server #1784

Merged
merged 1 commit into from Jul 2, 2021
Merged

Conversation

TimLethbridge
Copy link
Member

The new ant build for manual examples fails in one case of compiling the code for W010SingletonMultiplicityOver12.ump with the message below.

This PR remporarily excluding this from the new way of running exampel tests so that this compiler version can be used for other purposes. May be an issue with ordering or leftover files (perhaps -r option should be used in Java compiler; may be to do with the version of Java. The failure occurs in Jenkins and on the main server with openjdk 14.0.2

    [java] Singleton class 'X' cannot have multiplicity greater than 1
     [java] W010SingletonMultiplicityOver12.ump:52: error: method getX in class Y cannot be applied to given types;
     [java]     if (y != null && !y.equals(aNewY) && equals(y.getX()))
     [java]                                                  ^
     [java]   required: int
     [java]   found:    no arguments
     [java]   reason: actual and formal argument lists differ in length
     [java] W010SingletonMultiplicityOver12.ump:59: error: method getX in class Y cannot be applied to given types;
     [java]     X anOldX = aNewY != null ? aNewY.getX() : null;
     [java]                                     ^
     [java]   required: int
     [java]   found:    no arguments
     [java]   reason: actual and formal argument lists differ in length
     [java] W010SingletonMultiplicityOver12.ump:69: error: cannot find symbol
     [java]         y.setX(this);
     [java]          ^
     [java]   symbol:   method setX(X)
     [java]   location: variable y of type Y
     [java] 3 errors

@TimLethbridge TimLethbridge merged commit 5dde455 into master Jul 2, 2021
@TimLethbridge TimLethbridge deleted the FixServerExampleBuild branch July 12, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant