Re: [Jastadd] Testing JastAddJ

From: Na, Hyunik <hina_at_kaist.ac.kr>
Date: Sun, 27 Nov 2011 15:03:32 +0900

Hello Jesper,

 

 

 

> -----Original Message-----

> From: jastadd-bounces_at_cs.lth.se [mailto:jastadd-bounces_at_cs.lth.se] On

> Behalf Of Jesper Oqvist

> Sent: Saturday, November 26, 2011 10:36 AM

> To: jastadd_at_cs.lth.se

> Subject: Re: [Jastadd] Testing JastAddJ

>

> Hello Hyunik,

>

> I am using revision 9178, which compiles fine for me (it should compile

> with JDK6).

>

 

 

 

> >

> >> I have compiled JDK7 with JastAddJ, and I do not get this error
message.

> >>

> >>

> > This is a very good news for me because I need to build the whole Java

> class library with JastAddJ

> > (and with my future extension of JastAddJ), because my work includes

> adding compiler-synthesized

> > methods for each class (including those classes in the library).

> >

> > Did you build the whole library or some part of it?

> > (In the OOPSLA `06 paper "The JastAdd Extensible Java Compiler", the

> authors say that

> > they compiled two packages java.lang and java.util of JDK 1.4.2 and

> 1.5. )

> > What is your source for the JDK? Is it OpenJDK?

> >

> I've compiled OpenJDK 7 b146 "langtools" i.e. javac (the reference

> implementation). I had to do some tweaking to get it to compile.

> JastAddJ fails on some type checking with conditional expressions. I can

> share my patches with you when I have time to compile them properly.

 

Indeed, I need JastAddJ-compiled Java class library (which seems to consists
mainly of rt.jar) rather than javac.

(More precisely, JastAddJ-compiled .class files that my (still undecided)
benchmark programs use.

That is, I don't need the whole class files in the Java class library.)

Of course, if JastAddJ compiles javac properly, then it is highly probable
that

JastAddJ produces rt.jar properly as well.

 

I'd like to ask you to try rt.jar too, if you have some more time.

Of course, I'll try it myself.

 

 

 

 

> > I tried the test again according to your comment

> > (though I'm not sure about what you mean by "removing all *.class
files".

> > I just cleaned up my ./build directory.)

> >

> > Then I encountered a new type of error

> >

> > -=-=-=

> >

> > [hina_at_hyunikLinux byjastadd]$ find . -name *.java> java_files

> > [hina_at_hyunikLinux byjastadd]$ java -Xms1024M -Xmx1024M -cp

> /home/hina/install/JastAddJ/Java1.5Backend JavaCompiler -

> bootclasspath .:./build:/home/hina/myWork/research/openjdk-

> 1.6.0.0.hina/build/linux-i586/classes -extdirs . -classpath . -d build

> _at_java_files

> >

> > ... (<-- many warnings about deprecated things)

> > Errors:

> > ./com/sun/java/swing/plaf/nimbus/NimbusLookAndFeel.java:502:

> > Semantic Error: method does not override a method from its superclass

> > ./com/sun/java/swing/plaf/nimbus/NimbusLookAndFeel.java:536:

> > Semantic Error: method does not override a method from its superclass

> > ./com/sun/java/swing/plaf/nimbus/NimbusLookAndFeel.java:607:

> > Semantic Error: method does not override a method from its superclass

> >

> >

> Oh yes I recognize this. It was an error in annotation processing of the

> Override annotation in JastAddJ. I've fix this bug since a couple

> revisions back (some week ago now).

 

I tried the same thing with Java7Backend compiler. That is, I did the
following

 

[hina_at_hyunikLinux byjastadd]$ java -Xms1024M -Xmx1024M -cp
/home/hina/install/JastAddJ/Java7Backend JavaCompiler -

bootclasspath
.:./build:/home/hina/myWork/research/openjdk-1.6.0.0.hina/build/linux-i586/c
lasses -extdirs . -classpath . -d build _at_java_files

 

Then, the NimbusLookAndFeel.java which caused a problem was well compiled.

So, you've certainly fixed the bug.

(But, Java1.5Backend contained in revision 9178 whose 'Last Changed Rev' is
9153

produces the same error.)

 

But, another problem was seen:

 

-=-=-=

...

Errors:

./sun/java2d/cmm/lcms/LCMS.java:26:

  Semantic Error: import sun.java2d.cmm.lcms.LCMS; is conflicting with
visible type

-=-=-=

 

LCMS.java is in the 7638 java files which are well compiled by javac
1.6.0_20.

 

By the way, I think I should move to JDK7 because current main development
of JastAddJ seems to be on Java7.

 

Thank you.

 

-- Hyunik

 

 

 
Received on Sun Nov 27 2011 - 07:03:17 CET

This archive was generated by hypermail 2.3.0 : Wed Apr 16 2014 - 17:19:06 CEST