Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation shows wrong code samples #6

Open
lsantos opened this issue May 17, 2017 · 0 comments
Open

Documentation shows wrong code samples #6

lsantos opened this issue May 17, 2017 · 0 comments

Comments

@lsantos
Copy link

lsantos commented May 17, 2017

I was trying to use the customized reporting and there is not JHadesConsole class:

package classloaders.test;

import org.jhades.JHadesConsole;
import org.jhades.JHadesServletListener;

public class MyJHadesDebugListener extends JHadesServletListener {

@Override
protected void runJHades(JHadesConsole console) {
    console.printClassLoaders()
            .printClasspath()
            .overlappingJarsReport()
            .multipleClassVersionsReport()
            .findClassByName("org.apache.bval.jsr303.ApacheValidationProvider")
            .findClassByName("javax.validation.spi.ValidationProvider");
}

}

The code that compiles for me is:

package classloaders.test;

import org.jhades.JHades;
import org.jhades.JHadesServletListener;

public class MyJHadesDebugListener extends JHadesServletListener {

@Override
protected void runJHades(JHades console) {
    console.printClassLoaders()
            .printClasspath()
            .overlappingJarsReport()
            .multipleClassVersionsReport()
            .findClassByName("org.apache.bval.jsr303.ApacheValidationProvider")
            .findClassByName("javax.validation.spi.ValidationProvider");
}

}

I am glad to update the documentation for you guys if it can be done via a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant