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

GH-369: As a smith I need to bump to Eclipse Oxygen #586

Closed
wants to merge 46 commits into from
Closed

Conversation

qtran-n4
Copy link

@qtran-n4 qtran-n4 commented Feb 8, 2018

Task: #369

Steps to test

Still ongoing:

  • Test with Java 9
  • Update spec

@qtran-n4 qtran-n4 requested a review from mor-n4 February 12, 2018 13:56
@mor-n4
Copy link
Contributor

mor-n4 commented Feb 12, 2018

I have 4 warnings:

image

Copy link
Contributor

@mor-n4 mor-n4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Please go through the comments below and make sure to test with OPR.

Then 👍 for merge!

@@ -114,10 +118,15 @@ protected static String recursivelyCopyContent(JarURLConnection connection, Stri
}
} else {
checkState(newResource.createNewFile(), "Error while creating new file at: " + newResource);
ByteSink byteSink = Files.asByteSink(newResource);
OutputStream outputStream = byteSink.openStream();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be included in the try-with-resources statement

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -226,7 +227,7 @@ public boolean visit(IResource resource) throws CoreException {
return Iterators.unmodifiableIterator(result.iterator());
}
}
return Iterators.emptyIterator();
return Iterators.unmodifiableIterator(Collections.emptyIterator());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add Iterators.unmodifiableIterator(? Isn't the empty iterator unmodifiable anyway?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. empty iterator is NOT unmodifiable :(

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

</sources>
<sources>
<source>emf-gen</source>
</sources>
<sources>
<source>grammar-gen</source>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems inconsistent that src-gen, emf-gen are removed whereas grammar-gen isn't removed.

<stream name="master"
label="Master"/>
<stream name="GH-369"
label="GH-369"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't forget to revert this before merging

<repository location="http://download.eclipse.org/egit/updates-4.6"/>
<unit id="ch.qos.logback.classic" version="1.1.2.v20160208-0839"/>
<unit id="com.fasterxml.jackson.core.jackson-databind" version="2.6.2.v20161117-2150"/>
<unit id="com.google.guava" version="18.0.0.v20161115-1643"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why the version of guava changed (from 15.0.0 to 18.0.0)

};

CharSource charSrc = byteSource.asCharSource(Charsets.UTF_8);
return charSrc.readLines();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if possible, remove this method entirely and use java.nio.Files#readAllLines()

@@ -9,7 +9,7 @@ Require-Bundle: org.eclipse.n4js,
org.eclipse.n4js.hlc,
org.eclipse.n4js.hlc.base,
org.junit,
com.google.guava;bundle-version="15.0.0",
com.google.guava,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it's clear!

@mor-n4 mor-n4 requested a review from yoosiba February 12, 2018 16:04
@@ -1583,6 +1583,11 @@ public static N4JSPackage init() {

isInited = true;

// Initialize simple dependencies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In few places we explicitly trigger initialization of dependencies (e.g. org.eclipse.n4js.N4JSStandaloneSetup.createInjectorAndDoEMFRegistration()). With this code being generated now, do we still need to do it? If no then we should refactor those setup files.

@qtran-n4
Copy link
Author

The updated IDE works fine with OPR.

@qtran-n4
Copy link
Author

This PR is close because #637 contains this

@qtran-n4 qtran-n4 closed this Feb 21, 2018
@qtran-n4 qtran-n4 deleted the GH-369 branch February 21, 2018 13:36
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

3 participants