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

[NETBEANS-3096]:Updation for external nb-javac jar in libs.javacapi a… #1506

Merged
merged 1 commit into from Sep 16, 2019

Conversation

arusinha-zz
Copy link

@arusinha-zz arusinha-zz commented Sep 15, 2019

…nd libs.javaimpl modules with nb-javac jar for jdk-13
Changes:

  1. Updation of external jars of libs.javacapi & libs.javacimp modules.
  2. Correction of Test cases of JavaCompetion for JDK-13
    Find below the list of test-cases which are failing with nb-javac (for jdk-13) but the same scenario is working in editor when used with nb-javac plugin for jdk-13
    https://issues.apache.org/jira/browse/NETBEANS-3099

…nd libs.javaimpl modules with nb-javac jar for jdk-13
@@ -101,7 +101,9 @@
private static final ThreadLocal<Boolean> isTreeLoading = new ThreadLocal<Boolean>();

public static void preRegister(final Context context, final ClasspathInfo cpInfo, final boolean detached) {
context.put(lazyTreeLoaderKey, new TreeLoader(context, cpInfo, detached));
LazyTreeLoader instance = context.get(lazyTreeLoaderKey);
Copy link
Author

Choose a reason for hiding this comment

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

This check is required otherwise we will get below error

java.lang.AssertionError: duplicate context value
at com.sun.tools.javac.util.Context.put(Context.java:141)
at org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.preRegister(TreeLoader.java:106)
at org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader$TreeLoaderRegistryImpl.enhance(TreeLoader.java:579)
at org.netbeans.modules.java.source.parsing.JavacParser.lambda$createJavacTask$10(JavacParser.java:796)

@arusinha-zz arusinha-zz merged commit ba9af0e into apache:master Sep 16, 2019
@junichi11 junichi11 added this to the 11.2 milestone Sep 16, 2019
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