Issue1409

classification
Title: JSR-233 engine version numbers backwards
Type: Severity: normal
Components: Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: jimwhite, nriley
Priority: Keywords:

Created on 2009-07-25.18:13:49 by jimwhite, last changed 2009-07-26.08:17:00 by nriley.

Files
File name Uploaded Description Edit Remove
jython-engine-version-patch.txt jimwhite, 2009-07-25.18:16:27 A patch for how I think this is supposed to work.
Messages
msg4940 (view) Author: Jim White (jimwhite) Date: 2009-07-25.18:13:48
PyScriptEngineFactory returns "2.5.0" (a literal in the engine 
implementation) for ScriptEngine.LANGUAGE_VERSION and 
(Version.PY_MAJOR_VERSION, Version.PY_MINOR_VERSION, 
Version.PY_MICRO_VERSION) for ScriptEngine.ENGINE_VERSION.

They should be the other way 'round.

This is part of the way that JSR-223 addresses the issue about conflicts 
in different engines (the JSR-223 API implementation) that support the 
"same" language in possibly incompatible ways.
msg4945 (view) Author: Nicholas Riley (nriley) Date: 2009-07-26.08:04:40
The way we're numbering things right now, Jython 2.5.x is compatible with version 2.5 of the Python language.  Perhaps getLanguageVersion() should 
return "2.5" rather than "2.5.0", but I think they're correct as is.  (The 
names of the constants in Version.java are potentially confusing...)
msg4946 (view) Author: Nicholas Riley (nriley) Date: 2009-07-26.08:17:00
OK, I just checked that in (r6587).  At least it's not hard-coded any 
more. :-)
History
Date User Action Args
2009-07-26 08:17:00nrileysetstatus: open -> closed
resolution: fixed
messages: + msg4946
2009-07-26 08:04:40nrileysetnosy: + nriley
messages: + msg4945
2009-07-25 18:16:27jimwhitesetfiles: + jython-engine-version-patch.txt
2009-07-25 18:13:49jimwhitecreate