Giter VIP home page Giter VIP logo

Comments (3)

peter-lawrey avatar peter-lawrey commented on July 1, 2024

This is an oversight. I will fix this today.
On 2 May 2014 13:00, "gilfernandes" [email protected] wrote:

Hello,

I was just playing around with the examples and I got surprised by this
error message on this code:

package com.onepointltd.file.operations;
...
@test
public void testHugeMap() {
HugeConfig config = HugeConfig.DEFAULT.clone()
.setSegments(128)
.setSmallEntrySize(128)
.setCapacity(10000);
}

I get these error messages:

setSegments(int) is not public in HugeConfig; cannot be accessed from
outside package

setSmallEntrySize(int) is not public in HugeConfig; cannot be accessed
from outside package

setCapacity(int) is not public in HugeConfig; cannot be accessed from
outside package

My current maven dependency is:

net.openhft collections-sandbox 3.0.3-SNAPSHOT jar

If this is really a stupid question, please bare with me. I am just a
beginner using OpenHFT.

Best regards,

Gil

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/20
.

from hugecollections-old.

RobAustin avatar RobAustin commented on July 1, 2024

Gil

Thanks for your feedback, we will definatly make the change that you suggest but I recommend you don’t use the code in collections-sandbox, Its’ our beta development area and contains work that is in progress. Its much better to use.

net.openhft collections 3.0.2

having said that, I think your comment about the visibility of these methods is an over site and we will correct this in the next release.

Rob

On 2 May 2014, at 13:00, gilfernandes [email protected] wrote:

Hello,

I was just playing around with the examples and I got surprised by this error message on this code:

package com.onepointltd.file.operations;

...

@test
public void testHugeMap() {
HugeConfig config = HugeConfig.DEFAULT.clone()
.setSegments(128)
.setSmallEntrySize(128)
.setCapacity(10000);
}
I get these error messages:

setSegments(int) is not public in HugeConfig; cannot be accessed from outside package

setSmallEntrySize(int) is not public in HugeConfig; cannot be accessed from outside package

setCapacity(int) is not public in HugeConfig; cannot be accessed from outside package

My current maven dependency is:

net.openhft collections-sandbox 3.0.3-SNAPSHOT jar If this is really a stupid question, please bare with me. I am just a beginner using OpenHFT.

Best regards,

Gil

β€”
Reply to this email directly or view it on GitHub.

from hugecollections-old.

gilfernandes avatar gilfernandes commented on July 1, 2024

Hello, Rob,

I have tried:

git clone --branch collections-3.0.2 https://github.com/OpenHFT/HugeCollections.git

and

mvn clean install

Then I changed the dependency to:

<dependency>
            <groupId>net.openhft</groupId>
            <artifactId>collections</artifactId>
            <version>3.0.2</version>
        </dependency>

but the problem persists.

In the source code of HugeConfig I find:

HugeConfig setSmallEntrySize(int smallEntrySize) {
        this.smallEntrySize = Maths.nextPower2(smallEntrySize, 64);
        return this;
    }

...

HugeConfig setSegments(int segments) {
        this.segments = Maths.nextPower2(segments, 16);
        return this;
    }

And this code suggests that the setter methods are package protected.

But anyway I can use the collection, if I use only:

HugeConfig config = HugeConfig.DEFAULT.clone();

Anyway: I like your project very much and really appreciate your excellent work.

best regards,

Gil

from hugecollections-old.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.