Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#43 error in special package name

open
Josson Smith
5
2009-08-18
2009-08-18
Sebastián Gurin
No

java2script compiler fails to compile a class which package's name has a class name postfix. For example, the following class inside the package named foo.bar.java.lang.Boolean :

package foo.bar.java.lang.Boolean;
public class AClass {}

is translated to:

Clazz.declarePackage ("foo.bar.java.lang.Boolean");
c$ = Clazz.declareType (va.lang.Boolean, "AClass");

and should be translated to

Clazz.declarePackage ("foo.bar.java2.lang.Boolean");
c$ = Clazz.declareType (foo.bar.java.lang.Boolean, "AClass");

a small eclipse j2s project is attached showing this.

(this package namin is not mine idea, but http://sources.redhat.com/mauve/, which tests I i'm trying to adapt to j2s)

Discussion

  • eclipse j2s project

     
    Attachments