Code Monkey home page Code Monkey logo

j2as3's People

Contributors

slitynskyy avatar

Stargazers

 avatar

Watchers

 avatar

j2as3's Issues

No conversion for variables in Interfaces

What steps will reproduce the problem?
1. Code an Interface in Java having the Static Variables.
2. Convert it to AS3 using the tool.
3. The Interface variables are there in the AS3 code.

What is the expected output? What do you see instead?
Since AS3 do not support Variables in Interfaces, it should not proceed for the 
conversion.

What version of the product are you using? On what operating system?
J2AS3_v4.air on Windows XP

Please provide any additional information below.

It should display the appropriate error while converting. If we develop a big 
application and than convert it, it will create issues while running it.

Original issue reported on code.google.com by [email protected] on 27 Apr 2011 at 12:31

Support typed arrays

Recognize types ArrayLists and convert using Vector
(http://livedocs.adobe.com/flex/3/langref/Vector.html)

Original issue reported on code.google.com by mslinn on 11 Mar 2009 at 9:20

Hexidecimal ints problems

What steps will reproduce the problem?
1. In Java source, set int color = 0x77ff77;
2. Compiled AS source says: var color:int = 0x7777;

Expected output is "var color:int = 0x77ff77;" but instead the "ff" part is
removed, and I get "var color:int = 0x7777;"

I'm using J2AS3 v3 on Ubuntu Linux

Original issue reported on code.google.com by [email protected] on 2 Sep 2009 at 7:16

Function returning array not converted properly

What steps will reproduce the problem?
1. define a function in java as mentioned below:
   public int[] getTicOccupied() 
   {
   }
2. convert the code using the j2as3 tool.
3. vied the converted code

What is the expected output? What do you see instead?
The code should be converted as mentioned below:
   public function getTicOccupied():Array 
   {
   }

What version of the product are you using? On what operating system?
v 4
windows xp

Please provide any additional information below.
The same issue persist with multi dimensional array

Original issue reported on code.google.com by [email protected] on 9 Jun 2011 at 5:25

Display progress, persist last used paths - patch

I've been using your program and I needed 2 little features. I made them
and I'd like to contribute them to the project.

1. Store last used paths so I don't have to re-enter them at next start.
2. Make the progress-bar and list really display the progress while working.

In the hope they are useful, here is the patch - see attachment.

Original issue reported on code.google.com by [email protected] on 23 May 2009 at 3:50

Attachments:

array declaration not converted properly

What steps will reproduce the problem?
1. Declare an 2D Array variable in Java using notation int[][] arr.
2. Convert the code using j2as3
3. Look over the converted code

What is the expected output? What do you see instead?
1. The declaration int[][] arr should be converted into var arr:Array.

What version of the product are you using? On what operating system?
v 4
windows xp

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 9 Jun 2011 at 5:22

Convertion from Java Type Long - We get a ActionScript Long Type instead of Number Type

What steps will reproduce the problem?
1. Creation a Java Class with LONG type.
2. Use the converter j2as3.
3.

What is the expected output? What do you see instead?

The java class has the following line:
private Long id;

The expected output is: 

public var id:Number;

The actual output is: 
public var id:Long;

The type LONG is not known in AS3 so we get a compilation problem.

What version of the product are you using? On what operating system?
FlashBuilder 4 with SDK 4.1
I use J2AS3_v4.air - downloaded on the 2 Auguest 2011 - with Windows XP.


Please provide any additional information below.

The converter is great and was helpful to me. Thank you.

Original issue reported on code.google.com by [email protected] on 2 Aug 2011 at 9:20

Problems converting Java arrays

Java declarations like

    int[] xPositions = new int[5];

are converveted to actionscript code

    var xPositions:Array= new int[5];

but correct would be

    var xPositions:Array= new Array(5);

or I believe this could also work

    var xPositions:Array= new int(5);


Also when having a java method that returns an array like

      public int [] getXPoints() {

it is translated to

      public int [] getXPoints() {

but correct would be

      public function getXPoints():Array {

Original issue reported on code.google.com by mslinn on 8 Mar 2009 at 7:34

Escaped Quotes Cause Infinite Loop and Lockup

What steps will reproduce the problem?
Convert a directory with a java file in it with a string containing an
escaped quote. I've only come across '\'' but I would imagine the string
"\"" would reproduce as well.

What is the expected output? What do you see instead?
I expect it to leave the string unmodified, it is a valid AS3 string.
Instead it hangs indefinitely searching for, I presume, the matching quote.

What version of the product are you using? On what operating system?
SVN checkout on 8/22/09. Vista x86.

Original issue reported on code.google.com by [email protected] on 24 Aug 2009 at 3:18

Method override do not work

What steps will reproduce the problem?
1. override a superclass method in child class.

What is the expected output? What do you see instead?

The overriden method should have the AS3 keyword override in the method 
declaration.

Original issue reported on code.google.com by [email protected] on 12 Nov 2011 at 8:51

Java in build class method calls present in the converted code

What steps will reproduce the problem?
1. Have any inbuilt class method call in Java code.
2. We can have System.out.println("Hello");
3. This was getting converted successfully.

What is the expected output? What do you see instead?
The conversion should display some error while converting in built Java class 
method calls.

What version of the product are you using? On what operating system?
J2AS3_v4.air

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Apr 2011 at 12:33

my windows complained about the version

you should know this. I just downloaded J2AS3_v3.air and double click on it
and it brings up a dialog which says:

---------------------------
Adobe AIR
---------------------------
This application requires a version of the Adobe Integrated Runtime (AIR)
which is no longer supported. Please contact the application author for an
updated version.
---------------------------
OK   
---------------------------

then I downloaded AIR 1.5 installation and reinstalled it now it works.


Original issue reported on code.google.com by ozkan.pakdil on 22 Feb 2009 at 9:17

Default Constructors with arguments contains 'var'

What steps will reproduce the problem?
1. Test java file with default constructor

package test;
public class DefaultConstructorTest {
    DefaultConstructorTest(String arg, String arg2) {
        //...
    }
}

2. Converted as3

package test {
public class DefaultConstructorTest {

    DefaultConstructorTest(var arg:String, var arg2:String) {
        //...
    }
}
} 
3. No need of 'var' in before the arguments.

What is the expected output? What do you see instead?

package test {
public class DefaultConstructorTest {

    DefaultConstructorTest(arg:String, arg2:String) {
        //...
    }
}
} 

What version of the product are you using? On what operating system?
1. J2AS3_v3.air 
2. OS: Win & MAC OS X

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 29 Oct 2009 at 11:14

Getter and Setter in Java are converted to function but should use the AS3 convention for getters and setters

What steps will reproduce the problem?
1. Creater a Java DTO file iwth getters/setters. 
2. Convert it with j2AS3
3.

What is the expected output? What do you see instead?

The Java File has: 

    private String line;
    public void setLine(String line) {
        this.line = line;
    }

    public String getLine() {
        return line;
    }

In AS3 we get: 


    private var line:String;
    public function setLine(line:String):void {
        this.line = line;
    }

    public function getLine():String {
        return line;
    }

In AS3, we should have:

    private var _line:String;

    public function set line(line:String):void {
        this.line = line;
    }

    public function get line():String {
        return line;
    }



What version of the product are you using? On what operating system?
I use J2AS3 version 4 downloaded on the 2nd Auguest 2011.
Windows XP with Flex 4.1 SDK

Please provide any additional information below.

Thank you


Original issue reported on code.google.com by [email protected] on 2 Aug 2011 at 9:33

Annotations stops conversion

What steps will reproduce the problem?
1. Annotate a member variable (@Something)
2.
3.

What is the expected output? What do you see instead?
Annotations should not be converted (left out)
Instead: Conversion of the file stopped

What version of the product are you using? On what operating system?
SVN version from 2010-Feb-01

Please provide any additional information below.
Fast fix was to add "@" to the symbols list, so that the annotation is
converted "as is", but the annotation should be left out from AS3 code

Original issue reported on code.google.com by [email protected] on 1 Feb 2010 at 8:43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.