Community
Participate
Working Groups
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
Please attach your workspace's log file (workspace/.metadata/.log) to this bug.
Created attachment 190491 [details] OJException- OpenJavaException cannot generate parse tree bug file
Created attachment 190492 [details] OJException- OpenJavaException cannot generate parse tree .LOG file
Comment on attachment 190492 [details] OJException- OpenJavaException cannot generate parse tree .LOG file Please open a bug with the Muclipse plug-in.
You may also want to take it up with the CodeCover plug-in.
Created attachment 190493 [details] application program-------OJException
Created attachment 190494 [details] Testcase program -- OJException
Created attachment 190495 [details] program log--- OJException same error even after including code cover
Created attachment 190496 [details] Error in console when running mutants for that program
Report the problem against the Muclipse bundle. http://muclipse.sourceforge.net/ Closing as NOT_ECLIPSE.
Changing to NOT_ECLIPSE.