From 8df4ead7cf57fa20d2396ea298f3d1ce4a036773 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 11 Oct 2011 14:32:42 +0000 Subject: [PATCH] #7479 Fix for Windows: The name of a resource is a '/'-separated path, not File.separatorChar separated svn changeset:21682/svn branch:6.7 --- src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java index 28789b0ebc..098a872ca6 100644 --- a/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java +++ b/src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java @@ -5,7 +5,6 @@ package com.vaadin.terminal.gwt.server; import java.io.BufferedReader; -import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; @@ -1085,8 +1084,7 @@ public class JsonPaintTarget implements PaintTarget { Class class1) { try { - String name = class1.getName().replace('.', File.separatorChar) - + ".class"; + String name = class1.getName().replace('.', '/') + ".class"; InputStream stream = class1.getClassLoader().getResourceAsStream( name); -- 2.39.5