Skip to content

java.awt is not implemented? #73

Open
@vuvk

Description

@vuvk

Hello. I tried build HelloWorld and it works. Ok. Now I try compile HelloAwt. Source:
`import java.awt.Frame;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

public class HelloAwt {

static class FrameWin extends Frame implements WindowListener {

    public FrameWin (String FrameTitle) {
        super (FrameTitle);

        addWindowListener ((WindowListener) this);
    }

    @Override
    public void windowOpened (WindowEvent e) {}
    @Override
    public void windowClosing (WindowEvent e) {
        this.dispose ();
    }
    @Override
    public void windowClosed (WindowEvent e) {}
    @Override
    public void windowIconified (WindowEvent e) {}
    @Override
    public void windowDeiconified (WindowEvent e) {}
    @Override
    public void windowActivated (WindowEvent e) {}
    @Override
    public void windowDeactivated (WindowEvent e) {}
}

public static void main (String [] args) {
    FrameWin frame = new FrameWin ("test awt window");
    frame.setSize (640, 480);
    frame.setResizable (false);
    frame.setLocationRelativeTo (null);
    frame.setVisible (true);
}

} `

I ran command: ./bin/jlangc -cp jdk/out/classes HelloAwt.java and it builded HelloAwt.ll
After I ran ./bin/compile_ll.sh HelloAwt.ll and it crash: [log] (https://pastebin.com/2ez2QcFB) ("неопределённая ссылка" translate as "undefined link")

Awt it is not implemented part?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions