-
Notifications
You must be signed in to change notification settings - Fork 823
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
Recognize nbjrt: protocol and locate JDK9+ src.zip #5157
Recognize nbjrt: protocol and locate JDK9+ src.zip #5157
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure this PR builds again before merge. It wasn't labeled. Most of the java tests did not run. (also for the reviewers, please label PRs before approval :))
added
ci:all-tests
static SourceForBinaryQueryImplementation2.Result searchUnregisteredPlatform(String binaryRootS) { | ||
String srcZipS = null; | ||
String srcZipIn = null; | ||
if (binaryRootS.startsWith(JAR_FILE)) { | ||
if (binaryRootS.endsWith(RTJAR_PATH)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to use standard indentation settings for new code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would help if NetBeans apisupport projects specified the proper indentation settings. Otherwise the source gets formatted by my global defaults (which are set to Google Java standards, not Sun/Oracle now).
Reformatted in 5b0d432
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome thanks.
Yeah its probably a good idea to copy a few selected IDE defaults to the project settings. Its probably not worth it though if it has to be set up for every single module, would be too much noise for little gain IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A project type can provide some default AuxiliarySettings
- java.mx.project module is doing that to influence the Eclipse formatter (used for mx projects).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NetBeans Formatter needs one more level of indirection, as it currently uses the project's auxiliary properties directly. If I had time...
@@ -82,6 +80,23 @@ public void testUnregisteredPlatform() throws Exception { | |||
assertNull(result); | |||
} | |||
|
|||
public void testUnregisteredJDK11Platform() throws Exception { | |||
File wd = getWorkDir(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PlatformSourceForBinaryQueryTest seems to pass OK.
The
PlatformForSourceBinaryQuery
class contains support for so called "unregistered platforms". However it seems that the code hasn't been updated to JDK9+ layout. This PR does that. The previously existing test (for JDK8 layout) has been copied and modified to mimic the layout of JDK9+.