Skip to content

Export issue: Invalid name (must be a valid unqualified name): <init> #140

@artemking4

Description

@artemking4

When exporting the jar i issued this error: Invalid name (must be a valid unqualified name): <init>

To Reproduce
Steps to reproduce the behavior:

  1. Open any function in assembler
  2. Add a new statement
  3. Invoke
  4. Export
  5. See error

Here's my code:

ASTORE r
ALOAD r 
SIPUSH 1000
INVOKEVIRTUAL com/badlogic/gdx/graphics/glutils/ShapeRenderer.<init>(I)V
ALOAD this
GETFIELD com/desertkun/brainout/AuX/aux/jh.visible Z
IFEQ A
ALOAD 1 
GETSTATIC com/badlogic/gdx/graphics/Color.WHITE Lcom/badlogic/gdx/graphics/Color;
INVOKEVIRTUAL com/badlogic/gdx/graphics/g2d/SpriteBatch.setColor(Lcom/badlogic/gdx/graphics/Color;)V
GOTO B
LABEL A
ALOAD 1
GETSTATIC com/badlogic/gdx/graphics/Color.RED Lcom/badlogic/gdx/graphics/Color;
INVOKEVIRTUAL com/badlogic/gdx/graphics/g2d/SpriteBatch.setColor(Lcom/badlogic/gdx/graphics/Color;)V
ALOAD r
GETSTATIC com/badlogic/gdx/graphics/glutils/ShapeRenderer$ShapeType.Line Lcom/badlogic/gdx/graphics/glutils/ShapeRenderer$ShapeType;
INVOKEVIRTUAL com/badlogic/gdx/graphics/glutils/ShapeRenderer.begin(Lcom/badlogic/gdx/graphics/glutils/ShapeRenderer$ShapeType;)V
ALOAD r
GETSTATIC com/badlogic/gdx/graphics/Color.RED Lcom/badlogic/gdx/graphics/Color;
INVOKEVIRTUAL com/badlogic/gdx/graphics/glutils/ShapeRenderer.setColor(Lcom/badlogic/gdx/graphics/Color;)V
ALOAD r
ALOAD this
INVOKEVIRTUAL com/desertkun/brainout/AuX/aux/jh.getX()F
ALOAD this
INVOKEVIRTUAL com/desertkun/brainout/AuX/aux/jh.getY()F
LDC 10.0f
INVOKEVIRTUAL com/badlogic/gdx/graphics/glutils/ShapeRenderer.circle(FFF)V
ALOAD r
INVOKEVIRTUAL com/badlogic/gdx/graphics/glutils/ShapeRenderer.end()V
LABEL B
ALOAD this
ALOAD 1
ALOAD 2
INVOKESPECIAL com/desertkun/brainout/AuX/ar.do(Lcom/badlogic/gdx/graphics/g2d/SpriteBatch;Lcom/desertkun/brainout/AuX/cOn/ao;)V
RETURN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions