google / j2objc Goto Github PK
View Code? Open in Web Editor NEWA Java to iOS Objective-C translation tool and runtime.
Home Page: http://j2objc.org
License: Apache License 2.0
A Java to iOS Objective-C translation tool and runtime.
Home Page: http://j2objc.org
License: Apache License 2.0
This is Issue 38 moved from a Google Code project.
Added on 2012-09-17T17:38:38.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 11 moved from a Google Code project.
Added on 2012-09-05T23:00:27.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (WontFix).
Original labels: Type-Enhancement, Priority-Low, Usability
This is Issue 28 moved from a Google Code project.
Added on 2012-09-14T15:33:43.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-High
This is Issue 12 moved from a Google Code project.
Added on 2012-09-05T23:01:27.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Task, Priority-Medium, Performance
This is Issue 40 moved from a Google Code project.
Added on 2012-09-17T18:06:02.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (WontFix).
Original labels: Type-Defect, Priority-High
This is Issue 37 moved from a Google Code project.
Added on 2012-09-17T14:04:34.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-High
This is Issue 32 moved from a Google Code project.
Added on 2012-09-15T10:45:16.000Z by chicco.colantoni.
Please review that bug for more context and additional comments, but update this bug.
Closed (Invalid).
Original labels: Type-Defect, Priority-Medium
This is Issue 43 moved from a Google Code project.
Added on 2012-09-18T14:22:40.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 13 moved from a Google Code project.
Added on 2012-09-05T23:02:16.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 22 moved from a Google Code project.
Added on 2012-09-05T23:14:34.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Enhancement, Priority-Medium
This is Issue 41 moved from a Google Code project.
Added on 2012-09-18T08:27:47.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 36 moved from a Google Code project.
Added on 2012-09-17T12:58:38.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 27 moved from a Google Code project.
Added on 2012-09-14T15:15:39.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Enhancement, Priority-Medium
This is Issue 49 moved from a Google Code project.
Added on 2012-09-27T07:07:59.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 18 moved from a Google Code project.
Added on 2012-09-05T23:09:41.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 5 moved from a Google Code project.
Added on 2012-09-05T22:54:38.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 17 moved from a Google Code project.
Added on 2012-09-05T23:07:46.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Task, Priority-Medium, Testability
This is Issue 21 moved from a Google Code project.
Added on 2012-09-05T23:13:42.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Verified).
Original labels: Type-Defect, Priority-Medium
This is Issue 48 moved from a Google Code project.
Added on 2012-09-26T13:12:58.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (WontFix).
Original labels: Type-Defect, Priority-Medium
It appears that labeled break statements are not being translated correctly. The translator is converting java's break label;
to objective-c goto label;
, but the semantics of each are different. Java's break label
jumps to the next statement after label (http://docs.oracle.com/javase/tutorial/java/nutsandbolts/branch.html), whereas goto
jumps to the label.
Here's a code sample demonstrating the problem:
public class Breaks {
public static void main(String[] args) {
int counter = 0;
label: {
while (counter++ < 10) {
if (counter >= 5) {
break label;
}
}
}
System.out.println("Counter: " + counter);
}
}
Converted into objective-c (snippet):
+ (void)mainWithNSStringArray:(IOSObjectArray *)args {
int counter = 0;
label: {
while (counter++ < 10) {
if (counter >= 5) {
goto label;
}
}
}
[((JavaIoPrintStream *) nil_chk([JavaLangSystem out])) printlnWithNSString:[NSString stringWithFormat:@"Counter: %d", counter]];
}
Outputs
Java: Counter: 5
Objective-c: Counter: 11
I noticed this whilst running code generated by jflex, converted to objective c.
Possible solution: a second label, "label_end", could be generated in objective c after the label's statement, and a break label
could be converted to goto label_end
? Related code here:
This is Issue 50 moved from a Google Code project.
Added on 2012-09-27T08:59:59.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 7 moved from a Google Code project.
Added on 2012-09-05T22:57:18.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium, Testability
This is Issue 42 moved from a Google Code project.
Added on 2012-09-18T13:52:07.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-High
This is Issue 39 moved from a Google Code project.
Added on 2012-09-17T17:50:09.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 33 moved from a Google Code project.
Added on 2012-09-16T04:08:59.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Duplicate).
Original labels: Type-Defect, Priority-Medium
This is Issue 16 moved from a Google Code project.
Added on 2012-09-05T23:06:56.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Enhancement, Priority-Low, Usability
This is Issue 8 moved from a Google Code project.
Added on 2012-09-05T22:58:01.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 20 moved from a Google Code project.
Added on 2012-09-05T23:12:34.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 34 moved from a Google Code project.
Added on 2012-09-16T13:26:38.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 14 moved from a Google Code project.
Added on 2012-09-05T23:02:55.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
This is Issue 31 moved from a Google Code project.
Added on 2012-09-15T10:00:45.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 51 moved from a Google Code project.
Added on 2012-09-27T14:23:16.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Verified).
Original labels: Type-Enhancement, Priority-Medium
This is Issue 46 moved from a Google Code project.
Added on 2012-09-26T13:09:36.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 26 moved from a Google Code project.
Added on 2012-09-14T12:20:12.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-High, Usability
This is Issue 25 moved from a Google Code project.
Added on 2012-09-13T03:49:35.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 15 moved from a Google Code project.
Added on 2012-09-05T23:04:14.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Medium
This is Issue 30 moved from a Google Code project.
Added on 2012-09-14T18:15:07.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Verified).
Original labels: Type-Defect, Priority-Medium
This is Issue 47 moved from a Google Code project.
Added on 2012-09-26T13:11:20.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Invalid).
Original labels: Type-Defect, Priority-Medium
This is Issue 29 moved from a Google Code project.
Added on 2012-09-14T17:53:30.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Verified).
Original labels: Type-Defect, Priority-Critical, Usability
This is Issue 6 moved from a Google Code project.
Added on 2012-09-05T22:56:43.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Low, Testability
This is Issue 10 moved from a Google Code project.
Added on 2012-09-05T22:59:38.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 45 moved from a Google Code project.
Added on 2012-09-26T02:06:57.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 24 moved from a Google Code project.
Added on 2012-09-08T18:34:33.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Enhancement, Priority-Medium
This is Issue 3 moved from a Google Code project.
Added on 2012-09-05T22:52:11.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium, OpSys-All
This is Issue 44 moved from a Google Code project.
Added on 2012-09-21T11:33:22.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
This is Issue 4 moved from a Google Code project.
Added on 2012-09-05T22:53:29.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Enhancement, Priority-Low, Performance
This is Issue 23 moved from a Google Code project.
Added on 2012-09-05T23:15:12.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Medium, Usability
This is Issue 9 moved from a Google Code project.
Added on 2012-09-05T22:59:04.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Invalid).
Original labels: Type-Enhancement, Priority-Low, Performance
This is Issue 35 moved from a Google Code project.
Added on 2012-09-17T00:57:16.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
This is Issue 19 moved from a Google Code project.
Added on 2012-09-05T23:11:36.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).
Original labels: Type-Defect, Priority-Medium
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.