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

update javassist to 3.18.2-GA or higher #610

Open
csokol opened this issue May 20, 2014 · 3 comments
Open

update javassist to 3.18.2-GA or higher #610

csokol opened this issue May 20, 2014 · 3 comments

Comments

@csokol
Copy link

csokol commented May 20, 2014

Apparently java 8 lambdas are incompatible with javassist. I have a project with vraptor-3.5.3 and when I add a lambda in my code, javassist throws an exception.

For example:

@Resource
public class FooController {
    public void bar() {
        List<Integer> list = Arrays.asList("oi").stream().map((s) -> s.length()).collect(Collectors.toList());
        System.out.println(list);
        result.nothing();
    }
}

VRaptor throws the following exception: https://gist.github.com/csokol/3de6fb450689ff3c3660

Any ideas?

It's related to scanannotation, so it shouldn't affect vraptor 4, right? Maybe we should consider using reflections project (http://code.google.com/p/reflections/) to do the scanning, since scanannotation development is dead.

@Turini
Copy link
Member

Turini commented Sep 9, 2015

@csokol if I'm not wrong, this works using javassist 3.18.2-GA or latest, right?

@csokol
Copy link
Author

csokol commented Sep 12, 2015

Hi Turini, I haven't used vraptor 3 since a long time, but I guess it looks
like it is a javassist incompatibility indeed.

Are we already forcing vraptor 3 to use this newer version of javassist? If
we are, then I think we can close this issue.

Em qua, 9 de set de 2015 14:40, Rodrigo Turini [email protected]
escreveu:

@csokol https://github.com/csokol if I'm not wrong, this works using
javassist 3.18.2-GA or latest, right?


Reply to this email directly or view it on GitHub
#610 (comment).

@Turini
Copy link
Member

Turini commented Sep 14, 2015

humm, we don't (https://github.com/caelum/vraptor/blob/master/vraptor-core/pom.xml#L29)
I'm updating issue title, to just update and test with latest javassist version. Thanks @csokol

@Turini Turini changed the title Java 8 and scanannotation incompatibility update javassist to 3.18.2-GA or higher Sep 14, 2015
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

2 participants