Anonymous | Login | Signup for a new account | 12-17-2024 11:03 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product Version | |||||||
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; } |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed. 28 unique queries executed. |