@@ -0,0 +1,1905 @@
+/*%0A * Copyright 2005 JBoss Inc%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.drools.compiler.commons.jci.compilers;%0A%0Aimport org.eclipse.jdt.core.compiler.IProblem;%0Aimport org.kie.internal.jci.CompilationProblem;%0A%0Apublic class EclipseCompilationProblem implements CompilationProblem %7B%0A%0A    private final IProblem problem;%0A%0A    public EclipseCompilationProblem(final IProblem pProblem) %7B%0A        problem = pProblem;%0A    %7D%0A%0A    public boolean isError() %7B%0A        return problem.isError();%0A    %7D%0A%0A    public String getFileName() %7B%0A        return new String(problem.getOriginatingFileName());%0A    %7D%0A%0A    public int getStartLine() %7B%0A        return problem.getSourceLineNumber();%0A    %7D%0A%0A    public int getStartColumn() %7B%0A        return problem.getSourceStart();%0A    %7D%0A%0A    public int getEndLine() %7B%0A        return getStartLine();%0A    %7D%0A%0A    public int getEndColumn() %7B%0A        return problem.getSourceEnd();%0A    %7D%0A%0A    public String getMessage() %7B%0A        return problem.getMessage();%0A    %7D%0A%0A    public String toString() %7B%0A        final StringBuilder sb = new StringBuilder();%0A        sb.append(getFileName()).append(%22 (%22);%0A        sb.append(getStartLine());%0A        sb.append(%22:%22);%0A        sb.append(getStartColumn());%0A        sb.append(%22) : %22);%0A        sb.append(getMessage());%0A        return sb.toString();%0A    %7D%0A%0A    public int getId() %7B%0A        return problem.getID();%0A    %7D%0A%7D%0A

update to latest ecj (#98)