Closed GoogleCodeExporter closed 8 years ago
So this means, if I'm getting it right, that no class definitions are working
right
the first time after a DB erase...
Original comment by davidthi...@gmail.com
on 3 Jun 2009 at 3:55
So as I look fourther, this is mainly about the removal of generated.js, not the
erasing of the database...
When I do a new of the object when it's in that state, things go OK... i.e. a
= new
Ancestor(), but, if I do a new of a child class - i.e. one that extends
Ancestor...
things go badly - i.e. the ancestor parts of child don't get initialized.
Kill generated.js
C:\persevere_thrash>del WEB-INF\config\generated.js
Run Persevere
C:\persevere_thrash>persvr
2009-06-03 09:14:17.425::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
...
Type "help" at the console for more information
Create a descendant of Ancestor
js>c = new Child()
Jun 3, 2009 9:14:22 AM org.persvr.datasource.JavaScriptDB writeObject
WARNING: id index will be brought up to date...
Jun 3, 2009 9:14:22 AM org.persvr.datasource.JavaScriptDB writeObject
WARNING: id index will be brought up to date...
Jun 3, 2009 9:14:22 AM org.persvr.datasource.JavaScriptDB$8 run
WARNING: finished bringing id index up to date
Jun 3, 2009 9:14:22 AM org.persvr.datasource.JavaScriptDB$8 run
WARNING: finished bringing id index up to date
[object Object]
Created, but no Ancestor part (i.e. the name)
js>s( c )
({"id":"Child/6",
"accesses":0,
"prop":0
})
Cuz Ancestor's not really there...
js>s( Ancestor )
({"id":"Class/Ancestor"
})
Restart
js>shutdown
C:\persevere_thrash>persvr
2009-06-03 09:14:47.605::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
...
Type "help" at the console for more information
New Child
js>c = new Child()
Jun 3, 2009 9:14:53 AM org.persvr.datasource.JavaScriptDB writeObject
WARNING: id index will be brought up to date...
Jun 3, 2009 9:14:53 AM org.persvr.datasource.JavaScriptDB writeObject
WARNING: id index will be brought up to date...
Jun 3, 2009 9:14:53 AM org.persvr.datasource.JavaScriptDB$8 run
WARNING: finished bringing id index up to date
Jun 3, 2009 9:14:53 AM org.persvr.datasource.JavaScriptDB$8 run
WARNING: finished bringing id index up to date
[object Object]
All good this time!
js>s( c )
({"id":"Child/7",
"name":"TWed Jun 03 2009 09:14:53 GMT-0700 (PDT)",
"accesses":0,
"prop":0
})
Note: Child does the requires...
Original comment by davidthi...@gmail.com
on 3 Jun 2009 at 4:18
Original comment by kris...@gmail.com
on 6 Jun 2009 at 2:39
Original issue reported on code.google.com by
davidthi...@gmail.com
on 3 Jun 2009 at 3:54