Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7783] Android: File.createTimestamp error message on resource files is unhelpful

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T20:47:12.000+0000
Affected Version/sRelease 1.5.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterArthur Evans
AssigneeEric Merriman
Created2012-02-22T17:06:55.000+0000
Updated2017-06-07T20:47:12.000+0000

Description

1.5.0.91838a G2 (2.2)

1.Platform > Filesystem
2.check adb output

W/TiBaseFile( 9246): (kroll$15) [2,387126] Method is not supported org.appcelerator.titanium.io.TiResourceFile : createTimestamp

This issue (which has been logged twice before) created yet another panic in testing. The error message here is utterly unhelpful. If someone tries out this method on a resource file, they get a "method not supported" error. From an internal point of view, this makes complete sense--TiResourceFile is a separate class from TiFile. However, from a user point of view, they are both instances of Ti.Filesystem.File. If we're going to log a message, it should provide some information which might be useful to the end user. If we cut and pasted Don's comment from the linked bug into the log message, "Resource files don't have timestamps," it would be a vast improvement on the current situation.

Comments

  1. Lee Morris 2017-06-07

    Closing ticket due to time passed and lack of progress in the past 5 years.

JSON Source