Author: [EMAIL PROTECTED] Date: Mon Oct 27 10:46:00 2008 New Revision: 3868
Modified: releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java Log: Throw an error if the cached JS output cannot be read. Suggested by: bobv Modified: releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java ============================================================================== --- releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java Mon Oct 27 10:46:00 2008 @@ -99,6 +99,10 @@ } if (toReturn == null) { toReturn = Util.readFileAsString(cacheFile); + if (toReturn == null) { + throw new RuntimeException("Unexpectedly unable to read JS file '" + + cacheFile.getAbsolutePath() + "'"); + } js = new SoftReference<String>(toReturn); } return toReturn; --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---