[JAVA-434] String.isEmpty fails in 1.5 JRE Created: 20/Sep/11  Updated: 24/Oct/11  Resolved: 24/Oct/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.6.5
Fix Version/s: 2.7

Type: Bug Priority: Major - P3
Reporter: Yan Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

JRE prior to 1.6, i.e 1.5



 Description   

When MongoURI _parseBoolean String.isEmpty called
this leads to NoSuchMethod Error on JRE 1.5



 Comments   
Comment by auto [ 24/Oct/11 ]

Author:

{u'login': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: JAVA-434: replaced isEmpty() with 1.5 compatible alternative
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/dec0cab53584b1e011f3d90f64b5fd238cd72dce

Comment by Ronald K. Muller [ 07/Oct/11 ]

There is one more Java 6 dependencies:
ConcurrentSkipListSet (in LazyBSONObject)

Comment by Yan [ 21/Sep/11 ]

String.isEmpty and @Override in interfaces - is only things, that breaks 1.5 compatibility.
I removed this and driver worked (in WebSphere Application Server 6.1 for example)

but i'm not runned tests, sorry for poor java knowledge.

Generated at Thu Feb 08 08:52:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.