Skip to content

Conversation

@jlahoda
Copy link
Contributor

@jlahoda jlahoda commented Nov 17, 2021

The multi-file JavaSources should work reasonably well after #2959 on new JDKs/with nb-javac, but due to implementation changes in javac, they may not work well on older JDKs (like JDK 14/11). While overall I think we should eventually drop support for older JDKs without (some sort of) nb-javac, that is not the case currently, so trying to make the multi-file sources work also on older JDKs (which should improve the random failures on Travis).

@jlahoda jlahoda added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Nov 17, 2021
@jlahoda jlahoda added this to the NB13 milestone Nov 17, 2021
@jlahoda jlahoda requested review from dbalek and sdedic November 17, 2021 08:29
}
}
} finally {
if (lowMemoryCancel.get()) {
Copy link
Member

Choose a reason for hiding this comment

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

OK, centralized low-memory conditions for all types of failures, not just Runtime + CancelAbort.

}
}
currentPhase = Phase.RESOLVED;
if (!lowMemoryCancel.get()) {
Copy link
Member

Choose a reason for hiding this comment

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

Completed without an exception/error, but still low memory cancel ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, old(er) versions of javac will not propagate the exceptions from the parse and analyze methods. See:
openjdk/jdk@4333942

Copy link
Member

Choose a reason for hiding this comment

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

@jlahoda Thanks for expanation - I don't have such a wide context, so now I better understand the core piece of this PR :)

@mbien
Copy link
Member

mbien commented Nov 17, 2021

my understanding was that NB 13 won't have a mode without nb-javac. Its installed by default, based on JDK 17 (backported with jackpot) and will stay enabled even when NB is started on 18+.

@matthiasblaesing
Copy link
Contributor

my understanding was that NB 13 won't have a mode without nb-javac. Its installed by default, based on JDK 17 (backported with jackpot) and will stay enabled even when NB is started on 18+.

Jan fixes a problem that exists now. We can speculate/plan the future, but it has not happened yet: the relevant PRs are #3251 and #2783. They are not merged yet.

@neilcsmith-net
Copy link
Member

@mbien also note @jlahoda comment in the description -

While overall I think we should eventually drop support for older JDKs without (some sort of) nb-javac, that is not the case currently,

@mbien
Copy link
Member

mbien commented Nov 17, 2021

@mbien also note @jlahoda comment in the description -

While overall I think we should eventually drop support for older JDKs without (some sort of) nb-javac, that is not the case currently,

I saw that yes, that was the reason for my comment.

Even if the PRs are not merged yet (it would be a good time to do it soon btw, early in the cycle), I had the impression that the decision was pretty much already made - looks like i was wrong.

@mbien
Copy link
Member

mbien commented Dec 28, 2021

I noticed both of the above mentioned javac PRs are now integrated. This would make JDK 17 javac the new baseline, right?.

@neilcsmith-net neilcsmith-net modified the milestones: NB13, NB14 Jan 17, 2022
@lkishalmi
Copy link
Contributor

@jlahoda Do we still need this one?

@neilcsmith-net neilcsmith-net modified the milestones: NB14, NB15 Apr 20, 2022
@neilcsmith-net neilcsmith-net removed this from the NB15 milestone Jul 18, 2022
@neilcsmith-net
Copy link
Member

No reply so rather than bump another milestone, will close. Reopen if still a need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants