]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java
Fixed various bugs in TG readers
[simantics/platform.git] / bundles / org.simantics.project / src / org / simantics / project / management / PlatformUtil.java
index 9dfa67efef7be394081c583f325b09ed63dfea4e..a8916251e07c738413866bde501a42b3e7c3eec6 100644 (file)
@@ -392,8 +392,10 @@ public class PlatformUtil {
        private static GraphBundleEx tryGetOnDemandGraph(Bundle bundle, URL url) throws IOException {
                try {
                        Integer cachedHash = readCachedHash(url);
-                       if (cachedHash == null)
+                       if (cachedHash == null) {
+                               LOGGER.info("No cached hash for " + bundle);
                                return null;
+                       }
 
                        Supplier<TransferableGraph1> graphSource = () -> {
                                try {
@@ -443,7 +445,7 @@ public class PlatformUtil {
                // For an unknown reason this is totally broken when running the TestSCLOsgi
                // in the SDK Tycho build. It returns incomplete results because the
                // ReadableByteChannel used by ByteFileReader starts returning 0 unexpectedly.
-//                             try (TransferableGraphFileReader reader = new TransferableGraphFileReader(is)) {
+//             try (TransferableGraphFileReader reader = new TransferableGraphFileReader(is)) {
 //                     return reader.readTG();
 //             }
                return DataContainers.readFile(new DataInputStream(is), handlers);