Skip to content
Permalink
Browse files

Change to have io.vertx.ext considered as system class

  • Loading branch information
vietj committed Jun 22, 2015
1 parent 2457ce9 commit ef57ddfb45e64b644fb38a9d05938022b977b132
@@ -109,7 +109,8 @@ private boolean isVertxOrSystemClass(String name) {
name.startsWith("java.") ||
name.startsWith("javax.") ||
name.startsWith("com.sun.") ||
name.startsWith("io.vertx.core") ||
name.startsWith("io.vertx.core.") ||
name.startsWith("io.vertx.ext.") ||
name.startsWith("com.hazelcast") ||
name.startsWith("io.netty.") ||
name.startsWith("com.fasterxml.jackson");
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2011-2013 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package io.vertx.ext;

/**
* @author <a href="mailto:julien@julienviet.com">Julien Viet</a>
*/
public class ExtensionClass {
}
@@ -2,6 +2,7 @@

import io.vertx.core.impl.IsolatingClassLoader;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.ExtensionClass;
import org.junit.Before;
import org.junit.Test;
import user.VerticleImpl;
@@ -156,7 +157,7 @@ public void testReproducer() throws Exception {
JsonObject core = (JsonObject) clazz.getDeclaredField("core").get(instance);

// This makes a classcast exception
IsolatingClassLoaderTest ext = (IsolatingClassLoaderTest) clazz.getDeclaredField("ext").get(instance);
ExtensionClass ext = (ExtensionClass) clazz.getDeclaredField("ext").get(instance);


}
@@ -17,14 +17,14 @@
package user;

import io.vertx.core.json.JsonObject;
import io.vertx.test.core.IsolatingClassLoaderTest;
import io.vertx.ext.ExtensionClass;

/**
* @author <a href="mailto:julien@julienviet.com">Julien Viet</a>
*/
public class VerticleImpl {

public final JsonObject core = new JsonObject();
public final IsolatingClassLoaderTest ext = new IsolatingClassLoaderTest();
public final ExtensionClass ext = new ExtensionClass();

}

0 comments on commit ef57ddf

Please sign in to comment.
You can’t perform that action at this time.