Changes between Version 174 and Version 175 of j2p


Ignore:
Timestamp:
12/18/24 16:28:45 (9 days ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v174 v175  
    552552||I get an error in python on an overloaded method ({{{@dispatch}}}), incorrect number of arguments.||{{{@dispatch}}} has a problem with Optional arguments. Try making the arguments {{{@NonNull}}} in java.||
    553553||I get an {{{UnsupportedOperationException}}} inside javaparser LambdaExprContext||Javaparser seems to sometimes have trouble with resolving argument types inside lambda expressions. Try explicitly typing the left side of your lambda expression||
     554||I get mockito.invocation.InvocationError: You tried to stub a method '__len__' the object (<class 'mockito.mocking.mock.<locals>.Dummy'>) doesn't have.||Python typing around the built-in types (list, set) is messy. If you stub a java List/Set, it translates to mock(typing.List/typing.Set). And those types do not have {{{___len___}}} causing the error.
     555In these special cases you need to use mock(list)/mock(set). Try manual translation of these types.||