List of usage examples for com.google.gwt.dev.javac CompiledClass getSourceName
public String getSourceName()
From source file:com.googlecode.gwt.test.internal.handlers.GeneratorCreateHandler.java
License:Apache License
public Class<?> generate(Class<?> classLiteral) throws UnableToCompleteException { CompiledClass compiledClass = compile(classLiteral.getCanonicalName()); if (compiledClass == null) { return classLiteral; }/* www . ja v a2 s. c o m*/ try { return GwtFactory.get().getClassLoader().loadClass(compiledClass.getSourceName()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }