Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339030

Summary: OJException: OpenJavaException. Cannot Generate parse tree
Product: [Eclipse Project] PDE Reporter: saravana <saravana.balaji07>
Component: API ToolsAssignee: PDE API Tools Inbox <pde-apitools-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, Olivier_Thomann, remy.suen
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
OJException- OpenJavaException cannot generate parse tree bug file
none
OJException- OpenJavaException cannot generate parse tree .LOG file
none
application program-------OJException
none
Testcase program -- OJException
none
program log--- OJException
none
Error in console when running mutants for that program none

Description saravana CLA 2011-03-06 00:57:18 EST
Build Identifier: eclipse 3.3

public class Playfair
{
	static String keyword="play" ;
	public Playfair()
	{
	keyword= "play";
	}
	public Playfair(String key)
	{
		keyword=key; 
	}
	static String keystring = "";
    public static int Basic()
    {
       // BufferedReader fu = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Playfair Cipher\n1.Encrytion\n2.Decryption\nUr Option ?");
        //int choice = Integer.parseInt(fu.readLine());

        System.out.print("Enter the initial text : ");
        //String initial = fu.readLine().toLowerCase().replace('j', 'i');
           System.out.println("    Key Matrix : ");
           return 1;
    }
        public static boolean for1(int t,int r)
        {
        	//System.out.print("Enter the keyword : ");
           
            for( char c : (keyword + "abcdefghiklmnopqrstuvwxyz").replace('j', 'i').toCharArray())
            {
       
            	if(keystring.indexOf(c) == -1) 
            		keystring += c;                                                                              
            	
            }
        	int i,j,count=0,count1=0;
        for(i=t; i < 5; i++)
        {
            System.out.print("\t");
            for( j = r; j < 5; j++) {
            	System.out.print(keystring.charAt(i * 5 + j) + " ");
            	count1=1;
            }
            System.out.println();
            count=1;
        }
        if(count==1&& count1==1)
        return true;
        else
        	return false;
        
        }
        public static String  basic2(int ch,String ini,int n)
        {

        String finale = "";
        int next , row1, col1, row2, col2;
        int choice =ch;
        int inc = choice != 2 ? 1 : -1;
        String initial=ini;
        next=n;
        System.out.print("intial length"+initial.length());
        while(next != initial.length())
        {
            char c1 = initial.charAt(next++), c2;
            System.out.println(c1+"\t"+next+"\n");
            if(!Character.isLetter(c1)) { finale += c1; continue; }
            if(next == initial.length() || !Character.isLetter(c2 = initial.charAt(next)) || c1 == c2) c2 = 'x';
            else next++;
            row1 = keystring.indexOf(c1) / 5; col1 = keystring.indexOf(c1) % 5;
            row2 = keystring.indexOf(c2) / 5; col2 = keystring.indexOf(c2) % 5;
            if(row1 == row2) { col1 = (col1 + inc + 5) % 5; col2 = (col2 + inc + 5) % 5; }
            else if(col1 == col2) { row1 = (row1 + inc + 5) % 5; row2 = (row2 + inc + 5) % 5; }
            else { col1 ^= col2; col2 ^= col1; col1 ^= col2; }
            finale += "" + keystring.charAt(row1 * 5 + col1) + keystring.charAt(row2 * 5 + col2);
            System.out.print(finale);
            //return finale;
        }
        System.out.print("Final text : " + finale.replace('x', '\0'));
        return finale;
    }
}

When running mutants for the above program:

Generated Error in Muclipse:

OJException: OpenJavaException. Cannot Generate parse tree


Mutants has been created..........




Reproducible: Always
Comment 1 Remy Suen CLA 2011-03-06 07:41:56 EST
Please attach your workspace's log file (workspace/.metadata/.log) to this bug.
Comment 2 saravana CLA 2011-03-06 08:37:02 EST
Created attachment 190491 [details]
OJException-  OpenJavaException cannot generate parse tree bug file
Comment 3 saravana CLA 2011-03-06 08:39:31 EST
Created attachment 190492 [details]
OJException-  OpenJavaException cannot generate parse tree .LOG file
Comment 4 Remy Suen CLA 2011-03-06 08:56:09 EST
Comment on attachment 190492 [details]
OJException-  OpenJavaException cannot generate parse tree .LOG file

Please open a bug with the Muclipse plug-in.
Comment 5 Remy Suen CLA 2011-03-06 08:57:35 EST
You may also want to take it up with the CodeCover plug-in.
Comment 6 saravana CLA 2011-03-06 09:09:24 EST
Created attachment 190493 [details]
application program-------OJException
Comment 7 saravana CLA 2011-03-06 09:09:54 EST
Created attachment 190494 [details]
Testcase program -- OJException
Comment 8 saravana CLA 2011-03-06 09:10:43 EST
Created attachment 190495 [details]
program log--- OJException

same error even after including code cover
Comment 9 saravana CLA 2011-03-06 09:11:20 EST
Created attachment 190496 [details]
Error in console when running mutants for that program
Comment 10 Olivier Thomann CLA 2011-03-06 14:39:21 EST
Report the problem against the Muclipse bundle.
http://muclipse.sourceforge.net/
Closing as NOT_ECLIPSE.
Comment 11 Curtis Windatt CLA 2011-03-07 09:54:13 EST
Changing to NOT_ECLIPSE.