We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Simple test case:
public class MyTest { static class SuperClass { static final Integer ONE = new Integer(1); private Integer value; public SuperClass(Integer value){ this.value = value; } public Integer getValue() { return value; } } static class SubClass extends SuperClass{ SubClass(){ super(ONE); } } @Test public void testPassingStaticFieldToSuperClassConstructor() throws Exception { SubClass obj = new SubClass(); Assert.assertTrue(obj.getValue() != null); } }
The output Javascript does not make a call to SuperClass_$clinit to initialize the static field ONE, thus ONE is still null and the test failed.
SuperClass_$clinit
null
The text was updated successfully, but these errors were encountered:
Fix #167
5ae3845
konsoletyper
No branches or pull requests
Simple test case:
The output Javascript does not make a call to
SuperClass_$clinit
to initialize the static field ONE, thus ONE is stillnull
and the test failed.The text was updated successfully, but these errors were encountered: