Welcome, Guest! Log In | Create Account

UnsupportedPattern

From j2cstranslator

Jump to: navigation, search

Unsupported Patterns

  • Have in a same class a method called "method1" and an inner class called "Method1"
    • Workaround : rename the method via configuration file
  • MyGenericClass.class and (a instanceof MyGenericClass) : In .Net you must write the generics arguments (i.e. typeof(List))
    • Workaround : add translator aware comments : a instanceof List/* insert_here:<String> */ for example
  • new MyGenericClass[]
    • No workaround at this time
  • strictfp modifier (it's just removed)
    • No workaround at this time
  • Use of ? in generics in body (supported in method signature)
    • mthd(Collection<?> a) could be translated in Mthd<E>(ICollection<E> a) where E : class