[
https://issues.apache.org/jira/browse/OLINGO-401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14093819#comment-14093819
]
Francesco Chicchiriccò commented on OLINGO-401:
-----------------------------------------------
Please try setting the Java level in Eclipse to 1.6 - the minimum version
currently supported by Olingo - see
[how|http://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips#answer-1678170]:
it seems that Eclipse, besides its may other flaws, is not able to recognize
the maven compiler settings defined in the main {{pom.xml}}:
{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<compilerArgument>-Xlint:unchecked</compilerArgument>
</configuration>
</plugin>
{code}
> java proxy code - @Override causes errors in eclipse debugger
> --------------------------------------------------------------
>
> Key: OLINGO-401
> URL: https://issues.apache.org/jira/browse/OLINGO-401
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client
> Affects Versions: V4 4.0.0-beta-01
> Reporter: Challen
>
> those @Override don't cause issue in maven build or at runtime, however, the
> errors they bring to eclipse debugger prevent user from debugging the
> application.
> InvocationTargetException.<init>(Throwable) line: 72
> NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
> available [native method]
> NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57
> DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
> Method.invoke(Object, Object...) line: 606
> EntityContainerInvocationHandler(AbstractInvocationHandler).invokeSelfMethod(Method,
> Object[]) line: 92
> EntityContainerInvocationHandler.invoke(Object, Method, Object[]) line: 93
> $Proxy5.newEntityInstance(Class) line: not available
> ===========
> java.lang.Error: Unresolved compilation problems:
> The method load() of type Message must override a superclass method
> The method loadAsync() of type Message must override a superclass method
> The method refs() of type Message must override a superclass method
> The method expand(String...) of type Message must override a superclass
> method
> The method select(String...) of type Message must override a superclass
> method
> The method operations() of type Message must override a superclass
> method
> ===========
> public interface Message ...
> { ...
> @Override
> Message load();
> ...
> }
> ===========
> the fix is to remove @override on the
> load/loadAsync/refs/select/expand/operations methods
--
This message was sent by Atlassian JIRA
(v6.2#6252)