Bug 602486 - org.rhq.core.util.updater.Deployer class uses Java6 API java.io.File.getUsableSpace()
Summary: org.rhq.core.util.updater.Deployer class uses Java6 API java.io.File.getUsabl...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: No Component
Version: 3.0.0
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: jon-sprint11-bugs
TreeView+ depends on / blocked
 
Reported: 2010-06-09 23:24 UTC by Ian Springer
Modified: 2013-08-06 00:37 UTC (History)
1 user (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-12 16:48:39 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2010-06-09 23:24:56 UTC
/home/test_jon/release/rhq/modules/core/util/src/main/java/org/rhq/core/util/updater/Deployer.java:[249,36] cannot find symbol
symbol  : method getUsableSpace()
location: class java.io.File

Comment 1 John Mazzitelli 2010-06-10 01:11:04 UTC
dammit - can we pleeeeeeease move to JDK6?

should be easy to comment out that stuff and after the release we uncomment it since we are moving to JDK6 next release (RIGHT!?!?)

Comment 2 John Mazzitelli 2010-06-10 01:21:07 UTC
Here's the small patch that will fix this - after release, we undo this to bring it back (apply to org.rhq.core.util.updater.Deployer):

@@ -247,2 +247,4 @@ public class Deployer {
 
+        /*
+        OH TO BE ABLE TO USE A MODERN JDK - THIS NEEDS JDK6
         File partition = this.deploymentData.getDestinationDir();
@@ -257,2 +259,4 @@ public class Deployer {
         diskUsage.setMaxDiskUsable(usableSpace);
+        */
+        diskUsage.setMaxDiskUsable(Long.MAX_VALUE);

Comment 3 John Mazzitelli 2010-07-06 14:00:47 UTC
master commit 5a4cc93421258718ebc10736616968ede431b4d4

there is really nothing to QA, this is a code change. However, bundle deployment will no longer work if the agent is running on an older JDK - must use JDK 6 at least.

Comment 4 Corey Welton 2010-07-06 20:32:23 UTC
QA Closing.

Comment 5 Corey Welton 2010-08-12 16:48:39 UTC
Mass-closure of verified bugs against JON.


Note You need to log in before you can comment on or make changes to this bug.