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

Operator "&" not defined on types "java.lang.Integer" and "int" #73

Closed
Yaccc opened this issue Jan 9, 2019 · 7 comments
Closed

Operator "&" not defined on types "java.lang.Integer" and "int" #73

Yaccc opened this issue Jan 9, 2019 · 7 comments

Comments

@Yaccc
Copy link

Yaccc commented Jan 9, 2019

Operator "&" not defined on types "java.lang.Integer" and "int"

how do work??

@aunkrig
Copy link
Member

aunkrig commented Jan 9, 2019 via email

@Yaccc
Copy link
Author

Yaccc commented Jan 11, 2019

Hey, could you please provide a code example that reproduces the problem? That would be really helpful. Also a stack trace and Janino and JRE version information, please. Regards, Arno

Am 09.01.2019 um 21:05 schrieb Zhaodong Xie @.***>: Operator "&" not defined on types "java.lang.Integer" and "int" how do work?? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

execute new Long(1L)&2 and Similar code,can Reproduce this mistake

@Yaccc
Copy link
Author

Yaccc commented Jan 11, 2019

Hey, could you please provide a code example that reproduces the problem? That would be really helpful. Also a stack trace and Janino and JRE version information, please. Regards, Arno

Am 09.01.2019 um 21:05 schrieb Zhaodong Xie @.***>: Operator "&" not defined on types "java.lang.Integer" and "int" how do work?? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

execute new Long(1L)&2 and Similar code,can Reproduce this mistake

I see the code ,janino require that both sides expr must be basic types

@aunkrig
Copy link
Member

aunkrig commented Jan 14, 2019

Reproduced: JlsTest.test_15_22__BitwiseAndLogicalOperators().

@aunkrig
Copy link
Member

aunkrig commented Jan 14, 2019

Fixed; please test!

@Yaccc
Copy link
Author

Yaccc commented Jan 14, 2019

Fixed; please test!

test success ,please deploy it

@aunkrig
Copy link
Member

aunkrig commented Jan 18, 2019

Version 3.0.12 is out!

@aunkrig aunkrig closed this as completed Jan 18, 2019
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