Virtual mappings

Abierto
#671 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

Este es un issue de brainstorming que abarca componentes de UI, decompiladores, assembler/disassembler, grafos, mapping y búsquedas en el workspace, en lugar de nombrar un archivo o una prueba específicos. Comienza rastreando getBytecode(), Workspace#findClass(String), las búsquedas de ClassInfo y el uso de ClassMap; el trabajo solo estaría completo cuando todas las operaciones afectadas resuelvan y operen de forma coherente sobre mappings virtuales.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

Mostly for brainstorming, the feature is complex and not likely to actually be implemented unless a REALLY good solution is put forward

UI components:

  • Workspace tree
  • Class tab tiles
  • Class views & all associated components

Logical components:

  • Decompilers
    • Need to target the virtual mappings, NOT the real existing code
      • Pre-processors can handle that
  • Assembler / Disassembler
    • Need to target the virtual mappings, NOT the real existing code
      • This one is a bit of a doozy...
  • Inheritance graph
    • Need to target the virtual mappings, NOT the real existing code
      • Need to make getSuperClass() yield the virtual mapped name, or handle it explicitly here.
      • More API changes for solution work mentioned below.
  • Call graph
    • Need to target the virtual mappings, NOT the real existing code
      • Should be operating off virtually mapped bytecode, shouldn't be too hard to manage.
      • Lookups by name need to resolve as virtual mapped names.
  • Mapping
    • Need to target the virtual mappings, NOT the real existing code
      Example: If XYZ is virtually Dog what should be done in the given circumstances?
      • Map XYZ to ABC: Nothing since XYZ virtually does not exist.
      • Map Dog to ABC: Apply the mapping.

Potential solutions:

  • Currently we have getBytecode() for JVM classes.
    • Instead offer getOriginalBytecode() and getVirtualMappedBytecode() (Names not final, but to drive the point across)
    • The VirtualMappedBytecode is mutable data, which is dynamically updated across the workspace whenever virtual mapping are modified. They are thus always kept up-to-date.
      • Would be useful to optimize the update process so unaffected classes per a change are easily determined, so the mapping process only applies to relevent classes.
    • The usage of getOriginalBytecode() is very limited, and instead most calls are to getVirtualMappedBytecode().
    • The remaining issue is maintaining access by virtual name.
      • Can potentially change the Workspace#findClass(String) to assume the input is the virtual mapped name?
        • Would need to ensure all ClassInfo lookups use the find operations, and not directly from the ClassMap.
Lenguaje dominante
Java
Estrellas
7.5k
Forks
549
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Col-E/Recaf

Todos los issues de Col-E/Recaf

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.