Java错误->实际和形式参数/IContext/使用-Xlint重新编译

Java错误->实际和形式参数/IContext/使用-Xlint重新编译,java,error-handling,compiler-errors,argument-passing,Java,Error Handling,Compiler Errors,Argument Passing,好吧,我对java并不陌生,但我对java的知识一直都比较基础。我目前正在开发一个引用java代码的不同软件,我正在做的项目是该项目的过时版本。因此,当我试图将我的项目从过时的版本迁移到新的更新版本时,它试图编译java代码,结果出现了两个错误,主要是错误 FriendlyURLS fu = new FriendlyURLS(); required: IContext reason: actual and formal argument lists differ in length

好吧,我对java并不陌生,但我对java的知识一直都比较基础。我目前正在开发一个引用java代码的不同软件,我正在做的项目是该项目的过时版本。因此,当我试图将我的项目从过时的版本迁移到新的更新版本时,它试图编译java代码,结果出现了两个错误,主要是错误

FriendlyURLS fu = new FriendlyURLS();
required: IContext
reason: actual and formal argument lists differ in length

        Buildfile: C:\Mendix_Proj\LV Broker Portal-branch_newMendixMigration_11Sept\deployment\build_core.xml
    compile-legacy:
    [javac] Compiling 846 source files to C:\Mendix_Proj\LV Broker Portal-branch_newMendixMigration_11Sept\deployment\run\bin
    [javac] C:\Mendix_Proj\LV Broker Portal-branch_newMendixMigration_11Sept\javasource\contentmanagement\actions\AddTemporarySEFRequestHandler.java:35: error: constructor FriendlyURLs in class FriendlyURLs cannot be applied to given types;
    [javac]         FriendlyURLs fu = new FriendlyURLs();
    [javac]                           ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] C:\Mendix_Proj\LV Broker Portal-branch_newMendixMigration_11Sept\javasource\ipsecurity\helpers\IPRangeCheckerLoginAction.java:32: error: constructor UserAction in class UserAction<R> cannot be applied to given types;
    [javac]     {
    [javac]     ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac]   where R is a type-variable:
    [javac]     R extends Object declared in class UserAction
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    BUILD FAILED
    C:\Mendix_Proj\LV Broker Portal-branch_newMendixMigration_11Sept\deployment\build_core.xml:48:
    Compile failed; see the compiler error output for details.

任何帮助或建议都将不胜感激!!!抱歉,长消息看起来FriendlyURLs类在其构造函数中需要IContext类型的参数。请检查FriendlyURLs.java文件,了解缺少的参数在哪里。

我已经打开了前面的java文件。IContext是存在的,但仍然没有解释它的用法,也没有解释它如何影响所涉及的类。也就是说,我将尝试一下,看看会出现什么错误/成功。public-class-FriendlyURLs扩展了CustomJavaAction{public-FriendlyURLsIContext-context{supercontext;}在AddTemporarySEFRequestHandler.java中,向构造函数发送IContext的实例。应该类似于FriendlyURLs fu=new FriendlyURLsmyContext;myContext;+fu.IContextmyContext;显示[[找不到符号]]错误。我尝试查看上下文,这在CoreAction错误中给了我一个私有访问权限。我知道我缺少一些内容。这很难确定。请尝试查找实现IContext的类,并查看是否有该类的实例。