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

注释添加在首行,会导致【不满足语法规范】报错 #337

Open
JustryDeng opened this issue Jul 24, 2024 · 3 comments
Open

Comments

@JustryDeng
Copy link

JustryDeng commented Jul 24, 2024

版本:3.3.3

表达式如下:

/** 我是注释 **/;
import com.springboot.expengine.qlexpress.entity.User;

user = new User();
user.setName("张三");
user.setAge(18);
user.setHobby("游泳");
return demoXyzBean.qwer3(user);

User类:

@Data
public class User {
    private String name;
    private int age;
    private String hobby;
}

调用的springbean如下:

@Component(DemoXyzBean.XYZ_NAME)
public class DemoXyzBean {
    public static final String XYZ_NAME = "demoXyzBean";
    
    public String qwer3(User user) {
        return String.valueOf(user);
    }
}

报错如图:
image

@DQinYuan
Copy link
Collaborator

DQinYuan commented Aug 2, 2024

目前注释解析存在一些问题。除了这个问题外,还有

/** 2eee **/

中间的 2eee token 会被当成数字解析,导致报错

@jackie-coming
Copy link
Contributor

目前注释解析存在一些问题。除了这个问题外,还有

/** 2eee **/

中间的 2eee token 会被当成数字解析,导致报错

2eee

这个有例子复现吗?我目前没有测出可以复现的代码

@DQinYuan
Copy link
Collaborator

@jackie-coming#316, 这个我在今年的最新版本里修掉了,我给忘了, 见 3.3.3 发布记录

https://github.com/alibaba/QLExpress/releases/tag/v3.3.3

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

3 participants