Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4601] Hyperloop Android - can't access enum values

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-11-21T20:16:58.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsHyperloop
Labelsandroid, enum, hyperloop, undefined
ReporterRodolfo Perottoni
AssigneeShak Hossain
Created2016-11-09T05:44:10.000+0000
Updated2016-11-21T20:16:58.000+0000

Description

I'm trying to access a Java enum. If I execute the code below my app crashes. *Techniques* is just a simple enum provided with an android lib that I'm trying to use.
Ti.API.error(Techniques.values()[0].getAnimator());
This is the error
Uncaught TypeError: Cannot read property 'getAnimator' of undefined
This happens with any enum. The code above works normally on native code.

Comments

  1. Hans Knöchel 2016-11-10

    Please provide a full example code, thx
  2. Aminul Islam 2016-11-20

    Hi, Could you please try this with Hyperloop 2.0.0 on 6.0.0 GA ? If you get same issue please send a test project and steps to reproduce. Reagrds, Aminul

JSON Source