Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

Cannot catch exception when declaring a static object and the object a exception #2

Description

@qzhang8
说明起来有些复杂,请下载了附件,并按下面的步骤复现

EXACT STEPS LEADING TO PROBLEM:
(Explain in detail what you do (e.g. tap on OK) and what you see (e.g.

message
Connection Failed appears))
===========================================================
1.下载本bug 的包含3个java文件的zip
2.在有j2s的eclipse中创建一个java projcet
3.使porjcet的java2Script compiler is enabled
4.把unzip的3个java文件放到创建的包下
5.Run project as java application(Main函数在ClassTest.java中)
6.Console的结果是可以捕捉到异常
7.Run as java2Script application, 并在chrome中打开
8.Console显示uncatch 的 exception

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions