summaryrefslogtreecommitdiffstats
path: root/client-compiler/src/com
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-17 12:38:22 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-20 08:55:25 +0300
commit8ed4b539378c2150af99ff4a102c47d2cf0a4a8d (patch)
treebb9b96dac8795a9e4837eea0e736b2f968244a9c /client-compiler/src/com
parent80cc4976fc7f7931d75f3b31dde6da168936f01f (diff)
downloadvaadin-framework-8ed4b539378c2150af99ff4a102c47d2cf0a4a8d.tar.gz
vaadin-framework-8ed4b539378c2150af99ff4a102c47d2cf0a4a8d.zip
Don't use java.* package names (#8683)
Diffstat (limited to 'client-compiler/src/com')
-rw-r--r--client-compiler/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerGenerator.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/client-compiler/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerGenerator.java b/client-compiler/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerGenerator.java
index 0235fb277d..cc92551846 100644
--- a/client-compiler/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerGenerator.java
+++ b/client-compiler/src/com/vaadin/terminal/gwt/widgetsetutils/SerializerGenerator.java
@@ -473,9 +473,12 @@ public class SerializerGenerator extends Generator {
if (typePackage == null) {
return SerializerMap.class.getPackage().getName();
} else {
- // What about e.g. java.* packages, can we create classes there or
- // should we use e.g. com.vaadin.java.*
- return typePackage.getName();
+ String packageName = typePackage.getName();
+ // Dev mode classloader gets unhappy for some java packages
+ if (packageName.startsWith("java.")) {
+ packageName = "com.vaadin." + packageName;
+ }
+ return packageName;
}
}
}