Skip to main content
deleted 15 characters in body
Source Link
Rahul
  • 45.2k
  • 11
  • 89
  • 108

ThisIf you decompile your class file, you can see the below main() method. That is how the Java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString) { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int.\n"); } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This isAnd all this happens because of the compiler which Eclipse uses (Eclipse Compiler for Java), which Eclipse uses by default/comes bundled with, is not the same as the standard Java compiler!

This is how the Java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString) { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int.\n"); } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This is because of the compiler which Eclipse uses (Eclipse Compiler for Java) is not the same as the standard Java compiler!

If you decompile your class file, you can see the below main() method. That is how the Java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString) { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int.\n"); } 

And all this happens because the compiler (Eclipse Compiler for Java), which Eclipse uses by default/comes bundled with, is not the same as the standard Java compiler!

Copy edited.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

This is how the javaJava compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString) { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int\n"int.\n"); } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This is because of the compiler which Eclipse uses  (Eclipse Compiler for Java) is not the same as the standard javaJava compiler!

This is how the java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString) { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int\n"); } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This is because of the compiler which Eclipse uses(Eclipse Compiler for Java) is not the same as the standard java compiler!

This is how the Java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString) { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int.\n"); } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This is because of the compiler which Eclipse uses  (Eclipse Compiler for Java) is not the same as the standard Java compiler!

added 96 characters in body
Source Link
Rahul
  • 45.2k
  • 11
  • 89
  • 108

This is how the java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString)  { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int\n");  } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This is because of the compilercompiler which Eclipse uses(Eclipse Compiler for Java) is not the same as the standard java compiler!

This is how the java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString)  { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int\n");  } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This is because of the compiler which Eclipse uses is not the same as the standard java compiler!

This is how the java compiler knows about the compilation error in the class.

public static void main(String[] paramArrayOfString) { throw new Error("Unresolved compilation problem: \n\tType mismatch: cannot convert from long to int\n"); } 

If you decompile your class file, you can see the above main() method of the class file, which the compiler has generated. This is because of the compiler which Eclipse uses(Eclipse Compiler for Java) is not the same as the standard java compiler!

Source Link
Rahul
  • 45.2k
  • 11
  • 89
  • 108
Loading