JavaME_błąd constructor u in class u cannot be applied to given types

0

Witam
przerabiam sobie rozkład jazdy kilka plików i mam problem z błędem nie wiem jak go naprawić

oto błąd programu

============================
error: constructor u in class u cannot be applied to given types;
super("test", w1.a(), 0, null);
required: String,String[],int,Object
found: String,boolean,int,<null>
reason: actual argument boolean cannot be converted to String[] by method invocation conversion

podaje fragment kodu:

 public x()
    {
        this(b_info_w_static_fld);
    }

    private x(w w1)
    {
        super("test", w1.a(), 0, null);    <---- tu wyskakuje błąd
        d = new Command("Wstecz", 2, 0); 
        a_info_w_fld = w1;
        a(super.a_int_fld);
        setCommandListener(this);
    }

    public final void a(int k)
    {
        super.a(k);
        if("Menu".equals(a_info_w_fld.a))
        {
            c = new Command("Wyjscie", 7, 1);
            addCommand(c);
        }
    }

.....
 private TextField a_javax_microedition_lcdui_TextField_fld;
    private TextField b_javax_microedition_lcdui_TextField_fld;
    private ChoiceGroup a_javax_microedition_lcdui_ChoiceGroup_fld;
    private w a_info_w_fld;
    private static w b_info_w_static_fld = new w("Menu", new w[] {
        new w("x1", null), new w("x2", new w[] {
            new w("x3", null), new w("x4)", null), new w("x5", new w[] {
                new w("x6", null), new w("x7", null)
            })
        }), new w("x8", null), new w("O programie", null)
    });





===========================
plik u.java

public class u extends List
    implements CommandListener
{

    public u(String s, String as[], int i, Object obj)
    {
        super(s, 3, as, null);
        a_java_lang_String_array1d_fld = as;
        a_int_fld = i;
        a_java_lang_Object_fld = obj;
        setFitPolicy(1);
    }

    public void a(int i)
    {
        b_javax_microedition_lcdui_Command_fld = new Command("Wybierz", 4, 0);
        setSelectCommand(b_javax_microedition_lcdui_Command_fld);
    }

    public void commandAction(Command command, Displayable displayable)
    {
     //   if(command.equals(a_javax_microedition_lcdui_Command_fld));
        //    Midlet(a_javax_microedition_lcdui_Displayable_fld);
    }

    public final void a(Displayable displayable)
    {
        a_javax_microedition_lcdui_Displayable_fld = displayable;
        if(a_javax_microedition_lcdui_Command_fld == null)
        {
            a_javax_microedition_lcdui_Command_fld = new Command("Wstecz", 2, 1);
            addCommand(a_javax_microedition_lcdui_Command_fld);
        }
    }

    public static void b(Displayable displayable)
    {
      Midlet.a(displayable);
    }

    public static void b(int i)
    {
   //     j.a("Niespodziewana komenda " + i);
    }

    public Command a_javax_microedition_lcdui_Command_fld;
    public Command b_javax_microedition_lcdui_Command_fld;
    public Displayable a_javax_microedition_lcdui_Displayable_fld;
    public Displayable b_javax_microedition_lcdui_Displayable_fld;
    public int a_int_fld;
    public Object a_java_lang_Object_fld;
    public String a_java_lang_String_array1d_fld[];
    
}

z góry dziękuje za pomoc

0

problem rozwiązałem proszę zamknąć temat
dziękuje

1 użytkowników online, w tym zalogowanych: 0, gości: 1