Skip to content

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

Merged
arusinha-zz merged 1 commit intoapache:masterfrom
arusinha-zz:netbeans-3096
Sep 16, 2019
Merged

[NETBEANS-3096]:Updation for external nb-javac jar in libs.javacapi a…#1506
arusinha-zz merged 1 commit intoapache:masterfrom
arusinha-zz:netbeans-3096

Conversation

@arusinha-zz
Copy link
Copy Markdown

@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

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
Copy Markdown
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.

3 participants