Skip to content

Commit

Permalink
8334739: XYChart and (Stacked)AreaChart properties return incorrect b…
Browse files Browse the repository at this point in the history
…eans

Reviewed-by: angorya
  • Loading branch information
Markus Mack authored and Andy Goryachev committed Jun 24, 2024
1 parent c0216ae commit 17c2dba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public class AreaChart<X,Y> extends XYChart<X,Y> {

@Override
public Object getBean() {
return this;
return AreaChart.this;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected void invalidated() {

@Override
public Object getBean() {
return this;
return StackedAreaChart.this;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public abstract class XYChart<X,Y> extends Chart {
private ReadOnlyObjectProperty<Axis<X>> xAxisProperty = new ReadOnlyObjectPropertyBase<Axis<X>>() {
@Override
public Object getBean() {
return this;
return XYChart.this;
}

@Override
Expand Down Expand Up @@ -211,7 +211,7 @@ private ObservableValue<Axis<X>> xAxisProperty() {
private ReadOnlyObjectProperty<Axis<Y>> yAxisProperty = new ReadOnlyObjectPropertyBase<Axis<Y>>() {
@Override
public Object getBean() {
return this;
return XYChart.this;
}

@Override
Expand Down

1 comment on commit 17c2dba

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.