【发布时间】:2014-11-10 01:18:08
【问题描述】:
好的,我对 java 并不陌生,但我对 java 的了解一直比较基础。我目前正在开发一个引用java代码的不同软件,而我正在做的项目是该项目的过时版本。所以当我尝试将我的项目从过时的版本迁移到新的更新版本时,它会尝试编译 java 代码并出现两个错误,主要是 on;
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.
任何帮助或建议将不胜感激!!! (对不起,长消息)
【问题讨论】:
标签: java error-handling compiler-errors argument-passing