Community
Participate
Working Groups
HEAD. One should not use Charset.toString() to get encoding. Instead Charset.name() should be used. This is important because toString() is not clearly specified and other JREs can return a different toString() value. References I found: org.eclipse.jdt.internal.compiler.apt.util.ArchiveFileObject.getCharContent(boolean) org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.getEndorsedDirsFrom(String) org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.getExtdirsFrom(String) org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.getPathsFrom(String) org.eclipse.jdt.internal.compiler.apt.util.EclipseFileObject.getCharContent(boolean) org.eclipse.jdt.internal.compiler.tool.ArchiveFileObject.getCharContent(boolean) org.eclipse.jdt.internal.compiler.tool.EclipseFileManager.getEndorsedDirsFrom(String) org.eclipse.jdt.internal.compiler.tool.EclipseFileManager.getExtdirsFrom(String) org.eclipse.jdt.internal.compiler.tool.EclipseFileManager.getPathsFrom(String) org.eclipse.jdt.internal.compiler.tool.EclipseFileObject.getCharContent(boolean)
Satyam, please follow up. Thanks!
I'll take care of this as I prefer that Satyam focuses on the APT issue.
Released for 3.7M3. Code inspection is required for verification.
Created attachment 180960 [details] Proposed fix
Verified in I20101025-1800.