Thanks for the quick reply.
More questions:
What's wrong with this code:
public class Main {
public static class A {
public void foo() {
System.out.println("A");
}
};
public static struct S = A;
public static void main(String args[]) {
S s = new A();
s.foo();
}
}
Also, I noticed that the Eclipse plug-in's editor is not treating
single line comments (in fact other comments too).
Since (after some code checking) i see that the problem is in a
Whiteoak's internal class, I'm thinking that it's worth mentioning.
In "TokenExtractorScanner" class ("TokenExtractor.java") there's an
overloading of processComment method. This is done (correct me if I'm
wrong)
under the assumption that this method will be called when a comment
was detected. Actually, this method will be invoked only when an
ENTIRE
comment was detected.
This means that for a buffer containing only a comment -
processComment will not be called. I'm guessing that when processing
entire files this will
not be noticed but this is quickly pops up in the editor.
P.S.
Whiteoak looks great. Keep on the good job.
On Jan 18, 8:38 am, imaman <
itay.ma...@gmail.com> wrote:
> Hi,
>
> No, arrays of structs cannot be supported. The runtime type check that
> takes place whenever a value is inserted into an array is hard-wired
> into the JVM. Thus, support for such arrays will require changing the
> JVM which is against Whiteoak's philosophy. The next build of Whiteoak
> should include a specific check that guards against the declaration of
> such arrays.
>
> Currently, there is no language spec. document. I hope to finish
> writing one within a few months.
>
> -Itay
>
> Itay Mamanhttp://
javadots.blogspot.com