[ 
https://issues.apache.org/jira/browse/OLINGO-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bolz resolved OLINGO-401.
---------------------------------

    Resolution: Not a Problem

Hi [~challenh],

for work within Eclipse a best practice is to run "mvn clean eclipse:eclipse" 
and then do an "Import existing projects".
Then the Eclipse settings are generated and the source code (compiler) level 
should be set to {{1.6}} (as declared in the {{pom.xml}}) and you should not 
get errors during your debug session.

I will set this issue to resolved. It would be nice if you "close" it if above 
and/or the tip from [~ilgrosso] works for you.

Kind regards,
Michael

> 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
>            Assignee: Michael Bolz
>
> 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)

Reply via email to