Menu

#29 extra parsing of files in non-multijava mode

self_reported
open
nobody
mjc (13)
2
2006-05-23
2005-01-01
David Cok
No

In code such as this

> public class RAC {
>
> public static void main(String[] args) {
>         //@ assert args.length == 0;
>         System.out.println(args.length);
>         m(1);
> }
>
> public static void m(int i) {
>         //@ assert i == 0;
>         System.out.println("I = " + i);
> }
>
> }

MJC will look in a file m.java for additional external declarations.

It does this when used by jmlrac even when multijava mode is off.

I worked-around this with changes to CClassContext.java
JMethodCallExpression.java JTypeDeclaration.java Main.java that
avoid some attempts to resolve external functions. This solves my
immediate problem, but someone should implement a better
solution and check for other locations that should include checks
for the multijava mode. It appears that the non-multijava mode is
now faster as well, but I did not actually measure performance.

Discussion

  • Curtis Clifton

    Curtis Clifton - 2005-07-20
    • assigned_to: cclifton --> nobody
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-23
    • labels: 486910 -->
    • milestone: 249591 --> self_reported
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-23
    • labels: --> mjc
    • priority: 5 --> 2
     

Log in to post a comment.

MongoDB Logo MongoDB