Anonymous | Login | Signup for a new account | 12-17-2024 10:58 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003233 | [Quercus] | minor | always | 01-09-09 07:50 | 01-12-09 09:53 | ||||
Reporter | haplo | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.0 | Product Version | |||||
Product Build | |||||||||
Summary | 0003233: constant does not resovle ClassName::ConstantName | ||||||||
Description |
The method Evn.getConstantImpl does not resovle ClassName::ConstantName Replacing Evn.getConstantImpl with the following method fixes the bug private Value getConstantImpl(String name) { Value value = _constMap.get(name); if (value != null) return value; value = _quercus.getConstant(name); if (value != null) return value; if (name.contains("::")){ String[] splitName = name.split("::"); if(splitName.length == 2 && _classMap.containsKey(splitName[0])){ QuercusClass constantClass = _classMap.get(splitName[0]); value = constantClass.getConstant(this, splitName[1]); } } if(value != null){ return value; } if (_lowerConstMap != null) { value = _lowerConstMap.get(name.toLowerCase()); if (value != null) return value; } return null; } |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed. 28 unique queries executed. |