diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-08-17 12:38:22 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-20 08:55:25 +0300 |
commit | 8ed4b539378c2150af99ff4a102c47d2cf0a4a8d (patch) | |
tree | bb9b96dac8795a9e4837eea0e736b2f968244a9c /client-compiler/src/com | |
parent | 80cc4976fc7f7931d75f3b31dde6da168936f01f (diff) | |
download | vaadin-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.java | 9 |
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; } } } |