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

java.source.base: Fix for Java 11, update args, swap import #572

Closed
wants to merge 1 commit into from
Closed

java.source.base: Fix for Java 11, update args, swap import #572

wants to merge 1 commit into from

Commits on Jun 2, 2018

  1. java.source.base: Fix for Java 11, update args, swap import

    Fixes the following issues
    
    src/org/netbeans/api/java/source/SourceUtils.java:427:
    error: constructor NamedImportScope in class NamedImportScope cannot be
    applied to given types;
                    NamedImportScope importScope = new
    NamedImportScope(unit.packge, unit.toplevelScope);
                                                   ^
      required: Symbol
      found: PackageSymbol,WriteableScope
      reason: actual and formal argument lists differ in length
    
    src/org/netbeans/modules/java/source/NoJavacHelper.java:69:
    error: cannot find symbol
    
    unsafe.defineClass("com.sun.tools.javac.code.Scope$WriteableScope",
    classData, 0, classData.length, scopeClass.getClassLoader(),
    scopeClass.getProtectionDomain());
                              ^
      symbol:   method
    defineClass(String,byte[],int,int,ClassLoader,ProtectionDomain)
      location: variable unsafe of type Unsafe
    wltjr committed Jun 2, 2018
    Configuration menu
    Copy the full SHA
    9a763d8 View commit details
    Browse the repository at this point in the history