Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

[501975] Null guard for switch statement for all non-primitive types #59

Merged
merged 1 commit into from Sep 28, 2016

Conversation

kthoms
Copy link

@kthoms kthoms commented Sep 28, 2016

Signed-off-by: Karsten Thoms karsten.thoms@itemis.de

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
@eclipsewebmaster
Copy link

Issue tracker reference:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=501975

@LorenzoBettini
Copy link
Contributor

Looks good to me!
I guess this will trigger some Xtend code regeneration but that will be handled later, when this gets into nightly, right?

@kthoms
Copy link
Author

kthoms commented Sep 28, 2016

Yes, some Xtend code will compile differently then and should be checked in later. I love checked-in generated code. Not.

@LorenzoBettini LorenzoBettini merged commit 7b8c045 into eclipse:master Sep 28, 2016
@kthoms kthoms deleted the kth/bug501975 branch September 28, 2016 14:40
@LorenzoBettini
Copy link
Contributor

@kthoms Unfortunately, this change makes two tests fail: http://services.typefox.io/open-source/jenkins/job/xtext-extras/job/master/59/ could you please fix them?

@kthoms
Copy link
Author

kthoms commented Sep 29, 2016

I doubt that it was caused by this change, it must be some upstream change related to the serializer or formatter.
I recognized this problem also and fixed it with #60
Please review that one.

@LorenzoBettini
Copy link
Contributor

mh... that's strange: the commit history https://github.com/eclipse/xtext-extras/commits/master shows that after 23 Sept only this PR has been merged, and master on 23 Sept had no failures, http://services.typefox.io/open-source/jenkins/job/xtext-extras/job/master/58/ while master after merging this PR has failed tests http://services.typefox.io/open-source/jenkins/job/xtext-extras/job/master/59/

don't you experience these failed tests in your Eclipse?

@kthoms
Copy link
Author

kthoms commented Sep 29, 2016

I experience them and I fixed the SerializerTest in #60. But I do not see how this could be related to the change here. This only affects the code compiled by Xtend. Since no code that was compiled with Xtend was checked in so far, this cannot cause the fail of the test.

I just think that the failing tests are unrelated to this issue and the PR.

Please review the other PR, this will fix the tests. As discussed with Moritz on Slack, it is OK to change the expectation here.

@LorenzoBettini
Copy link
Contributor

So you say that probably something in xtext-core changed in the meantime and this caused these failing tests, right?

@kthoms
Copy link
Author

kthoms commented Sep 29, 2016

Yes, I think so.

LorenzoBettini added a commit that referenced this pull request Oct 7, 2016
Since the switch for an object is now enclosed in a null check

#59

Task-Url: #46
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants