Enum.valueOf(String name) and values() can't be invoked in j2s

17 views
Skip to first unread message

yangru...@gmail.com

unread,
Apr 9, 2013, 3:59:01 AM4/9/13
to java2...@googlegroups.com
I can't invoke two methods valueOf(String name) and values() of Enum.
For example:

public enum Fixture{
ONE,TWO,THREE
}


Fixture.valueOf("ONE") will throw an exception: java.lang.NullPointException:KA001

Zhou Renjian

unread,
Apr 9, 2013, 11:03:23 PM4/9/13
to Java2Script

Regards,
Zhou Renjian


--
You received this message because you are subscribed to the Google Groups "Java2Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java2script...@googlegroups.com.
To post to this group, send email to java2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/java2script/-/rQzLHCMyswQJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

yangru...@gmail.com

unread,
Apr 11, 2013, 10:36:45 PM4/11/13
to java2...@googlegroups.com
Thank you for help!

在 2013年4月10日星期三UTC+8上午11时03分23秒,Zhou Renjian写道:
Reply all
Reply to author
Forward
0 new messages